Re: HTML::Template and Locale::Maketext

"Mathew Robertson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization RedSheriff
Message-ID <0b1001c56251$189750d0$a901000a@mat>
Translation issues aside, one of the best parts of storing translations in a database is that you can quite easily build a web interface to the database table.  You write a script which greps your source-code/templates so that it inserts the new strings, and deletes any unused ones.

This works really well for web pages as you simply set the encoding to UTF8, provide a combobox of selectable languages / regions, provide a textarea for the string input and a submit button.  As a programmer I never need to speak to the translators as they simply use the web interface.

The only real issue that the programmer has to do is to set a few extra template variables:

   TMPL_VAR document_charset
   TMPL_VAR document_direction
   TMPL_VAR document_language
   TMPL_VAR document_direction_default
   TMPL_VAR document_direction_inverse

The first three should be used in your document headers and occasionaly in table headers.  The other two are used for formatting within tables, so that your text/image alignment comes out correct for the language.

hope this helps
Mathew


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.