[GRASS-translations] RE: Continue the translation of grasswxpy_zh.po.

Markus Neteler neteler at osgeo.org
Fri Nov 5 07:56:59 EDT 2010


On Fri, Oct 29, 2010 at 4:25 AM, Shulin Yang <shulin at purdue.edu> 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 ""
"=B5=B1=C7=B0=B5=D8=B5=E3=CE=AA <%(loc)>.\n"
"=B5=B1=C7=B0=B5=D8=CD=BC=BC=AF=CE=AA <%(mapset)>."

but the last two lines should be

"=B5=B1=C7=B0=B5=D8=B5=E3=CE=AA <%(loc)s>.\n"
"=B5=B1=C7=B0=B5=D8=CD=BC=BC=AF=CE=AA <%(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 "=B9=D8=B1=D5=BA=CD=D6=D8=BD=A8=CA=B8=C1=BF=B5=D8=CD=BC=CD=D8=C6=CB=
=D6=D0=A3=AC=C7=EB=C9=D4=BA=F2..."

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 "=B2=CE=CA=FD=CF=EE'%(element)'=C3=BB=D3=D0=A3=BA '%(value)'"

-> s after ) lost

#: ../gui/wxpython/gui_modules/menuform.py:424
#, python-format
msgid "Parameter '%(name)s' (%(desc)s) is missing."
msgstr "=B2=CE=CA=FD '%(name)' (%(desc))=C8=B1=CA=A7=A1=A3"

-> same here.

I'll sedn you offlist the fixed file.

Cheers
Markus


More information about the grass-translations mailing list