Task #2012

Automate pootle to commit translations

Added by Jan Iversen almost 2 years ago. Updated 14 days ago.

In Progress
Target version:
Team - Q2/2018
Start date:
Due date:
% Done:


Estimated time:
5:00 h


Cloph have already started to automate the pootle integration to git. There is a cron script running every second hour to sync the pootle database with the directories.

Next step, use last modified time (controlled sync script, it only touched files it actually write), copy changed files to a git clone, commit and push.

The automated push, will be done for master (still need to figure out, how to do it for android, iosviewer, and libo_online).

We need to think if we want it done for lib050, lib051 and libO52 as well.

Related issues

Related to Release Engineering - Task #1488: Pootle layout automated prepration to repository-ready filesClosed


#1 Updated by Florian Effenberger almost 2 years ago

  • Target version set to Pool

#2 Updated by Florian Effenberger about 1 year ago

  • Status changed from New to Feedback
  • Assignee changed from Jan Iversen to Christian Lohmaier
  • Priority changed from Normal to High
  • Target version changed from Pool to Q3/2017

Carried out, but needs deployment on our side - blocked by the Pootle back-migration to own infra, which is in progress

#3 Updated by Christian Lohmaier 10 months ago

additional blocking/delaying factor is gettext migration on master - but will be tackled within next two weeks (pootle project split up/master changed to master this week).
Then apply tweaks as necessary to the processing to match the slightly different syntax if necessary (should not be needed, as we had variable size msgctxt before, so just verification that the script works as intended after migration as well).

Would have been nice to have that on our infra, but that seems to be delayed a little further.

#4 Updated by Christian Lohmaier 10 months ago

  • Related to Task #1488: Pootle layout automated prepration to repository-ready files added

#5 Updated by Florian Effenberger 10 months ago

Do you see a chance to have that done by the time of the conference? Would be great to see some result there

#6 Updated by Florian Effenberger 9 months ago

Any status update on this?

#7 Updated by Christian Lohmaier 8 months ago

msgfmt (tool used in gettext builds) is very picky about syntax errors (well, not even syntax error, but if e.g. english string has a \n (newline) at end of string, but the translation doesn't, it fails hard and breaks the build (even if the translation has the same number of newlines in total). So needs some more manual runs to fix them before/and additional checks/tweaking in the script to avoid checking in these kind of strings.
Just refusing to use files that have this problem should be easy to do, problem is that with gettext there are fewer files in total, so if messages.po is refused because of one problematic strings, so are all the other strings that changed in that file. Of course much better than breaking the build, so I'll go with that route - at least initially.

#8 Updated by Florian Effenberger 8 months ago

  • Target version changed from Q3/2017 to Q4/2017

So, what's required then to completely close this ticket?

#9 Updated by Florian Effenberger 8 months ago

Florian Effenberger wrote:

So, what's required then to completely close this ticket?

Ping? :)

#10 Updated by Christian Lohmaier 7 months ago

  • Estimated time set to 5:00 h

ideally our own host, apart from that an additional preprocessing that rejects files with problematic translations - so some time to actually do it.

#11 Updated by Florian Effenberger 5 months ago

  • Status changed from Feedback to In Progress
  • Priority changed from High to Normal
  • Target version changed from Q4/2017 to Q1/2018

Pootle back-migration done
Now waiting for changes to master branch to come to life (splitoff 6.0), working with Pootle devs on that
Then in progress, tentatively Q1 if possible

#12 Updated by Christian Lohmaier 2 months ago

  • Target version changed from Q1/2018 to Q2/2018
  • % Done changed from 0 to 30

translations in master did stabilize (re msgfmt errors in line-ends), so now next step can be tackled without ignoring majority of the translations.
Should be done mid next week

#13 Updated by Florian Effenberger about 1 month ago

Any status update?

#14 Updated by Christian Lohmaier 14 days ago

Will finally enable after 6.1.0 rc1 (tag due this week)/ when 61 projects are created in pootle and master is reflecting master again.

Also available in: Atom PDF