Changeset 717 for branches


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.

Location:
branches/PublicaMundi_David-devel/docs
Files:
6 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/PublicaMundi_David-devel/docs/contribute/doc.rst

    r696 r717  
    55
    66Contribute documentation
    7 ==================
     7========================
    88
    99ZOO Documentation is a collaborative process managed by the ZOO developers. Anybody is welcome to contribute to the ZOO-Project documentation. Please consider the following instructions before doing so.
     
    1111General information
    1212------------------------
     13
     14Heading syntaxe
     15...............
     16
     17Tere are various title heading used in the documentation, when you
     18create a new document, you're invited to follow the following heading
     19underline syntaxe:
     20
     21 * for Heading 1, use ``=``,
     22 *  for Heading 2, use ``-``,
     23 *  for Heading 3, use ``.``,
     24 *  for Heading 4, use ``*``,
     25 *  for Heading 5, use ``#``.
     26 
    1327
    1428For new comers
     
    3852
    3953Installing and using Sphinx
    40 ------------------------
     54---------------------------
    4155
    4256On Linux
  • branches/PublicaMundi_David-devel/docs/contribute/index.rst

    r699 r717  
    22
    33Contributor Guide
    4 =============
     4=================
    55
    6 This is the `ZOO-Project <http://zoo-project.org>`__ **Contributor Guide**. This document provides information and guidelines to anyone willing to contribute to the `ZOO-Project <http://zoo-project.org>`__ open source software project and help making it better.
     6This is the `ZOO-Project <http://zoo-project.org>`__ **Contributor
     7Guide**. This document provides information and guidelines to anyone
     8willing to contribute to the `ZOO-Project <http://zoo-project.org>`__
     9open source software project and help making it better.
    710
    811.. toctree::
     
    1215   code
    1316   doc
    14    translate
    1517   dev
    1618   release
  • branches/PublicaMundi_David-devel/docs/install/download.rst

    r696 r717  
    77
    88.. warning::
    9     The ZOO-Project svn is the place where developement happens. Checking out svn is the best way to be always up to date.
     9    The ZOO-Project svn is the place where developement
     10    happens. Checking out svn is the best way to be always up-to-date.
     11
     12
     13ZOO-Project releases archives
     14-------------------------------
     15
     16Each new `ZOO-Project <http://zoo-project.org>`_ major release are
     17available on the project official website as .zip and .tar.bz2
     18archives. Head to the `Downloads
     19<http://zoo-project.org/site/Downloads>`_ section to get the latest or
     20older ZOO-Project releases.
     21
     22.. warning::
     23    Don't use older versions of ZOO-Project if you want to use new
     24    features and avoid older code issues. Prefer svn or github
     25    instead.
     26
    1027
    1128
     
    2946 
    3047.. note::
    31     The ZOO-Project svn server listens on the 1046 (1024+22) portvb(instead of 22 by default), so please use a specific tunnel to access the svn server, as shown in the command above.
    32 
    33 
    34 ZOO-Project releases archives
    35 -------------------------------
    36 
    37 Each new `ZOO-Project <http://zoo-project.org>`_ major release is also made available on the project official website as .zip and .tar.bz2 archives. Head to the `Download <http://zoo-project.org/Code/Download>`_ section to get the latest or older ZOO-Project releases.
    38 
    39 .. warning::
    40     Don't use older versions of ZOO-Project if you want to use new features and avoid older code issues. Prefer svn or github instead.
     48    The ZOO-Project svn server listens on the 1046 (1024+22) port
     49    (instead of 22 by default), so please use a specific tunnel to
     50    access the svn server, as shown in the command above.
    4151
    4252ZOO-Project Github
  • branches/PublicaMundi_David-devel/docs/install/installation.rst

    r714 r717  
    370370    the ``--with-wx-config``  to specify its location.
    371371
     372Translation support (Optional)
     373******************************
     374
     375The ZOO-Kernel is able to translate the messages it produce in different
     376natural languages. For this translation support to work, you have to
     377generate and install manually the quested files on your system, by
     378using the following command:
     379
     380.. code::
     381
     382    msgfmt zoo-project/zoo-kernel/locale/po/fr_FR.utf8.po -o /usr/share/locale/fr/LC_MESSAGES/zoo-kernel.mo
     383
     384The ZOO-Kernel is also able to handle translation of
     385ZOO-Services. Please, refer to :ref:`this document
     386<service_translation>` for more details on the procedure to add new
     387ZOO-Service translation files.
     388
     389.. warning::
     390    The location of the final ``.mo`` file may vary depending on your
     391    system setup.
     392
     393
    372394Install ZOO-Services
    373395--------------------
  • branches/PublicaMundi_David-devel/docs/services/debug.rst

    r716 r717  
    8686  run "service=wps&version=1.0.0&request=execute&identifier=HelloPy&datainputs=a=your name&responsedocument=Result"
    8787
    88 At this point you can ask help at the `ZOO mailing list <http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss>`_
     88.. note::
     89    You can use the same parameter used before to simulate POST
     90    requests when running from gdb.
     91
     92If nothing helped, you can ask help at the `ZOO mailing list
     93<http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss>`_
    8994copying the result of the command.
    9095
  • branches/PublicaMundi_David-devel/docs/services/index.rst

    r696 r717  
    1616   process-profiles
    1717   howtos
     18   translation
    1819   status
    1920   debug
  • 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