Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2001:
[Freeciv-Dev] Re: [FreeCiv-Cvs] thue: Gettext tells me that en_GB and ja
Home

[Freeciv-Dev] Re: [FreeCiv-Cvs] thue: Gettext tells me that en_GB and ja

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gaute B Strokkenes <gs234@xxxxxxxxx>
Cc: Thue <thue@xxxxxxx>, freeciv-dev@xxxxxxxxxxx, Robert Brady <rwb197@xxxxxxxxxxxxxxx>,
Subject: [Freeciv-Dev] Re: [FreeCiv-Cvs] thue: Gettext tells me that en_GB and ja needs some ...
From: SAWADA Katsuya <amanatto@xxxxxxxxxxxxxxxx>
Date: 03 Jul 2001 14:16:02 +0900


Gaute B Strokkenes <gs234@xxxxxxxxx> writes:
[snip]
> The problem is that gettext does not allow you to use different
> charsets for the source (the strings that are passed to gettext()) and
> the charset of the po file.  In practise, this means that the source
> charset has to be a subset of the po charset, so that in general you
> are restricted to ASCII in the source.  Using an 8-bit character such
> as "ú" in the source directly violates this rule.  When the fuzzy mark
> is removed from the header entry gettext will actually check that the
> byte sequences have a sensible interpretation as text in the given
> charset.
> 
> The proper fix is to change the source to read "Dunedain" and then add
> a comment encouraging the translator to use "ú" if that character is
> available in the charset that is being used.  I'll get working on it.
[snip]
> For ja.po I'm not sure what would be most appropriate, so I'm cc-ing
> the translator as well to bring it to his attention.

I am Japanese translator.
I think your view is true and I welcome fix "Dunedain".
I tried following test:

$ export LANG=en
$ msgmerge --version
msgmerge (GNU gettext) 0.10.38
Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Peter Miller.
$ msgmerge ja.po freeciv.pot -o new_ja.po
...................................................................................................................................................................................................................................................................
 done.
invalid multibyte sequence
invalid multibyte sequence
invalid multibyte sequence
invalid multibyte sequence
invalid multibyte sequence
invalid multibyte sequence
invalid multibyte sequence
invalid multibyte sequence

(
I killed four sets from freeciv.pot and save freeciv_new.pot:
#: data/nation/polish.ruleset:17
msgid "Kr\363l"
msgstr ""

#: data/nation/polish.ruleset:17
msgid "Kr\363lowa"
msgstr ""

#: data/nation/dunedain.ruleset:3
msgid "D\372nedain"
msgstr ""

#: data/nation/dunedain.ruleset:4
msgid "?plural:D\372nedan"
msgstr ""
)

$ msgmerge ja.po freeciv_new.pot -o new_ja2.po
...................................................................................................................................................................................................................................................................
 done.

(no error message occurred)

Thank you.

-- 
SAWADA Katsuya


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