Re: Questions About Encoding

[email protected] (Autrijus Tang) Mon, 12 May 2003 02:28:56 +0800
Newsgroups perl.i18n
Message-ID <[email protected]>
On Mon, May 12, 2003 at 02:21:40AM +0800, imacat wrote:
>     Of course we can go back to the world without the encoding problem,
> as the original Locale::Maketext does.  But that isn't reasonable to my
> multibyte world.  I started to miss the world of simplicity where the
> wonky GNU gettext lives.

Completely irrelevant to your main question, but maybe worth some
thought is my recently debutted Locale::Maketext::Simple wrapper,
which lets you do:

    use Locale::Maketext::Simple (Style => 'gettext');
    print loc(
	"Some big5 here with %1, %2 and %quant(%3,thing,things)",
	"foo", "bar", "baz"
    );

That is, it automagically converts it into Maketext's notation:

    [_1], [_2], [quant,_3,thing,things]

Which neatly sidesteps the problem.

Thanks,
/Autrijus/