Activity log for bug #1630507

Date Who What changed Old value New value Message
2016-10-05 09:59:48 Ian Y. Choi bug added bug
2016-10-05 10:00:55 Ian Y. Choi description In http://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py#n214 , If we look at strings for singular and plural on ungettext_lazy(), singular string uses only "%(avail)i" arg, and plural string uses both "%(req)i" and "%(avail)i" args. In Zanata (translation platform), currently, po files on some languages are saved if the languages are set to just use singular form. #: openstack_dashboard/dashboards/project/instances/workflows/create_instance.py:214 #, 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] "" "The requested instance cannot be launched as you only have %(avail)i of your " "quota available. " This generates an error when msgfmt command is executed: $ msgfmt --check-format -o /dev/null django.po django.po:10766: a format specification for argument 'req' doesn't exist in 'msgstr[0]' msgfmt: found 1 fatal error Because of this occurrence, there have been job failures for Korean and Indonesian language to import translated strings to Horizon git repository. The current solution would be to add "%(req)i" argument on the singular string. In http://git.openstack.org/cgit/openstack/horizon/tree/openstack_dashboard/dashboards/project/instances/workflows/create_instance.py#n214 , If we look at strings for singular and plural on ungettext_lazy(), singular string uses only "%(avail)i" arg, and plural string uses both "%(req)i" and "%(avail)i" args. In Zanata (translation platform), currently, po files on some languages are saved if the languages are set to just use singular form. #: openstack_dashboard/dashboards/project/instances/workflows/create_instance.py:214 #, 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] "" "The requested instance cannot be launched as you only have %(avail)i of your " "quota available. " This generates an error when msgfmt command is executed: $ msgfmt --check-format -o /dev/null django.po django.po:10766: a format specification for argument 'req' doesn't exist in 'msgstr[0]' msgfmt: found 1 fatal error Because of this occurrence, there have been job failures for Korean and Indonesian language to import translated strings to Horizon git repository. The current solution would be to add "%(req)i" argument on the singular string. Reference [1] http://lists.openstack.org/pipermail/openstack-dev/2016-September/103941.html [2] http://lists.openstack.org/pipermail/openstack-i18n/2016-October/002476.html
2016-10-05 10:01:34 Ian Y. Choi tags i18n i18n in-stable-newton newton-backport-potential
2016-10-15 14:20:54 OpenStack Infra horizon: status New In Progress
2016-10-15 14:20:54 OpenStack Infra horizon: assignee Ian Y. Choi (ianychoi)
2016-11-24 15:46:30 Rob Cresswell tags i18n in-stable-newton newton-backport-potential i18n newton-backport-potential
2016-12-08 12:12:34 Rob Cresswell horizon: milestone ocata-2
2016-12-08 12:12:39 Rob Cresswell horizon: importance Undecided High
2017-01-30 16:19:40 Rob Cresswell horizon: assignee Ian Y. Choi (ianychoi)
2017-01-30 16:19:43 Rob Cresswell horizon: milestone ocata-2 next
2017-01-30 16:19:47 Rob Cresswell horizon: status In Progress Confirmed
2017-01-31 15:08:47 OpenStack Infra horizon: status Confirmed In Progress
2017-01-31 15:08:47 OpenStack Infra horizon: assignee Ian Y. Choi (ianychoi)
2017-02-02 16:00:26 OpenStack Infra horizon: assignee Ian Y. Choi (ianychoi) Rob Cresswell (robcresswell)
2017-02-02 16:56:45 OpenStack Infra horizon: status In Progress Fix Released
2017-03-02 12:28:27 Rob Cresswell horizon: milestone next ocata-rc1