perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Helmut <>
Subject Re: multilingual site
Date Mon, 18 Apr 2005 14:47:20 GMT

> I'm interested in your opinions on what is the easiest and simplest
> solution for multilingual site. I have searched cpan and web and found
> that Locale::Maketext::Lexicon is pretty nice solution. The only thing
> that I don't like in this solution is that I need do generate locales
> for every language that I will be using, but other than that I think it
> works file, opinions?

probably there are many ways to do that - 
(i don't know "Locale::Maketext::Lexicon"..)

I did it by
my $translations_per_webpage = get_trans (language, country, page);
print $translation->{'hello'};
print $translation->{'good_bye'};

get_trans() fetches the translation items from a MySQL table and has 
a fallback to a "standard" language and country (german, germany in my
One can also ommit the country if the translation is not country specific,
and page if the item is not page specific.

It also returnes translations, which are common for all pages, but will be
overwritten if a specific item for a distinct page exists.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message