Hello all,
I'm facing the refactoring of a cgi-app/html-template based site to support multiple languages, and I'd like to get the design right.
I'm curious how you are dealing with multi-lingual sites. How do you prefer to organise your templates? How do you handle date and number formatting?
I can imagine overriding load_tmpl to transparently get the correct language template, but am not quite sure how to handle this. Should I use directories for each language (e.g. en/home.html, fr/home.html), or use suffixes (e.g. home.html.en, home.html.fr)?
Dealing with dates and numbers is not something I can see being done inside the templates (unless I would adopt another templating system, or html-template-expr). Number::Format looks cool, as does Locale::MakeText. I'm already using DateTime as my prefered datetime framework, and with DateTime::Locale that should be easy to cover as well. The only thing I cannot yet see through the fog is how to integrate all that cleanly into the app.
I suppose Locale::MakeText could potentially also answer any issues I might face with ValidateRM.
Thoughts, comments and tips welcome!
Rhesa Rozendaal
PS. Currencies! rats...
--------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/[email protected]/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
