Re: HTML::Template and Locale::Maketext

"Mathew Robertson" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Organization RedSheriff
Message-ID <0ba001c56255$9dd56f80$a901000a@mat>
> 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.

I should clarify, the reason for the direction var's is that in some languages, the text can be written lefto-to-right or right-to-left depending on where the person comes from.  As such, these variables should be a user preference so that they can change them as appropriate.

The values for them should be:

  document_direction :      "LTR"  or "RTL"
  document_direction_default :   should be the same as  document_direction
  document_direction_inverse :   should be the alternate of document_direction_default

cheers,
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.