Changes between Initial Version and Version 1 of doc/developer/LanguageTranslation

Show
Ignore:
Timestamp:
01/12/06 15:44:09 (15 years ago)
Author:
Pascal Leclerc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/developer/LanguageTranslation

    v1 v1  
     1= Howto add translation = 
     2 
     3 1. Using a shell, go to '''/path_to/wifidog/locale''' directory. 
     4 1. Create a new directory for your new language ( ex: "ru" for Russian, "jp" for japanese, etc ). The Russian language will be use as example. 
     5 1. Create the same folder hierarchy as in "fr" ( '''./ru/LC_MESSAGES''' ) 
     6 1. Execute the shell script '''gen.sh''', this will grab new strings  in '''./ru/LC_MESSAGES/messages.po'''. If you received errors like "PHP is not supported", make sure you have the latest version of Gettext and you're using the xgettext version provided with PHP5. If xgettext is not in your PATH, try '''locate xgettext''' to find it. 
     7 1. Edit '''message.po'''. If you're under Linux use [http://i18n.kde.org/tools/kbabel/ KBabel] for translation, otherwise make sure your text editor writes UTF-8 ( [http://www.xemacs.org xemacs ]manages .po pretty well ) 
     8 1. Once completed, run the script '''compile.sh''', this will create a '''./ru/LC_MESSAGES/messages.mo''' binary file 
     9 1. Add "ru" locale to '''config.php''' 
     10 1. Restart Apache. You will have to do this when you recompile, because .mo binary files are cached by gettext. 
     11 1. You should now be able to select your language ! 
     12 1. Finally, send us your translation file (message.po). We will add it to Wifidog Captive Portal. 
     13