Ignore:
Timestamp:
Jun 30, 2015, 10:30:52 PM (9 years ago)
Author:
djay
Message:

Move translation into ZOO-Services and add a specific sub-section about Translation support for ZOO-Kernel internal messages.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/PublicaMundi_David-devel/docs/services/translation.rst

    r715 r717  
    1 .. _contribute_trans:
     1.. _service_translation:
    22
    3 Contribute translation
    4 ===============
     3Translation Support
     4===================
    55
    6 Anybody can take part to the `ZOO-Project <http://zoo-project.org>`__ translation and is welcome to:
     6ZOO-Kernel support translating internal messages it emits but it can
     7also translate both the metadata informations stored in the ZCFG file
     8and the messages emitted by the ZOO-Service itself. This document show
     9how to create the files required to handle such a translation process
     10for the ZOO-Services.
    711
    8  * Translate ZOO-Services configuration files
    9    
    10  * Translate documentation
    11    
    1212
    1313ZCFG translation
    1414--------------------------
    1515
    16 First of all, use the following commands from your Services Provider directory in order to extract all the messages to translate from the ZCFG files :
     16First of all, use the following commands from your Services Provider
     17directory in order to extract all the messages to translate from the
     18ZCFG files :
    1719
    1820  ::
    1921 
    2022      #!/bin/bash
     23      mkdir -p locale/{po,.cache}
    2124      for j in cgi-env/*zcfg ;
    2225        do
     
    2831   
    2932
    30 Then generate the 'messages.po' file based on the Services Provider source code using the following command :
     33Then generate the 'messages.po' file based on the Services Provider
     34source code (located in ``service.c`` in this example) using the
     35following command:
    3136
    3237  ::
     
    3540      xgettext service.c locale/.cache/my_service_string_to_translate.c -o message.po -p locale/po/ -k_ss
    3641
    37 Once 'messages.po' is created, use the following command to create the po file for the targeted language for translation. We will use the French language here as an example :
     42Once 'messages.po' is created, use the following command to create the
     43``.po`` file for the targeted language to translate into. We will use the
     44French language here as an example:
    3845
    3946  ::
     
    4350      msginit -i messages.po -o zoo_fr_FR.po -l fr
    4451
    45 Edit the zoo_fr_FR.po file with your favorite text editor or using one of the following tools :
     52Edit the ``zoo_fr_FR.po`` file with your favorite text editor or using
     53one of the following tools:
    4654
    4755 * `poedit <http://www.poedit.net/>`__
     
    4957 * `transifex <https://www.transifex.net/>`__
    5058 
    51 Once the zoo_fr_FR.po file is completed, you can generate and install the corresponding *mo* file using the following command :
     59Once the ``zoo_fr_FR.po`` file is completed, you can generate and
     60install the corresponding ``.mo`` file using the following command:
    5261
    5362  ::
     
    7483      msgcat -o compilation.po $(find ../../ -name fr_FR.utf8.po)
    7584      msgfmt compilation.po -o /usr/share/locale/fr/LC_MESSAGES/zoo-services.mo
    76 
    77 
    78 Documentation translation
    79 --------------------------
    80 
    81 Translate the `ZOO-Project <http://zoo-project.org>`__ documentation in your language !
    82 
    83 Please refer to the :ref:`<contribute_doc>` section to learn more.
Note: See TracChangeset for help on using the changeset viewer.

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