Comment 8 for bug 1020524

Revision history for this message
Ahmad Khayyat (akhayyat) wrote :

Serpent Consulting,

Yes, but how do I access that information programatically, i.e. using an API?

We need to enable an additional CSS file (or add a class to a top-level HTML element) conditionally, based on the current user language.

For example, if the current user language is English, nothing changes. But, if the current user language is Arabic, a language attribute is added to the <body> tag, or a CSS class is applied to it:

<body {% if user.lang.direction = "rtl" %}class="rtl"{% endif %}>

Where and how something similar to the above line can be implemented?

There a lot of interest in implementing an RTL interface for OpenERP. The Arabic community is willing to take on the effort. We just need little guidance. We also want to conform to OpenERP's standards to make it easier for our efforts to get incorporated into the system in the future.