Difference between revisions of "Translation for developers/it"

Jump to navigation Jump to search
no edit summary
(Created page with "== Aggiorna le traduzioni di Kiwix ==")
 
(23 intermediate revisions by 3 users not shown)
Line 42: Line 42:
=== Aggiorna i file Translatewiki ===
=== 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:
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 altra parte del repository di Kiwix. Per favore esci dal tuo repository locale di Kiwix col comando:


<source lang="bash">
<source lang="bash">
Line 62: Line 62:
</source>
</source>


=== Spedisci i nuovi file di traduzione di Kiwix ===
=== Commit the new Kiwix translation files ===
Now, all the locale file in kiwix/chrome/locale should be updated and you should have a lot of (modified) files listed by typing:


<source lang="bash">
<source lang="bash">
Line 72: Line 73:
== Aggiorna le traduzioni di Kiwix ==
== Aggiorna le traduzioni di Kiwix ==


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:
Altra attività è aggiornare lingue già supportate da Kiwix con le ultime stringhe provenienti da Translatewiki. La prima cosa da sapere è che nel repository remoto i file di Translatewiki (in maintenance/translatewiki) sono aggiornati ogni due settimane dai contributori di Translatewiki. Ciò significa che devi solo aggiornare il tuo repository locale e aggiornare e spedire le traduzioni del codice di Kiwix come segue:


<source lang="bash">
<source lang="bash">
Line 80: Line 81:
git push origin master
git push origin master
</source>
</source>
The full path should be the moulinkiwix directory, not the kiwix directory in it.
Il percorso completo dovrebbe essere la cartella moulinkiwix, non la cartella kiwix che contiene.


== Add a new supported language to Kiwix ==
== Aggiungi a Kiwix il supporto ad una nuova lingua ==


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.
Kiwix prova ad aggiungere solo le lingue tradotte al 100% da Translatewiki. Così succede spesso che ci sono più lingue nella cartella "maintenance_tools/translatewiki" che nella cartella "kiwix/kiwix/chrome/locale". In questo caso significa semplicemente che la lingua di Translatewiki non era ancora integrata nel codice base di Kiwix. Spieghiamo ora come fare.


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:
Prima di tutto devi creare i file di traduzione in una nuova cartella del tipo "kiwix/kiwix/locale/codice_iso_della_tua_lingua" come segue:


<source lang="bash">
<source lang="bash">
Line 92: Line 93:
</source>
</source>


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.
Dopo questo devi andare nella cartella del codice sorgente di Kiwix "kiwix/chrome" e modificare i file "chrome.manifest" e "chrome.mainfest.prod". Nessuna spiegazione, fallo come è già stato fatto per le altre lingue supportate.


Next edit chrome/content/main/js/languages.js and here also add the new languages.
Successivamente modifica "chrome/content/main/js/language.js" e aggiungi anche qui la nuova lingua.


Now update CHANGELOG and make a notice about the addition of the new supported languages.
Ora aggiorna CHANGELOG e crea una notifica dell'aggiunta della nuova lingua supportata.


Add the new language directory and commit like following:
Aggiungi la cartella della nuova lingua e spediscila come segue:


<source lang="bash">
<source lang="bash">

Navigation menu