Changeset 717 for branches/PublicaMundi_David-devel/docs/services
- Timestamp:
- Jun 30, 2015, 10:30:52 PM (10 years ago)
- Location:
- branches/PublicaMundi_David-devel/docs/services
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/docs/services/debug.rst
r716 r717 86 86 run "service=wps&version=1.0.0&request=execute&identifier=HelloPy&datainputs=a=your name&responsedocument=Result" 87 87 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 92 If nothing helped, you can ask help at the `ZOO mailing list 93 <http://lists.osgeo.org/cgi-bin/mailman/listinfo/zoo-discuss>`_ 89 94 copying the result of the command. 90 95 -
branches/PublicaMundi_David-devel/docs/services/index.rst
r696 r717 16 16 process-profiles 17 17 howtos 18 translation 18 19 status 19 20 debug -
branches/PublicaMundi_David-devel/docs/services/translation.rst
r715 r717 1 .. _ contribute_trans:1 .. _service_translation: 2 2 3 Contribute translation 4 =============== 3 Translation Support 4 =================== 5 5 6 Anybody can take part to the `ZOO-Project <http://zoo-project.org>`__ translation and is welcome to: 6 ZOO-Kernel support translating internal messages it emits but it can 7 also translate both the metadata informations stored in the ZCFG file 8 and the messages emitted by the ZOO-Service itself. This document show 9 how to create the files required to handle such a translation process 10 for the ZOO-Services. 7 11 8 * Translate ZOO-Services configuration files9 10 * Translate documentation11 12 12 13 13 ZCFG translation 14 14 -------------------------- 15 15 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 : 16 First of all, use the following commands from your Services Provider 17 directory in order to extract all the messages to translate from the 18 ZCFG files : 17 19 18 20 :: 19 21 20 22 #!/bin/bash 23 mkdir -p locale/{po,.cache} 21 24 for j in cgi-env/*zcfg ; 22 25 do … … 28 31 29 32 30 Then generate the 'messages.po' file based on the Services Provider source code using the following command : 33 Then generate the 'messages.po' file based on the Services Provider 34 source code (located in ``service.c`` in this example) using the 35 following command: 31 36 32 37 :: … … 35 40 xgettext service.c locale/.cache/my_service_string_to_translate.c -o message.po -p locale/po/ -k_ss 36 41 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 : 42 Once '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 44 French language here as an example: 38 45 39 46 :: … … 43 50 msginit -i messages.po -o zoo_fr_FR.po -l fr 44 51 45 Edit the zoo_fr_FR.po file with your favorite text editor or using one of the following tools : 52 Edit the ``zoo_fr_FR.po`` file with your favorite text editor or using 53 one of the following tools: 46 54 47 55 * `poedit <http://www.poedit.net/>`__ … … 49 57 * `transifex <https://www.transifex.net/>`__ 50 58 51 Once the zoo_fr_FR.po file is completed, you can generate and install the corresponding *mo* file using the following command : 59 Once the ``zoo_fr_FR.po`` file is completed, you can generate and 60 install the corresponding ``.mo`` file using the following command: 52 61 53 62 :: … … 74 83 msgcat -o compilation.po $(find ../../ -name fr_FR.utf8.po) 75 84 msgfmt compilation.po -o /usr/share/locale/fr/LC_MESSAGES/zoo-services.mo 76 77 78 Documentation translation79 --------------------------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.