On Mon, 2007-11-26 at 17:46 +0100, Chris Vertonghen wrote: > Hello all, > > I'm writing a module that I dubbed "Text::Locale" for now. I am > thinking about publishing it on CPAN.
IMHO, Text::Locale is a little too "standard" (or "approved") sounding
for something that's already done better by Local::Maketext::Simple and
friends. There's a lot of infrastructure around to support
the /lang/*.po format, so I think it's generally advisable to use that
instead of writing your own module.
BTW, the UUID scheme in your module misses cases where the message has
parts whose ordering changes between locales, like:
en_US: "Hello, $given_name $surname."
ja_JP: "ようこそ, $surname$given_name!"
and then:
print loc("Hello, [_1] [_2]", $given_name, $surname);
Anyway, TMTOWTDI, so I don't want to discourage from finding the best
way to do i18n, but do keep in mind that other people have also solved
this problem before.
Regards,
Jonathan Rockway
signature.asc
Description: This is a digitally signed message part
