Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Keep It Simple, Stupid
 
PerlMonks  

Re: Internationalization and Template::Toolkit

by dragonchild (Archbishop)
on Dec 01, 2004 at 11:40 UTC ( [id://411493]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Internationalization and Template::Toolkit

Personally, I would definitely consider any solution Autrijus Tang puts up. He's kinda one of those people who not only has been around the block, but he helped build the block you're trying to go around.

The nice thing about the solution in the page you mentioned is that it drops in and, other than the localizable text, the website doesn't change. This is a big improvement over other schemes I've seen, which generally involve post-processing the templates with the static text, then praying the dynamic text from the database is the right language.

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

  • Comment on Re: Internationalization and Template::Toolkit

Replies are listed 'Best First'.
Re^2: Internationalization and Template::Toolkit
by gaal (Parson) on Dec 01, 2004 at 12:12 UTC
    Plus, it's got a toolchain. GNU gettext msggen and friends work with it, so you can extract (and update) localizable strings, and have your translators use whatever tools they alrady like for dealing with PO files.

    (One note: if you define a gettext()/_()-like function for use in code, don't name it _ because there's a funky problem with the meaning of it. Use __ (double underscore); Autrijus' version of gettext is patched to handle it.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://411493]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.