2

How can I change the alignment to the right when a language like Arabic is chosen by the user. I want the full website to be from right to left.

MotGJU
  • 117
  • 5

2 Answers2

0

You can create an Interceptor to handle the logic about it and define an attribute in context. Then modify default.jspx and layouts.xml to render the page based on this attribute.

You can found many examples about interceptor.

Good luck!

jmvivo
  • 2,653
  • 1
  • 16
  • 20
  • Could you explain more? How to do the logic and what should the attribute be? What modifications should I add to those files? – Motassem Jalal Dec 18 '15 at 14:53
  • Could you help me a bit more? There is already an interceptor class for the language, I can change it with another class, but what code should I add? – MotGJU Dec 22 '15 at 09:05
0

I think this issue is related to i18n more than related to Spring Roo or gvNIX.

Note that Spring Roo creates an Spring MVC application, then Roo and gvNIX can add some languages to that application, that is they add messages_??.properties to your project. To add more languages you must add them manually.

Take a look to Spring MVC Arabic Language in order to learn how to add support for Arabic languages to your Spring MVC application.

Community
  • 1
  • 1
eruiz
  • 1,963
  • 1
  • 14
  • 22