跳至內容
選單
此問題已被標幟
2 回覆
15707 瀏覽次數

Hello Switching between directions in Openerp (Setting->Languages->Direction->Right-to-left), doesn't work. Is there any solution ? Thank you

頭像
捨棄

this feature is highly needed, and is a must have for RTL customers

If you are interested in a solution, please click "This bug affects me" on the bug report: https://bugs.launchpad.net/openerp-web/+bug/1020524 To better bring it into the attention of the developers.

最佳答案

No. Not yet; it requires a lot of changes in CSS and may be some Javascript. Simple dir = "rtl" attribute around some tags does not work because most styles assume left-to-right direction.

頭像
捨棄

how i can import css file depending on user current language

OpenERP does not set language attribute. The best method is to create a web module to set language attribute on <html> tag and use attribute or :lang selector on your styles. That way, you can add css normally and it will be effective only when the target language is used.

thank you Mohamed ,can you please explain more , I can change the user interface to be rtl ( the side menu will be in the right) by adding (direction: rtl;) to css class (openerp) in base.css file (addons\web\static\src\css\base.css),

but I want this to work with change lang selection from english and arabic and vs

相關帖文 回覆 瀏覽次數 活動
15
4月 23
70901
0
3月 15
3683
8
3月 25
13778
2
12月 24
16937
1
3月 15
5400