Difference between revisions of "Talk:Live GIS Translate"

From OSGeo
Jump to navigation Jump to search
(→‎Implementation: added thread in QGIS Translation mailing list)
 
(79 intermediate revisions by 9 users not shown)
Line 1: Line 1:
== de quickstart translations ==
+
It would be nice to do the translation with [https://www.transifex.com/osgeo/osgeolive Transifex]. In contrast to [https://github.com/OSGeo/OSGeoLive-doc github], Transifex is much easier for non-technical people. Moreover we can get an good overview how much is translated. Other projects also use Transifex for their translations:
; application status sheet
+
* [https://github.com/qgis/QGIS-Documentation QGIS-Documentation] [https://www.transifex.com/qgis/qgis-documentation translation]
* https://spreadsheets.google.com/ccc?key=0AlRFyY1XenjJdFRDbjFyWHg1MlNTRm10QXk0UWEzWlE&hl=en_GB&authkey=CPTB6uIE#gid=30
+
* [https://github.com/opengisch/QField-docs QField-Documentation] [https://www.transifex.com/opengisch/qfield-documentation translation]
  
'''fett''' -> erledigt
+
== How is the translation handled now? ==
  
* '''52nSOS_quickstart.rst''' -> projekt
+
At the moment each language has its own folder with .rst files. The problem is that is difficult to see if the translation is up to date or not. In order to change files, it is necessary to change it on GitHub.
* 52nWPS_quickstart.rst -> projekt
+
 
* atlasstyler_quickstart.rst -> projekt stefan
+
== What is a better way to do translations? ==
* '''deegree_quickstart.rst''' -> projekt latlon
+
 
* gdal_quickstart.rst -> astrid
+
One improvement would be to do the translations using .po files. [http://www.sphinx-doc.org/en/1.5.1/intl.html This site] explains how it works. The English source files are still stored in .rst files. Every other language consist of .po files. A .po file contains the English source and its translation. These .po can be updated once the English source language is updated. So it is easy to keep updated.
* geokettle_quickstart.rst
+
 
* geomajas_quickstart.rst -> dominik
+
The translation of the .po files can be done manually in a text editor or with some special desktop programs for .po files. This is the point where Transifex comes into play: The process of translating the .po files can be "outsourced" to Transfex. It has a nice user interface and is free for open source projects (commercial projects have to pay).  
* geonetwork_quickstart.rst -> david 
+
 
* geopublisher_quickstart.rst -> projekt stefan
+
== Implementation ==
* geoserver_quickstart.rst -> frank, dominik
+
 
* gmt_quickstart.rst
+
This [https://lists.osgeo.org/pipermail/live-demo/2016-August/011644.html mail] already explains some basic steps and demonstrates it in this [https://github.com/ThomasG77/OSGeoLive-doc/tree/transifex fork]. Moreover the [https://docs.transifex.com/integrations/sphinx-doc/ documentation] on the Transifex website is useful as well. [http://www.sphinx-doc.org/en/1.5.1/intl.html Sphinx] provides instructions as well. This [https://www.youtube.com/watch?v=Nz8zutA55fI video] gives a good overview about Sphinx and Transifex. This [https://lists.osgeo.org/pipermail/live-demo/2017-January/011741.html mail] provides some findings about the implementation. There is [https://lists.osgeo.org/pipermail/qgis-tr/2017-January/000797.html contact] to the QGIS translation community.
* gpsdrive_quickstart.rst
+
 
* grass_quickstart.rst -> otto
+
== Current State ==
* gvsig_quickstart.rst ruth
+
 
* internationalisation_quickstart.rst
+
I used this branch https://github.com/ThomasG77/OSGeoLive-doc/tree/transifex . Then I did this commands:
* kosmo_quickstart.rst
+
 
* '''mapbender_quickstart.rst''' -> astrid
+
First it is necessary to change these lines in the conf.py file https://github.com/OSGeo/OSGeoLive-doc/blob/master/conf.py#L25 .
* mapfish_quickstart.rst -> dominik
+
 
* mapguide_quickstart.rst
+
The automatic reading of the version number causes troubles. So the the version number should simply be "hard-coded":
* mapnik_quickstart.rst -> dominik
+
 
* '''mapproxy_quickstart.rst''' -> dominik
+
version = '10.5'
* mapserver_quickstart.rst -> otto
+
 
* maptiler_quickstart.rst
+
Then:
* marble_quickstart.rst
+
 
* mb-system_quickstart.rst
+
make gettext
* opencpn_quickstart.rst
+
sphinx-intl update -p _build/locale
* openjump_quickstart.rst
+
tx init
* openlayers_quickstart.rst --> dominik
+
sphinx-intl update-txconfig-resources --pot-dir _build/locale --transifex-project-name osgeolive
* osgearth_quickstart.rst -> pirmin
+
tx push -s
* osgeolive_install_quickstart.rst -> thomas
+
# Now the English source language should be pushed to Transifex.
* osgeolive_quickstart.rst -> thomas
+
 
* osm_quickstart.rst
+
# Do some translation
* ossim_quickstart.rst -> otto
+
 
* otb_quickstart.rst
+
# Pull the translation to the local repository
* '''pgrouting_quickstart.rst''' -> daniel
+
tx pull -l de
* postgis_quickstart.rst -> astrid
+
 
* prune_quickstart.rst
+
# build the html files for the German translation
* '''qgis_mapserver_quickstart.rst ''' -> primin
+
make -e SPHINXOPTS="-D language='de'" html
* qgis_quickstart.rst -> pirmin
+
 
* rasdaman_quickstart.rst -> projekt
+
 
* R_quickstart.rst -> otto
+
Now the English source language should be pushed to Transifex.
* saga_quickstart.rst -> otto
+
 
* '''sahana_quickstart.rst''' -> daniel
+
Changing the language team line by "Language-Team: ENGLISH <https://live.osgeo.org/en/contact.html\n" seems mandatory.
* '''spatialite_quickstart.rst''' -> daniel
+
 
* tiny_ows -> primin
+
== What has been tested so far? ==
* udig_quickstart.rst -> frank
+
 
* usb_quickstart.rst -> thomas
+
The whole process of translation already works with the command lines:
* '''ushahidi_quickstart.rst''' -> daniel
+
 
* viking_quickstart.rst
+
- creating .pot and .po files
* virtualbox_quickstart.rst -> otto
+
 
* '''zoo-project_quickstart.rst''' -> daniel
+
- pushing to Transifex
* zygrib_quickstart.rst
+
 
 +
- translating in Transifex
 +
 
 +
- pulling translation to the local repo
 +
 
 +
- creating html for a translated language
 +
 
 +
== Open Challenges ==
 +
 
 +
- the whole process should be done completely automatically: In order to do this the "Makefile" should be edited. More commands need to be edited. The "Makefile"s of other projects (QGIS, QField) could be taken as inspiration.
 +
 
 +
 
 +
- The folder structure should be cleaned up. At the moment some .rst files are outside the main documentation. This causes troubles and should be fixed.
 +
 
 +
== Tipps and Tricks ==
 +
 
 +
It is possible to delete a lot of resources on Transifex using this command:
 +
 
 +
tx delete -r osgeolive.de--*
 +
 
 +
It is possible to delete just a single file, but you can also delete a lot of files using the "*".
 +
 
 +
You might need it if you accidentally upload wrong files.

Latest revision as of 12:36, 30 January 2017

It would be nice to do the translation with Transifex. In contrast to github, Transifex is much easier for non-technical people. Moreover we can get an good overview how much is translated. Other projects also use Transifex for their translations:

How is the translation handled now?

At the moment each language has its own folder with .rst files. The problem is that is difficult to see if the translation is up to date or not. In order to change files, it is necessary to change it on GitHub.

What is a better way to do translations?

One improvement would be to do the translations using .po files. This site explains how it works. The English source files are still stored in .rst files. Every other language consist of .po files. A .po file contains the English source and its translation. These .po can be updated once the English source language is updated. So it is easy to keep updated.

The translation of the .po files can be done manually in a text editor or with some special desktop programs for .po files. This is the point where Transifex comes into play: The process of translating the .po files can be "outsourced" to Transfex. It has a nice user interface and is free for open source projects (commercial projects have to pay).

Implementation

This mail already explains some basic steps and demonstrates it in this fork. Moreover the documentation on the Transifex website is useful as well. Sphinx provides instructions as well. This video gives a good overview about Sphinx and Transifex. This mail provides some findings about the implementation. There is contact to the QGIS translation community.

Current State

I used this branch https://github.com/ThomasG77/OSGeoLive-doc/tree/transifex . Then I did this commands:

First it is necessary to change these lines in the conf.py file https://github.com/OSGeo/OSGeoLive-doc/blob/master/conf.py#L25 .

The automatic reading of the version number causes troubles. So the the version number should simply be "hard-coded":

version = '10.5'

Then:

make gettext
sphinx-intl update -p _build/locale
tx init
sphinx-intl update-txconfig-resources --pot-dir _build/locale --transifex-project-name osgeolive
tx push -s
# Now the English source language should be pushed to Transifex.
# Do some translation
# Pull the translation to the local repository 
tx pull -l de 
# build the html files for the German translation 
make -e SPHINXOPTS="-D language='de'" html


Now the English source language should be pushed to Transifex.

Changing the language team line by "Language-Team: ENGLISH <https://live.osgeo.org/en/contact.html\n" seems mandatory.

What has been tested so far?

The whole process of translation already works with the command lines:

- creating .pot and .po files

- pushing to Transifex

- translating in Transifex

- pulling translation to the local repo

- creating html for a translated language

Open Challenges

- the whole process should be done completely automatically: In order to do this the "Makefile" should be edited. More commands need to be edited. The "Makefile"s of other projects (QGIS, QField) could be taken as inspiration.


- The folder structure should be cleaned up. At the moment some .rst files are outside the main documentation. This causes troubles and should be fixed.

Tipps and Tricks

It is possible to delete a lot of resources on Transifex using this command:

tx delete -r osgeolive.de--*

It is possible to delete just a single file, but you can also delete a lot of files using the "*".

You might need it if you accidentally upload wrong files.