Difference between revisions of "Talk:Live GIS Translate"

From OSGeo
Jump to navigation Jump to search
(added video)
Line 5: Line 5:
 
== Implementation ==
 
== Implementation ==
  
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://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.
  
 
== Current State 2017-01-02 ==
 
== Current State 2017-01-02 ==

Revision as of 01:38, 15 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:

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.

Current State 2017-01-02

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 automatical reading of the verion 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.

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

Tipps and Tricks

It is possible to delete a lot of ressources 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.