Hello allI wrote a little PHP script to clean-up secondary language translations (e.g. de_AT). It finds some nice errors in primary and secondary language translations... :-)
Task: Can you please test the clean-up script for your specific language and give me your feedback (especially errors!)?
Candidates to test are: de_AT, en_XX (XX != US), es_XX (XX != ES), fr_XX (XX != FR) nl_XX (XX != ?) pt_XX (pt != PT), ru_XX (XX != RU?), zh_XX (XX != ?).
I tried to do it in a way that also non-latin languages should work. Please let me know if there are problems (arabic, hebrew, cyrillic, JKC, etc.)
Question: where should this script be stored/kept? Would it be interesting for other multi-lingual projects as well?
Usage:./strip_language_file.php langs/de_DE/admin_primary.lang langs/de_AT/admin_secondary.lang
File langs/de_DE/admin.lang:Key DispenseMontantLettres is redundant in file langs/de_DE/bills.lang (line: 218).
---- File langs/de_AT/admin.lang: ERROR in file langs/de_AT/admin.lang, line 2: * Language code: de_AT Key ModulesJob does NOT exist in primary language (line: 79). Output can be found at langs/de_AT/admin.lang.delta.It might also be necessary that you clean-up your primary language as well. So please study the error messages carefully
Please let me know what you think about and the results... Regards, Oli
<<attachment: strip_language_file.php>>
_______________________________________________ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev