changing layout direction in Grails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

changing layout direction in Grails

sshehab
Hi,
I'm developing multi languages Grails application ,i'm using language selector plugin for choosing the languages, so for some languages like Arabic i need when the user chooses Arabic language i need all the layout to be from Right to left , how this can be done?

Thanks

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/b1c28ab9-8411-428f-9142-3b0ad6dca20d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Sherif
Reply | Threaded
Open this post in threaded view
|

Re: changing layout direction in Grails

rajpk
Basically, the text and direction of the HTML layout should be controlled through appropriate CSS classes applied through CSS stylesheets. These stylesheets could be loaded through Grails resource modules that are well-organised into LTR and RTL modules. Loading of these modules could be through conditional 'if' GSP tags that checks for the selected locale value.

Hope it helps.

Regards
Raj

On Thursday, 31 December 2015 01:52:50 UTC+5:30, Sherif Shehab wrote:
Hi,
I'm developing multi languages Grails application ,i'm using <a href="https://grails.org/plugin/lang-selector" rel="nofollow" style="font-size:15px;color:rgb(0,89,153);font-family:Arial,&#39;Helvetica Neue&#39;,Helvetica,sans-serif;line-height:13px" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgrails.org%2Fplugin%2Flang-selector\46sa\75D\46sntz\0751\46usg\75AFQjCNHob584NUbNKt_u0riX5uAFmJ1Giw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\75https%3A%2F%2Fgrails.org%2Fplugin%2Flang-selector\46sa\75D\46sntz\0751\46usg\75AFQjCNHob584NUbNKt_u0riX5uAFmJ1Giw&#39;;return true;">language selector plugin for choosing the languages, so for some languages like Arabic i need when the user chooses Arabic language i need all the layout to be from Right to left , how this can be done?

Thanks

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/d2905a2e-9cce-49d3-8624-242516c728f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.