[Qgis-community-team] transifex with history

Diethard Jansen diethard.jansen at gmail.com
Sat Nov 23 06:57:33 PST 2013


Hi there,

I have a workaround  to put history back into files from transifex.
It is worthwhile and saves a lot of time for files with many items that
were completely translated before.

First checkout the 1.8 branch from your local "QGIS-Documentation" Git
repository with:

git checkout manual_en_v1.8

>From transifex select a file that was completely translated in 1.8, but now
there seems to be a lot of translation work you have to do (again).

In Transifex instead of translating the file online, you select the option
"Download for translation" the file will be downloaded and locked, so
others can see you are working on it.

Copy the file from the git repository in a folder together with the
corresponding file you have just dowloaded from transifex.

In a terminal window go to that folder and merge the contents of the file
from transifex into the file from the git repository (i.e. foreword.po)
with:

msgmerge foreword.po
for_translation_qgis_documentation_docs_user-manual_preamble_foreword_nl.po
-U

The result is a .po file, in this case forword.po, with all items to
translate from transifex but now with history!

Translate the items in the forward.po file with history using Qt Linguist.
Upload forward.po to transifex using the "Upload file" function you see
when selecting the file in transifex.
Unlock the file and others can join in to translate the new added items.

This way Transifex still remains the one and only place that is used to
provide new translations.

To please translators it would be great if the 2.0 branch of the QGIS
Documentation Git repository is left alone as much as possible and further
changes in rst source are only done in Master.

Regards,
Diethard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-community-team/attachments/20131123/2b513003/attachment.html>


More information about the Qgis-community-team mailing list