changing layout direction in Grails

33 views
Skip to first unread message

Sherif Shehab

unread,
Dec 30, 2015, 3:22:50 PM12/30/15
to Grails Dev Discuss
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

Rajanand PK

unread,
Jan 3, 2016, 1:13:57 PM1/3/16
to Grails Dev Discuss
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
Reply all
Reply to author
Forward
0 new messages