=== Aggiorna i file Translatewiki ===
Devi anche dire a Translatewiki di aggiungere questa stringa alla lista delle stringhe da far tradurre (per i traduttori di Translatewiki). Per questo devi verificare
un'altra parte del repository di Kiwix. Per favore esci dal tuo repository locale di Kiwix col comando:
Qualcuno da Translatewiki controlla settimanalmente il file "en" in cerca di nuove stringhe e se necessario sincronizza Transatewiki con questo file.
Create stub translation of you new string for all languages ===
The last thing you need to do is creating stub translation of your new localised string for all supported user interface languages in Kiwix. If you do not that, Kiwix won' t be able to work correctly in another language as English.
For that purpose you need to use the script TW2PL.pl ( this is a perl script, so perl needs to be installed) like following ( go in the translatewiki file directory):
=== Commit the new Kiwix translation files ===
Now, all the locale file in kiwix/chrome/locale should be
update and you should have a lot of (modified) files listed by typing:
After checking everything is OK, you can commit your modifications: ie. the kiwix/chrome/locale directory and the * .xul and/or * .js files you have modified.
Update Kiwix translations ==
One other task is to update already supported Kiwix languages with the last string updated coming from Translatewiki. The first thing to know about that is that in the remote subversion repository , the Translatewiki file (in maintenance/translatewiki) are each two weeks updated from a Translatewiki contributors. That means, you only need to update your local repository and update and commit the kiwix code translation files like following:
git push origin master
The full path should be the moulinkiwix directory, not the kiwix directory in it.
Add a new supported language to Kiwix ==
tries to add only 100% translated languages coming from Translatewiki. So it happens often that they are more languages in the "maintenance_tools/translatewiki" directory than in the "kiwix/kiwix/chrome/locale" directory. In such a case, that simply mean the the Translatewiki language was still not integrated in Kiwix code base. We explain now how to do that.
First of all you need to create the translation files in a new directory at "kiwix/kiwix /chrome/locale/ your_language_iso_code" like following:
After that you need go to the kiwix source code directory in "kiwix/chrome" and edit with your prefered text editor the "chrome.manifest" and "chrome. manifest.prod" files. No explanation here, just do like for the already supported languages.
Next edit chrome/content/main/js/ languages.js and here also add the new languages.
Now update CHANGELOG and make a notice about the addition of the new supported languages.
Add the new language directory and commit like following: