in reply to Re: Re: Multilingual Mason
in thread Multilingual Mason

Presumably you use different translations of the same piece of text, so why not use a component to retrieve and deliver them? Something similar was already discussed here at the Monastery, for example: Perl Programs That Support Multiple (Human) Languages, mod_perl internationalization and Writing multilingual perl applications?.

Ciao, Valerio

Replies are listed 'Best First'.
Components for blocks of text
by crenz (Priest) on May 03, 2003 at 15:03 UTC

    As I said, I like the idea of using components for small blocks of text: Headers, footers, menu items etc. I don't like the idea of doing that for large chunks of text (e.g. paragraphs in a lengthy article). And the problem is -- my webpage is composed mostly of larger chunks of text... I could use a component to retrieve the article, but then I end up with n component files for n languages again.

    With the help of your links, I found Locale::Maketext, which looks very interesting (even more than gettext). Class::Phrasebook might also be useful, but is less versatile. I also found two interesting articles: Localizing your perl programs and Localizing open source software. Especially the first one demonstrates the dilemma of internationalization rather well (and we haven't even talked about localization yet!). I'm glad I only have to handle two languages (maybe three later).