=== Translate it in the master language English ===
You will need to do that on two places. First in the "kiwix/chrome/locale/en/main/" main.dtd or main.properties files. In that way the Kiwix application knows what to display if the user interface language is English.
=== Aggiorna i file Translatewiki ===
But you also need to tell Translatewiki to add this string in the list of string it has to provide ( for the Translatewiki translators) to translate. For that you need to checkout another part of Kiwix code repository . Please run outside of your local kiwix code directory following console command:
=== Crea una bozza di traduzione della tua nuova stringa per tutte le lingue ===
The last thing you need to do is creating stub translation of your new localized string for all supported user interface languages in Kiwix. If you don't do that, Kiwix won' t be able to work correctly in a language other than English.
For that purpose you need to use the TW2PL.pl script (this is a perl script, so perl needs to be installed) like following ( go in the translatewiki file directory):
== Aggiorna le traduzioni di Kiwix ==
Another task is to update already supported Kiwix languages with the last strings updated coming from Translatewiki. The first thing to know about that is that in the remote subversion repository , the Translatewiki file (in maintenance/translatewiki) is updated every two weeks from a Translatewiki contributors. That means, you only need to update your local repository and update and commit the kiwix code translation files like this:
== Aggiungi a Kiwix il supporto ad una nuova lingua ==
tries to add only 100% translated languages coming from Translatewiki. So it happens often that there are more languages in the "maintenance_tools/translatewiki" directory than in the "kiwix/kiwix/chrome/locale" directory. In such a case, that simply means 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 this:
After that, you need go to the Kiwix source code directory in "kiwix/chrome" and edit with your preferred text editor the "chrome.manifest" and "chrome. manifest.prod" files. No explanation here, just do like for the already supported languages.
Successivamente modifica "chrome/content/main/js/language.js" e aggiungi anche qui la nuova lingua.
Ora aggiorna CHANGELOG e crea una notifica dell'aggiunta della nuova lingua supportata.
Add the new language directory and commit like this: