How to have my translation import queue review ?

Asked by Sylvestre Ledru

Hello,

I have plugged the "Import template and translation files" from Launchpad. However, many items are still under review:
https://translations.launchpad.net/scilab/trunk/+imports

Can I have the permissions on this ?
Is it possible to automatically accept translation files from the repository since it is a safe source.

Thanks
S

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
Данило Шеган Edit question
Last query:
Last reply:
Revision history for this message
Данило Шеган (danilo) said :
#1

Unfortunately, you can't get a permission to manage the import queue yourself. At this point in time we'd be happy to let people manage their own import queue though, so if somebody comes around and implements appropriate privileges, we'd gladly accept it into Launchpad.

However, looking at your import queue, there are no templates (.pot files) that are waiting on approval. The problem with the files you have in the queue is that they do not exist as languages in Launchpad. In general, you should simply use "de" for German (instead of "de_DE"), "es" for Spanish, etc (but still use "pt_BR" for Brazilian and "pt" for "regular" Portuguese). So ideally, you'd switch to these.

If that doesn't work for you, we can set up "custom language codes" mapping for your project, though that's not easily editable either (Jeroen did have a branch lying around that implements UI for this: we should get it landed).

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#2

I would prefer a custom language codes. I'd like to stick to the current code name de_DE, etc.

I had to do a lot of translations in more than 100 .po files. I really would like avoid having to upload one by one the updated translations ... :/

Revision history for this message
Данило Шеган (danilo) said :
#3

You wouldn't have to upload them one-by-one: you can easily "bzr mv" them in the branch and it will pick up the files right after that. We have limited administrator availability these days (with the holiday season approaching) so I'll try to get to this soon, but if you want it to happen quicker I still suggest you rename the files.

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#4

Hello Данило,

Do you think an administrator could find some time to manage that ?

Thanks
S

Revision history for this message
Jeroen T. Vermeulen (jtv) said :
#5

It looks like these were already approved. By the way, for some time now we have the custom language codes accessible in the UI. Project owners can now define their own.

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#6

OK, you just rocks!
I just did it for Scilab:
https://translations.launchpad.net/scilab/+custom-language-codes

Will it automatically process the following ?
https://translations.launchpad.net/scilab/+imports

thanks!

Revision history for this message
Curtis Hovey (sinzui) said :
#7

The user is answered.

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#8

Curtis: Actually, no.
The initial question was: "How to have my translation import queue review ?"
if you go on https://translations.launchpad.net/scilab/+imports
You will see that I am still waiting for 744 update of localization files to be reviewed.

Revision history for this message
Jeroen T. Vermeulen (jtv) said :
#9

Probably not. :( There are a few exceptions in the code, but the general rule is that a PO file has to be in exactly the same directory as its template (POT file). That's how the auto-approver figures out which template a translation file belongs to.

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#10

Can I have an exception ? ;)

Revision history for this message
Jeroen T. Vermeulen (jtv) said :
#11

That's not something we can configure, sorry! There are a few other structures that are hard-wired into the code, but this is very old and brittle stuff so we can't very easily change it. The standard way of doing it is to have one directory for each template, and in that directory go one "name.pot" (fill in the template's unique name of course) and all the "ll.po" and "ll_RR.po" for the regular languages (ll for the language code) and perhaps a few regional (RR) variants.

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#12

I really don't mind changing my stuff but just want to be sure I will still work a same way for user of launchpad.

Scilab is divided in many modules (about 60 about)

in each module, I have a directory locale which contains:
./ca_ES/core.po
./de_DE/core.po
./en_US/core.pot
./es_ES/core.po
./fr_FR/core.po
./it_IT/core.po
./ja_JP/core.po
./pl_PL/core.po
./pt_BR/core.po
./ru_RU/core.po
./uk_UA/core.po
./zh_CN/core.po
./zh_TW/core.po

So, you are telling me that if I do:
# renamed: ca_ES/core.po -> ca_ES.po
# renamed: en_US/core.pot -> core.pot
# renamed: de_DE/core.po -> de_DE.po
# renamed: es_ES/core.po -> es_ES.po
# renamed: fr_FR/core.po -> fr_FR.po
# renamed: it_IT/core.po -> it_IT.po
# renamed: ja_JP/core.po -> ja_JP.po
# renamed: pl_PL/core.po -> pl_PL.po
# renamed: pt_BR/core.po -> pt_BR.po
# renamed: ru_RU/core.po -> ru_RU.po
# renamed: uk_UA/core.po -> uk_UA.po
# renamed: zh_CN/core.po -> zh_CN.po
# renamed: zh_TW/core.po -> zh_TW.po

it will be working in launchpad and fix my import review stuff ?

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#13

Hello

As you advised, I did the change:
http://cgit.scilab.org/scilab/commit/?id=5620834860a78ad91003cd56690760192938d2ef
the import has been done correctly with the templates (.pot) but nothing happened with the localization files (.po)

Even if I defined the Custom languages codes:
https://translations.launchpad.net/scilab/+custom-language-codes

Thanks

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#14

ping ?

Revision history for this message
Jeroen T. Vermeulen (jtv) said :
#15

Hi Sylvestre,

I'm sorry for the delays in responding. I've been looking for a reason why these latest uploads might not be approved but can't find anything for the moment. I'm creating a bug report for the problem.

Revision history for this message
Sylvestre Ledru (sylvestre) said :
#16

Thanks Jeroen!

Can you help with this problem?

Provide an answer of your own, or ask Sylvestre Ledru for more information if necessary.

To post a message you must log in.