how to copy translation from 2.99 (transifex) to 2.18 (ts on github)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how to copy translation from 2.99 (transifex) to 2.18 (ts on github)

skampus
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


as you know, I'm translating the development version.
I noticed however that version 2.18 lacks about 5000 strings that are instead translated into the current version of transifex.

I'd like to insert the missing strings translated in the newer version into the older version. Also some strings have been corrected in the new version and I'd like to replace them in the older.

I used lconvert in this form:

lconvert -i 2.18.ts 2.99.ts -o total.ts

But QT Linguist warns that in total.ts there are duplicated strings.

Is it possible to insert in the older version (2.18) only the strings that are the same (in english) from the newer (2.99)?

thank you in advance

s,

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr
Reply | Threaded
Open this post in threaded view
|

Re: how to copy translation from 2.99 (transifex) to 2.18 (ts on github)

macho
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


Hi Stefano,

If you find a solution for that problem I am very interested in it.
I did not manage to (bulk) backport translations yet.
It would be really nice to be able to do that (without loosing correct old translations, but rather only adding the new translated)

Honestly I never managed that without errors - and  like you I am worried more about loosing lots of existing translations than winning a few new ones.

But it is nice to see that more people are trying this .. maybe one day we are lucky to find a solution.

regards
Werner

On Mon, Oct 9, 2017 at 10:10 PM, Stefano Campus <[hidden email]> wrote:
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


as you know, I'm translating the development version.
I noticed however that version 2.18 lacks about 5000 strings that are instead translated into the current version of transifex.

I'd like to insert the missing strings translated in the newer version into the older version. Also some strings have been corrected in the new version and I'd like to replace them in the older.

I used lconvert in this form:

lconvert -i 2.18.ts 2.99.ts -o total.ts

But QT Linguist warns that in total.ts there are duplicated strings.

Is it possible to insert in the older version (2.18) only the strings that are the same (in english) from the newer (2.99)?

thank you in advance

s,

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr


_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr
Reply | Threaded
Open this post in threaded view
|

Re: how to copy translation from 2.99 (transifex) to 2.18 (ts on github)

skampus
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


I found an artisanal solution:
1) I create a private transifex project
2) I load as source the 2.18 English version, downloaded from  <a href="https://github.com/qgis/QGIS/tree/release-2_18/i18n\qgis_en.ts">https://github.com/qgis/QGIS/tree/release-2_18/i18n\qgis_en.ts
3) I impose Italian as translation language and I upload to this private transifex project the qgis_it.ts downloaded from the current official transifex.

at this point I see that on 18238 strings, 4274 have to be translated .

what happens is that for untranslated strings, in the "history" section there is the proposal translation that comes from 2.99.

what I do is clicking on "use this" and save.

slow and boring, but it works.

when I'll finish (in a hurry because a free personal project in transifex lasts a maximum of 15 days) I'll export from transifex the .ts and make the pull request for the branch 2.18.
in this way the common translations between 2.18 and 2.99 will be homogeneous.

it is not an elegant solution but hope this helps
:-)

s.






2017-10-10 9:52 GMT+02:00 Werner Macho <[hidden email]>:
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


Hi Stefano,

If you find a solution for that problem I am very interested in it.
I did not manage to (bulk) backport translations yet.
It would be really nice to be able to do that (without loosing correct old translations, but rather only adding the new translated)

Honestly I never managed that without errors - and  like you I am worried more about loosing lots of existing translations than winning a few new ones.

But it is nice to see that more people are trying this .. maybe one day we are lucky to find a solution.

regards
Werner

On Mon, Oct 9, 2017 at 10:10 PM, Stefano Campus <[hidden email]> wrote:
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/


as you know, I'm translating the development version.
I noticed however that version 2.18 lacks about 5000 strings that are instead translated into the current version of transifex.

I'd like to insert the missing strings translated in the newer version into the older version. Also some strings have been corrected in the new version and I'd like to replace them in the older.

I used lconvert in this form:

lconvert -i 2.18.ts 2.99.ts -o total.ts

But QT Linguist warns that in total.ts there are duplicated strings.

Is it possible to insert in the older version (2.18) only the strings that are the same (in english) from the newer (2.99)?

thank you in advance

s,

_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr


_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr


_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr
Reply | Threaded
Open this post in threaded view
|

Re: how to copy translation from 2.99 (transifex) to 2.18 (ts on github)

Maris Nartiss
In reply to this post by macho
Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/

KDE has chosen an different approach - files to translate contain both
old and new (stable and dev) strings thus unchanged strings are
translated for both at the same time, but new ones need to be
translated anyway. Still it is achieved by using PO files + special
scripts to handle string accumulation from branches to main PO file.
So far I haven't seen any better approach if translations for both dev
and stable must be provided.
I have no idea if KDE PO Summit workflow could be adopted for use in Transifex.

Just my 0.02 Verizon cents
Māris.

2017-10-10 10:52 GMT+03:00 Werner Macho <[hidden email]>:

> Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/
>
>
> Hi Stefano,
>
> If you find a solution for that problem I am very interested in it.
> I did not manage to (bulk) backport translations yet.
> It would be really nice to be able to do that (without loosing correct old translations, but rather only adding the new translated)
>
> Honestly I never managed that without errors - and  like you I am worried more about loosing lots of existing translations than winning a few new ones.
>
> But it is nice to see that more people are trying this .. maybe one day we are lucky to find a solution.
>
> regards
> Werner
>
_______________________________________________
QGIS-Translators mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/qgis-tr