On Fri, Oct 29, 2010 at 4:25 AM, Shulin Yang <[email protected]> wrote: > Thank the team, you guys are so nice. > > I do have question now. I got a Poedit error "msgfmt: found 4 fatal > errors" now, and the detail is as: > /home/shulin/Downloads/grass-translation/grasswxpy_zh.po:183: 'msgstr' > is not a valid Python format string, unlike 'msgid'. Reason: In the > directive number 1, the character '>' is not a valid conversion > specifier. > /home/shulin/Downloads/grass-translation/grasswxpy_zh.po:10197: number > of format specifications in 'msgid' and 'msgstr' does not match > /home/shulin/Downloads/grass-translation/grasswxpy_zh.po:10221: > 'msgstr' is not a valid Python format string, unlike 'msgid'. Reason: > In the directive number 1, the character ''' is not a valid conversion > specifier. > /home/shulin/Downloads/grass-translation/grasswxpy_zh.po:10231: > 'msgstr' is not a valid Python format string, unlike 'msgid'. Reason: > In the directive number 1, the character ''' is not a valid conversion > specifier. > msgfmt: found 4 fatal errors
The problem is this: you have #: ../gui/wxpython/wxgui.py:481 #, python-format msgid "" "Current location is <%(loc)s>.\n" "Current mapset is <%(mapset)s>." msgstr "" "当前地点为 <%(loc)>.\n" "当前地图集为 <%(mapset)>." but the last two lines should be "当前地点为 <%(loc)s>.\n" "当前地图集为 <%(mapset)s>." (note the to "s" before ">" It is important to copy over perfectly these variable outputs. then #: ../gui/wxpython/gui_modules/toolbars.py:1367 #, python-format msgid "Please wait, closing and rebuilding topology of vector map <%s>..." msgstr "关闭和重建矢量地图拓扑中,请稍候..." Here you lost in the translation " <%s>" Then #: ../gui/wxpython/gui_modules/menuform.py:378 #, python-format msgid "Parameter element '%(element)s' not found: '%(value)s'" msgstr "参数项'%(element)'没有: '%(value)'" -> s after ) lost #: ../gui/wxpython/gui_modules/menuform.py:424 #, python-format msgid "Parameter '%(name)s' (%(desc)s) is missing." msgstr "参数 '%(name)' (%(desc))缺失。" -> same here. I'll sedn you offlist the fixed file. Cheers Markus _______________________________________________ grass-translations mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-translations
