I am new to Localization/Globalization. Is setting the Culture
and UICulture enough to define the direction of the page (left-to-right or RtL) or we still have to use the
'dir' attribute. For example, if i have a site in Arabic and after setting the Culture and UICulture to say ar-OM, will it also automatically set the page direction to Right-to-Left or I still have to use the 'dir' attribute.
No setting Culture and UICulture will not define page direction ,But you can define it once in master page by setting dir property in main container control
I had a similar feeling that setting Culture and UICulture doesn't set the page direction. We have to set the page direction manually. Just for anyone inquisite, we can set the direction at both the page level (using
dir attribute in the html tag) or at a control level (for example a div). Your reply has cleared my doubts. Thanks.
kashifdotnet
Participant
765 Points
451 Posts
Setting Page direction using Culture and UICulture
Feb 25, 2013 08:24 AM|LINK
I am new to Localization/Globalization. Is setting the Culture and UICulture enough to define the direction of the page (left-to-right or RtL) or we still have to use the 'dir' attribute. For example, if i have a site in Arabic and after setting the Culture and UICulture to say ar-OM, will it also automatically set the page direction to Right-to-Left or I still have to use the 'dir' attribute.
bmwz9
Participant
1574 Points
242 Posts
Re: Setting Page direction using Culture and UICulture
Feb 26, 2013 06:08 AM|LINK
No setting Culture and UICulture will not define page direction ,But you can define it once in master page by setting dir property in main container control
take a look at this post
--------------------
MCPD , MCSD
--------------------
Please remember to click “Mark as Answer” on the post(s) which helps you !
kashifdotnet
Participant
765 Points
451 Posts
Re: Setting Page direction using Culture and UICulture
Feb 28, 2013 03:49 AM|LINK
I had a similar feeling that setting Culture and UICulture doesn't set the page direction. We have to set the page direction manually. Just for anyone inquisite, we can set the direction at both the page level (using dir attribute in the html tag) or at a control level (for example a div). Your reply has cleared my doubts. Thanks.