heads up: MO files are disappearing in Juno

Bug #1377923 reported by Tom Fifield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack i18n
Fix Released
Undecided
Akihiro Motoki
openstack-dashboard (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

This is just a heads up from upstream that the compiled message catalogues (MO files) for translations previously bundled with horizon will be removed for the Juno release. PO files will remain.

MO files are effectively binary files easily generated from the PO files per language, using gettext. A script has also been provided for conveniences (run_tests.sh --compilemessages) - but direct use of gettext is also fairly straightforward.

Other distributions, including debian upstream, are compiling these messages as part of their packaging

To ensure that your users continue to be able to use translations in openstack-dashboard, it might be worth checking if you rely on the upstream MO files, and if you do, generating them in-package instead.

Something like this also works:
cd horizon && django-admin compilemessages && cd ..
cd openstack_dashboard && django-admin compilemessages && cd ..
# remove unnecessary .po files
find . -name "django*.po" -exec rm -f '{}' \;

Revision history for this message
Akihiro Motoki (amotoki) wrote :

Horizon developer doc will cover the installation step including how to compile message catalogs.

https://review.openstack.org/#/c/126169/

The draft version of the document is here:
http://docs-draft.openstack.org/69/126169/3/check/gate-horizon-docs/ab7c3c3/doc/build/html/topics/install.html

Revision history for this message
Akihiro Motoki (amotoki) wrote :

The detail instruction is available in the horizon developer documentation since Oct 2014
(after https://review.openstack.org/#/c/126169/ was merged).

One year passed from then. I think we can close the bug.

Changed in openstack-i18n:
status: New → Fix Released
assignee: nobody → Akihiro Motoki (amotoki)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.