Public bug reported: In run_tests.sh --makemessages, files under openstack/common are excluded because they are not actually used in OpenStack dashboard and there is no need to translate at the moment. "--ignore=openstack/common" option to manage.py makemessages is used to exclude these files.
However, after the default version of Django is switched to 1.6, "-- ignore" option works does not work as previously it does and strings from openstack/common are included in translation strings. The reason of this is that ignore pattern is checked against basename of each file/directory in Django 1.6. We need to specify basename in ignore patterns: i.e. --ignore=openstack. At now we don't have directories named as "openstack" other than openstack_dashboard/openstack/common, so it works. I am not sure it is a bug or spec change in Django 1.6, but translation deadline for Icehosue is approaching and we need work around ASAP. ** Affects: horizon Importance: High Assignee: Akihiro Motoki (amotoki) Status: In Progress ** Affects: openstack-i18n Importance: Undecided Status: New ** Tags: i18n ** Also affects: openstack-i18n Importance: Undecided Status: New -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1295920 Title: PO makemessage ignore pattern does not work with Django 1.6 Status in OpenStack Dashboard (Horizon): In Progress Status in OpenStack I18n & L10n: New Bug description: In run_tests.sh --makemessages, files under openstack/common are excluded because they are not actually used in OpenStack dashboard and there is no need to translate at the moment. "-- ignore=openstack/common" option to manage.py makemessages is used to exclude these files. However, after the default version of Django is switched to 1.6, "-- ignore" option works does not work as previously it does and strings from openstack/common are included in translation strings. The reason of this is that ignore pattern is checked against basename of each file/directory in Django 1.6. We need to specify basename in ignore patterns: i.e. --ignore=openstack. At now we don't have directories named as "openstack" other than openstack_dashboard/openstack/common, so it works. I am not sure it is a bug or spec change in Django 1.6, but translation deadline for Icehosue is approaching and we need work around ASAP. To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1295920/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp