Difference between revisions of "Talk:Live GIS Translate"

From OSGeo
Jump to navigation Jump to search
(added link to transifex fork)
(short status report)
Line 6: Line 6:
  
 
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.
 +
 +
== Current State 2017-01-02 ==
 +
 +
I used this branch https://github.com/ThomasG77/OSGeoLive-doc/tree/transifex . Then I did this commands:
 +
 +
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
 +
 +
Then comes a error messages:
 +
 +
tx push -s
 +
Pushing translations for resource osgeolive.index:
 +
Pushing source file (_build/locale/index.pot)
 +
Resource does not exist.  Creating...
 +
Exception: Unexpected import error (cause: Syntax error in po file None (line 10))
 +
 +
The file "_build/locale/index.pot" looks like this:
 +
 +
# SOME DESCRIPTIVE TITLE.
 +
# Copyright (C) 2011, OSGeo
 +
# This file is distributed under the same license as the OSGeo-Live package.
 +
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
 +
#
 +
#, fuzzy
 +
msgid ""
 +
msgstr ""
 +
"Project-Id-Version: OSGeo-Live 10.0
 +
\n"
 +
"Report-Msgid-Bugs-To: \n"
 +
"POT-Creation-Date: 2017-01-02 20:00+0100\n"
 +
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 +
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 +
"Language-Team: LANGUAGE <LL@li.org>\n"
 +
"MIME-Version: 1.0\n"
 +
 +
Somehow in line 10 there is a "\n" which causes trouble. When I fix this line, then I am able to push content to Transifex.

Revision as of 12:22, 2 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.

Current State 2017-01-02

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

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

Then comes a error messages:

tx push -s Pushing translations for resource osgeolive.index: Pushing source file (_build/locale/index.pot) Resource does not exist. Creating... Exception: Unexpected import error (cause: Syntax error in po file None (line 10))

The file "_build/locale/index.pot" looks like this:

  1. SOME DESCRIPTIVE TITLE.
  2. Copyright (C) 2011, OSGeo
  3. This file is distributed under the same license as the OSGeo-Live package.
  4. FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. , fuzzy

msgid "" msgstr "" "Project-Id-Version: OSGeo-Live 10.0 \n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-01-02 20:00+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "MIME-Version: 1.0\n"

Somehow in line 10 there is a "\n" which causes trouble. When I fix this line, then I am able to push content to Transifex.