- Timestamp:
- Jun 30, 2015, 10:35:39 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PublicaMundi_David-devel/docs/contribute/translate.rst
- Property svn:keywords set to Date Author
r679 r696 23 23 for i in Title Abstract; 24 24 do 25 grep $i $j | sed "s:$i = :_ (\":g;s:$:\"):g" ;25 grep $i $j | sed "s:$i = :_ss(\":g;s:$:\"):g" ; 26 26 done; 27 27 done > locale/.cache/my_service_string_to_translate.c … … 33 33 34 34 #!/bin/bash 35 xgettext service.c locale/.cache/my_service_string_to_translate.c -o message.po -p locale/po/ -k_ 35 xgettext service.c locale/.cache/my_service_string_to_translate.c -o message.po -p locale/po/ -k_ss 36 36 37 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 : … … 45 45 Edit the zoo_fr_FR.po file with your favorite text editor or using one of the following tools : 46 46 47 * [http://www.poedit.net/ poedit]48 * [http://translate.sourceforge.net/wiki/virtaal/index virtaal]49 * [https://www.transifex.net/projects/p/grass6/c/grass64/ transifex]47 * `poedit <http://www.poedit.net/>`__ 48 * `virtaal <http://translate.sourceforge.net/wiki/virtaal/index>`__ 49 * `transifex <https://www.transifex.net/>`__ 50 50 51 51 Once the zoo_fr_FR.po file is completed, you can generate and install the corresponding *mo* file using the following command : … … 61 61 example, such a request: 62 62 63 [http://youserver/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS] 63 http://youserver/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS 64 64 65 65 would become the following: 66 66 67 [http://youserver/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS&language=fr-FR] 67 http://youserver/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS&language=fr-FR 68 68 69 69 The following command may also be useful in order to pull all the translations already available for a specific language.
Note: See TracChangeset
for help on using the changeset viewer.