Changes between Version 2 and Version 3 of ZOOTranslation


Ignore:
Timestamp:
Sep 30, 2010, 3:43:44 PM (14 years ago)
Author:
markusn
Comment:

Minor fixes

Legend:

Unmodified
Added
Removed
Modified
  • ZOOTranslation

    v2 v3  
    11= ZOO Translation page =
    22
    3 You'll find here informations 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.
     3You'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.
    44
    55== Method to get your zcfg translated ==
     
    88
    99{{{
    10 #!sh
     10#!/bin/bash
    1111for j in cgi-env/*zcfg ;
    1212  do
     
    1818}}}
    1919
    20 Now, produce the messages.po file based on the produced file and the Services Provider source code using the following command :
     20Now, produce the 'messages.po' file based on the produced file and the Services Provider source code using the following command :
    2121
    2222{{{
    23 #!sh
     23#!/bin/bash
    2424xgettext service.c locale/.cache/my_service_string_to_translate.c -o message.po -p locale/po/ -k_
    2525}}}
    2626
    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 :
     27Once 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 :
    2828
    2929{{{
    30 #!sh
     30#!/bin/bash
    3131cd locale/po/
    32 msginit -i messages.po -o fr_FR.utf8 -l fr
     32msginit -i messages.po -o zoo_fr_FR.po -l fr
    3333}}}
    3434
    35 Obviously now you'll have to edit the fr_FR.utf8 file with your favorite text editor or using one of the following tools :
     35Obviously now you'll have to edit the zoo_fr_FR.po file with your favorite text editor or using one of the following tools :
    3636 * [http://www.poedit.net/ poedit]
    3737 * [http://translate.sourceforge.net/wiki/virtaal/index virtaal]
    3838 * [https://www.transifex.net/projects/p/grass6/c/grass64/ transifex]
    3939 
    40 Once the fr_FR.utf8 file exists, you can produce and install the corresponding mo file using the following command :
     40Once the zoo_fr_FR.po file exists, you can produce and install the corresponding mo file using the following command :
    4141
    4242{{{
    43 #!sh
    44 msgfmt locale/po/fr_FR.utf8 -o /usr/share/locale/fr/LC_MESSAGES/zoo-services.mo
     43#!/bin/bash
     44msgfmt locale/po/zoo_fr_FR.po -o /usr/share/locale/fr/LC_MESSAGES/zoo-services.mo
    4545}}}
    4646

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png