buke / GreenOdoo

Portable Odoo (formerly OpenERP)
www.greenodoo.com
136 stars 116 forks source link

PDF Reports do not reflect user language perfrences #14

Open akram1 opened 10 years ago

akram1 commented 10 years ago

When setup a new database with a specific locale, PDF printed reports keeps the PDF elements with the same locale terms even if you add another and switch to another language. For Example, if I setup new db with Arabic. PDF keeps prints Arabic terms instead of English even if the user using English interface. I think part of the solution is to let web module set html language and dir elements to user locale so report module can detect language and dir elements from there. This will help also other modules that detect languages and direction to handle specially some JS, BootStrap and Jquary that has built-in support for language and RTL/LRT.