bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Japanese Characters in .po files


From: Bruno Haible
Subject: Re: Japanese Characters in .po files
Date: Tue, 8 May 2007 23:58:51 +0200
User-agent: KMail/1.5.4

Hello,

> I got the translator to put the
> translation string in UTF-8 charaters as that is the only character set
> I have that will support Japaneses/Korean etc..
> 
> When I try to create the .mo files I get the following errors: 
> 
> 
> msgfmt -o AdminBanner.mo AdminBanner.po
> AdminBanner.po:24:13: invalid multibyte sequence
> AdminBanner.po:24:15: invalid multibyte sequence
> AdminBanner.po:24:17: invalid multibyte sequence
> AdminBanner.po:24:19: invalid multibyte sequence
> AdminBanner.po:24:20: invalid multibyte sequence
> AdminBanner.po:24:21: invalid multibyte sequence
> AdminBanner.po:24:22: invalid multibyte sequence
> AdminBanner.po:24:23: invalid multibyte sequence
> AdminBanner.po:24:25: invalid multibyte sequence
> AdminBanner.po:24:27: invalid multibyte sequence
> AdminBanner.po:24:28: invalid multibyte sequence
> AdminBanner.po:24:29: invalid multibyte sequence
> AdminBanner.po:24:31: invalid multibyte sequence
> msgfmt: found 13 fatal errors
> 
> I have been trying to find out if UTF-8 multi-byte characters are
> supported in the gettext system and how to put the multi byte sequences
> into the .po files ..
> 
> I have not yet been able to find any donumentation that defines if/how
> this would be supported

The general documentation of PO files in the GNU gettext manual, section
"The Format of PO Files",
    <http://www.gnu.org/software/gettext/manual/gettext.html#PO-Files>

The charset and UTF-8 support is described in the GNU gettext manual, section
"Filling in the Header Entry",
    <http://www.gnu.org/software/gettext/manual/gettext.html#Header-Entry>

The error messages that you get indicate that the charset specification
in the header entry and the actual encoding of the PO file don't match.
Use iconv to convert the PO file, or use a text editor to fix the header
entry.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]