translation update, MO generation

Bug #976564 reported by Vincent Hou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
New
Undecided
Unassigned

Bug Description

I tried to generate the mo file for my local Chinese Simplified environment. However, many error translations were raised.
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:316: unknown named placeholder u'
path'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:381: incompatible format for plac
eholder u'account_name': 'o' and 's' are not compatible
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:538: the format strings are of di
fferent kinds
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:694: unknown named placeholder u'
exception'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:791: unknown named placeholder u'
zone_id'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:995: unknown named placeholder u'
host'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:1536: placeholders are incompatib
le
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:2348: unknown named placeholder u
'extra_specs'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:2360: unknown named placeholder u
'resp'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:2475: unknown named placeholder u
'state'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:3031: the format strings are of d
ifferent kinds
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:3439: unknown named placeholder u
'name_label'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:3446: unknown named placeholder u
'name_label'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:3570: the format strings are of d
ifferent kinds
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:4353: unknown named placeholder u
'instance_id'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:4360: unknown named placeholder u
'instance_id'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:4427: unknown named placeholder u
'driver_method'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5484: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5489: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5494: unknown named placeholder u
'error'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5514: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5519: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5528: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5537: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5542: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:5547: unknown named placeholder u
'container_format'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:6109: the format strings are of d
ifferent kinds
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:6114: unknown named placeholder u
'resp'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:6119: unknown named placeholder u
'role_id'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:6158: placeholders are incompatib
le
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:6183: unknown named placeholder u
'vbd_ref'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:6583: unknown named placeholder u
'instance_id'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:7318: unknown named placeholder u
'image_id'
error: ./nova/locale\zh_CN\LC_MESSAGES\nova.po:7323: placeholders are incompatib
le
compiling catalog './nova/locale\\zh_CN\\LC_MESSAGES\\nova.po' to './nova/locale
\\zh_CN\\LC_MESSAGES\\nova.mo'
I have checked them one by one and found that the launchpad po file is outdated, because the translation items, which caused errors, have been newly added into the code or updated and in launhpad po file these items do not exist, so the original translations were no longer valid and correct. This bug not only happens to Chinese, but also other languages.
It can be fixed if the correct translation is provided in the po file itself, but I strongly recommend that the newly generated PO file for localization should be uploaded to launchpad. Otherwise, this project won't work for any language except English.

Tags: i18n
Thierry Carrez (ttx)
tags: added: i18n
Revision history for this message
Christopher Ferris (chrisfer) wrote :

is this a duplicate of https://bugs.launchpad.net/openstack-ci/+bug/960060 ? If so, it should be marked Invalid with the appropriate reference to the one being worked in openstack-ci.

Revision history for this message
Vincent Hou (houshengbo) wrote :

I think two of these bugs are related. If the launchpad translation is updated, after the new translations for all the new items are done and loaded to the projects, this issue will be solved.

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.