I'm not sure. Isn't it that the whole form / page layout require
changes to make it look right. Same is true for japanese etc. That is
why we allow for per locale properties file.

Juergen

On 11/13/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
Hi,

I converted the form input example this weekend so that it uses one
page and a properties (or xml) file per supported locale. One problem
I have to fix is the fact that Persian (fa IR) is a 'left-to-right'
language (see http://www.i18nguy.com/markup/right-to-left.html).

Now, it kind of sucks to have to use a separate markup file for just
to insert this tag:

<html dir="rtl"> (or <html xmlns="http://www.w3.org/1999/xhtml"; dir="rtl">)

I was thinking, maybe we could do this automatically. What we could do is this:
* recognize the <html> tags so that we can access them later (much
like we do with the <head> tags now);
* have a getDir or getDirection method in WebPage that works like this:
    - If it returns LTR or RTL, a dir attribute is set on the <html> tag;
    - if it returns null and the locale is LTR, nothing is done
    - if it returns null and the locale is RTL, dir="rtl" is set on
the <html> tag.

WDYT?

Eelco

Reply via email to