Public bug reported: Attempting to compile PO files generated by the pseudo translation tool results in the following error
CommandError: Execution of msgfmt failed: /opt/stack/horizon/openstack_dashboard/locale/tr_TR/LC_MESSAGES/django.po:10595: a format specification for argument 'req' doesn't exist in 'msgstr[0]' msgfmt: found 1 fatal error The problem message appears to be #: openstack_dashboard/dashboards/project/instances/workflows/create_instance.py:213 #, python-format msgid "" "The requested instance cannot be launched as you only have %(avail)i of " "your quota available. " msgid_plural "" "The requested %(req)i instances cannot be launched as you only have " "%(avail)i of your quota available." msgstr[0] "" "[~0:The requested instance cannot be launched as you only have %(avail)i " "of your quota available. ~您好яшçあ~~~~~~~~~~~~~~~~~~]" It seems that that Babel really wants the translated string to have the substitution variables from msgid_plural, but the string is based on msgid ** Affects: horizon 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/1563005 Title: pseudo translation tool creates uncompilable PO files Status in OpenStack Dashboard (Horizon): New Bug description: Attempting to compile PO files generated by the pseudo translation tool results in the following error CommandError: Execution of msgfmt failed: /opt/stack/horizon/openstack_dashboard/locale/tr_TR/LC_MESSAGES/django.po:10595: a format specification for argument 'req' doesn't exist in 'msgstr[0]' msgfmt: found 1 fatal error The problem message appears to be #: openstack_dashboard/dashboards/project/instances/workflows/create_instance.py:213 #, python-format msgid "" "The requested instance cannot be launched as you only have %(avail)i of " "your quota available. " msgid_plural "" "The requested %(req)i instances cannot be launched as you only have " "%(avail)i of your quota available." msgstr[0] "" "[~0:The requested instance cannot be launched as you only have %(avail)i " "of your quota available. ~您好яшçあ~~~~~~~~~~~~~~~~~~]" It seems that that Babel really wants the translated string to have the substitution variables from msgid_plural, but the string is based on msgid To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1563005/+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