Tell us your story
Tell us your story
How has offline Wikipedia affected you? The Wikimedia Foundation (the non-profit that supports Wikipedia) is looking for personal, diverse and inspiring stories about how offline Wikipedia affects the world. If you have a personal story that you would like to share, please contact: stories@kiwix.org. Thank you!

Changes

Jump to: navigation, search

Translation for developers

19 bytes added, 8 years ago
svn -> git
Beside the pure [[translation]] part of the work, the '''Kiwix source code needs to be synchronized with Translatewiki'''.
This synchronisation with Translatewiki needs three type types of operationsoperation:* ''Add a string'' to Kiwix and Translatewiki, ie. introducing a dynamic string which will be replaced by the corresponding translationat the runtime.
* ''Update the Kiwix strings'' with the translations coming from Translatewiki.
* ''Add a new Translatewiki full translated language to Kiwix''.
* Translatewiki translations are imported separately in the Kiwix code repository on time a week and we always need to synchronize thus files with Kiwix code in both direction (KW->TW and TW -> KW).
'''WARNING: Before any modification of Kiwix source code, update your local code repository repositories with "git pull origin master"in each one of them.'''
== Checkout the code and start Kiwix ==
<source lang="bash">
svn co https://kiwix.svn.sourceforge.net/svnroot/kiwix/maintenance_tools/translatewikigit pull origin master
</source>
<source lang="bash">
svn git status kiwix/chrome/locale
</source>
cd /full/path/to/the/kiwix/maintenance_tools/translatewiki
./TW2KW.pl --path=/full/path/to/the/kiwix/code/directory --allLanguages=kw
svn git commit /full/path/to/the/kiwix/code/directory/kiwix/chrome/localegit push origin master
</source>
The full path should be the moulinkiwix directory, not the kiwix directory in it.
Add the new language directory and commit like following:
<source lang="bash">
svn git add kiwix/chrome/locale/language_iso_codesvn git commit CHANGELOG kiwix/chrome/chrome.manifest kiwix/chrome/chrome.manifest.prod kiwix/chrome/locale/ kiwix/chrome/content/main/js/gui.jsgit push origin master
</source>

Navigation menu