Marking translations as 'published' in Scilab

Asked by kkirill

I would like to ask for enabling the following two statuses in Scilab (https://translations.launchpad.net/scilab):
1) "Translation unchanged since last synchronized
2) "Changed in Launchpad"

These statuses aren't used for now, although there are available (displayed in legend)

Please, describe how to mark translations included into last scilab release as 'published' and provide translators with these two additional statuses.

Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Henning Eggers
Solved:
Last query:
Last reply:
Revision history for this message
Sylvestre Ledru (sylvestre) said :
#1

Hi

I agree that would be nice to have !

Thx if anyone can implement it!

Revision history for this message
Henning Eggers (henninge) said :
#2

This is not answered.

Revision history for this message
Henning Eggers (henninge) said :
#3

There is nothing for us to enable or implement here.

Those two statusses you are asking for refer to imported translations which you only get when you upload po files. Those are considered as "published", meaning the translations are published elsewhere, too, in an upstream project for example. Then "Translation unchanged" refers to all strings that are still the same as in the imported file and "Changed in LP" refers to strings that had a translation in the imported file but which was changed through the Launchpad user interface.

If you do all your translation work in Launchpad, those statusses won't appear.

Henning

Revision history for this message
kkirill (kirill-kirillov) said :
#4

Henning, thanks for clarification, but I still have question, sorry:

All translations are exported from Launchpad to build Scilab localization:
http://wiki.scilab.org/Localization#head-619121f1e1edfb104938c36ba69e07afd0a40733

Is it possible to upload just exported files back to Launchpad to mark translations as 'published' and to enable mentioned statuses?

I just want to know what should be changed to have this useful feature

Thanks

Revision history for this message
Henning Eggers (henninge) said :
#5

Yes, if you import the files they will be marked as "published". Please have a look at the guidelines on https://help.launchpad.net/Translations/ImportPolicy to make upload of a full tarball as smooth as possible.

Henning

Revision history for this message
kkirill (kirill-kirillov) said :
#6

It seems that I've understood your solution, but it's very unusable.
I'll try to explain my opinion:
1) Scilab has translations in different languages:
https://translations.launchpad.net/scilab/trunk
2) Every language have many templates, e.g., for Russian:
https://translations.launchpad.net/scilab/trunk/+lang/ru
3) Open manually every template for every language and upload appropriate po file from the last Scilab release with 'publish' option and wait for approval of every import:
https://translations.launchpad.net/scilab/trunk/+imports

I think that you'll agree with me, that there should be better solution, like "Export All and Mark All as Published Afterwards" option (button). This option should be available only for project manager who actually import translations into upstream (Sylvestre Ledru is that person in Scilab).

Thanks for your time and attention.

Revision history for this message
Best Henning Eggers (henninge) said :
#7

You only need to upload one file here:
https://translations.edge.launchpad.net/scilab/trunk/+translations-upload

This file must be a "tarball" (.tar.gz or .zip) with a subdirectory for each template and a correctly named pofile for each language. Look at "Sample directory layout" on https://help.launchpad.net/Translations/ImportPolicy. All such uploads are considered "published" uploads.

You can also download all translations in one tarball here:
https://translations.edge.launchpad.net/scilab/trunk/+export

Unfortunately the files in this tarball are not named correctly so you will have to do some shell magic before you can upload them again. This is a known bug.

This requires a little bit of work but I think it is quite doable.

Revision history for this message
kkirill (kirill-kirillov) said :
#8

Thank you very much for your answers

I don't have enough permission to access to
https://translations.edge.launchpad.net/scilab/trunk/+translations-upload
therefore I though that the only solution is to upload translations per module. I was wrong, sorry.

Sylvestre Ledru, please, try to upload tar.gz file with current upstream translations with 'publish' option using URL above.

Revision history for this message
kkirill (kirill-kirillov) said :
#9

Thanks Henning Eggers, that solved my question.

Revision history for this message
Henning Eggers (henninge) said :
#10

Sylvestre, don't be confused if you don't see a "published" switch on that upload form because there is none. The upload will be considered "published" by default, no need to mark it as such.