The html tag has a DIR parameter that you can set to dir="rtl" . This will have
the effect that the whole page flip from right to left. It is needed for
languages such as Arabic and Hebrew.
The html:html tag should add the Dir="rtl" to the generated html tag when the
local is for a rtl language. arabic = windows1256
Description
The html tag has a DIR parameter that you can set to dir="rtl" . This will have
the effect that the whole page flip from right to left. It is needed for
languages such as Arabic and Hebrew.
The html:html tag should add the Dir="rtl" to the generated html tag when the
local is for a rtl language. arabic = windows1256
(In reply to comment #0)
> The html tag has a DIR parameter that you can set to dir="rtl" . This will have
> the effect that the whole page flip from right to left. It is needed for
> languages such as Arabic and Hebrew.
>
> The html:html tag should add the Dir="rtl" to the generated html tag when the
> local is for a rtl language. arabic = windows1256
According to the HTML 4.01 spec, dir is part of the %i18n attribute set, which
is used by virtually every HTML tag. It is not just needed for HTML, but in fact
all tags in the struts-html tld. See google.com in a bidi language for an
example of how this attribute is used to properly control the direction of a page.
Cris Daniluk added a comment - 19/Jan/05 05:27 AM (In reply to comment #0)
> The html tag has a DIR parameter that you can set to dir="rtl" . This will have
> the effect that the whole page flip from right to left. It is needed for
> languages such as Arabic and Hebrew.
>
> The html:html tag should add the Dir="rtl" to the generated html tag when the
> local is for a rtl language. arabic = windows1256
According to the HTML 4.01 spec, dir is part of the %i18n attribute set, which
is used by virtually every HTML tag. It is not just needed for HTML, but in fact
all tags in the struts-html tld. See google.com in a bidi language for an
example of how this attribute is used to properly control the direction of a page.
Unlike the initial comment's proposal, the enhancement does not magically alter the direction of the text based on the character encoding. The developer should know ahead of time, through some means, when it is appropriate to alter the direction of the text. This add the I18N attributes so individual elements may be modified when necessary.
Paul Benedict added a comment - 26/Nov/06 12:52 AM Unlike the initial comment's proposal, the enhancement does not magically alter the direction of the text based on the character encoding. The developer should know ahead of time, through some means, when it is appropriate to alter the direction of the text. This add the I18N attributes so individual elements may be modified when necessary.
Internationalization attributes are now fully implemented. Struts 1.2.2 put in the @lang attribute on the <html> tag to match the user's locale, and now 1.3.6 can override the language on all form elements.
Paul Benedict added a comment - 27/Nov/06 02:31 PM Internationalization attributes are now fully implemented. Struts 1.2.2 put in the @lang attribute on the <html> tag to match the user's locale, and now 1.3.6 can override the language on all form elements.
.V