[5.0] Incorrect locale code in server and addons for some languages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned | ||
5.0 |
Fix Released
|
Undecided
|
Unassigned | ||
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
DISTRIB_
web server revno: 2760
openerp server revno: 1886
Importing official translation for Slovenian language and than selecting it and browsing forms causes the web client - babel to throw unknown locale 'sl_SL' error.
Workaround:
There in fact is no sl_SL locale because on Ubuntu locales for Slovenia are defined with SI country code e.g. sl_SI. I was able to solve this by creating a link to sl_SI.dat under /usr/lib/
For Openerp to be able to use other Slovenian locale formats (date, currency....) it is necessary to create locale definition fro Slovenian with sl_SL code instead of default sl_SI. This can be achieved through creating another link this time for /usr/share/
with the name sl_SL and then regenerating locale definitions with sudo dpkg-reconfigure locales.
I am not sure how other distributions are treating locale codes for Slovenia.
Since SI is the official country code for Slovenia it would be for the best to change the locale code for Slovenia in Openerp to avoid further problems.
Take care
Miran
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 29 lines (+4/-1)1 file modifiedbin/tools/misc.py (+4/-1)
- OpenERP Core Team: Pending requested
-
Diff: 124 lines (+0/-0)0 files modified
The web client explodes when using the Slovenian locale. E.g., you cannot even get through the 'Guided Tour' section of the book.
Also, the GTK Client behaves funny, as it does not understand dates, etc.
Impossible to get anything done at all.
Please use the correct locale for Slovenian: sl_SI.