Mass template priority setting

Asked by Andrej Znidarsic

I would like to request a mass change of translation priority templates for Ubuntu Natty and Oneiric according to the attached .csv file.

I am a member of Ubuntu translation coordinators team and the list has been approved (or at least not objected) by other members of Ubuntu translation coordinators team.

Thanks

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
Andrej Znidarsic (andrejznidarsic) said :
#1

Since I am unable to see where files can be attached, I am attaching a link to the file - http://dl.dropbox.com/u/1450316/Natty%20templates.csv

Revision history for this message
David Planella (dpm) said :
#2

Thanks a lot Andrej.

Launchpadders: to be clear here, this is a request to run an SQL query to set the priorities in the templates according to the list, as doing it by hand for so many templates would be extremely time-consuming and there is no API for this.

This is the same procedure we already followed back in Karmic, when we first set the priorities of most of the Ubuntu templates following https://wiki.ubuntu.com/Translations/TemplatesPriority

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

Actually, you should be able to use API to set the priority yourself. Here's a sample script that does it for a single template:

http://paste.ubuntu.com/613133/

You'll need to extend it to loop over all the templates from the .csv file, but it should otherwise work.

(The missing bits from the API are the traversal bits where you'd be able to walk the templates from within already exposed objects, instead of using "launchpad.load()" directly)

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

A better version which reads CSV file named natty-templates.csv: http://paste.ubuntu.com/613237/ (David, my previous version didn't put int(priority) where needed).

Revision history for this message
David Planella (dpm) said :
#5

Ok, thanks a lot Andrej for defining the priorities and thanks Danilo for providing the script.

I've now run it for both natty and oneiric and all priorities are successfully set \o/

Can you help with this problem?

Provide an answer of your own, or ask Andrej Znidarsic for more information if necessary.

To post a message you must log in.