Changes between Version 2 and Version 3 of ZOOTranslation
- Timestamp:
- Sep 30, 2010, 3:43:44 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZOOTranslation
v2 v3 1 1 = ZOO Translation page = 2 2 3 You'll find here information s about how the ZOO Kernel use the gettexttechnology to translate on the fly both ZOO Kernel internal messages and also ZOO Services Provider internal messages and zcfg content.3 You'll find here information about how the ZOO Kernel use the ''gettext'' technology to translate on the fly both ZOO Kernel internal messages and also ZOO Services Provider internal messages and zcfg content. 4 4 5 5 == Method to get your zcfg translated == … … 8 8 9 9 {{{ 10 #! sh10 #!/bin/bash 11 11 for j in cgi-env/*zcfg ; 12 12 do … … 18 18 }}} 19 19 20 Now, produce the messages.pofile based on the produced file and the Services Provider source code using the following command :20 Now, produce the 'messages.po' file based on the produced file and the Services Provider source code using the following command : 21 21 22 22 {{{ 23 #! sh23 #!/bin/bash 24 24 xgettext service.c locale/.cache/my_service_string_to_translate.c -o message.po -p locale/po/ -k_ 25 25 }}} 26 26 27 Once you get the messages.po file, use the following command to create the po file for the language you want to translate into, let suppose that french language was choosen here :27 Once you get the messages.po file, use the following command to create the po file for the language you want to translate into, let suppose that French language was chosen here : 28 28 29 29 {{{ 30 #! sh30 #!/bin/bash 31 31 cd locale/po/ 32 msginit -i messages.po -o fr_FR.utf8-l fr32 msginit -i messages.po -o zoo_fr_FR.po -l fr 33 33 }}} 34 34 35 Obviously now you'll have to edit the fr_FR.utf8file with your favorite text editor or using one of the following tools :35 Obviously now you'll have to edit the zoo_fr_FR.po file with your favorite text editor or using one of the following tools : 36 36 * [http://www.poedit.net/ poedit] 37 37 * [http://translate.sourceforge.net/wiki/virtaal/index virtaal] 38 38 * [https://www.transifex.net/projects/p/grass6/c/grass64/ transifex] 39 39 40 Once the fr_FR.utf8file exists, you can produce and install the corresponding mo file using the following command :40 Once the zoo_fr_FR.po file exists, you can produce and install the corresponding mo file using the following command : 41 41 42 42 {{{ 43 #! sh44 msgfmt locale/po/ fr_FR.utf8-o /usr/share/locale/fr/LC_MESSAGES/zoo-services.mo43 #!/bin/bash 44 msgfmt locale/po/zoo_fr_FR.po -o /usr/share/locale/fr/LC_MESSAGES/zoo-services.mo 45 45 }}} 46 46