[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-dev] Translation clean-up primary/secondary language
From: |
Oli Sennhauser |
Subject: |
[Dolibarr-dev] Translation clean-up primary/secondary language |
Date: |
Fri, 16 May 2014 23:12:21 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Hello all
I 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
strip_language_file.php
Description: application/php