← Back to team overview

openerp-india team mailing list archive

[Bug 1019804] Re: Incorrect Arabic language local code 'ar_AR'

 

** Description changed:

  The only Arabic locale code available in the current OpenERP is 'ar_AR'.
  This code does not represent any actual Arabic locale and is not
  recognized by Babel.
  
  In the 6.1 web client, the session class replaces 'ar_AR' to 'ar' and
  map it  to 'ar_SY' in _fix_lang() in 'addons/web/common/session.py'. As
  a result, the the 6.1 web client does not translate views or menus as
  'ar_SY' is not available in the database.
  
- To fix that issue, I added all Arabic Locales to the server in
- 'openerp/tools/misc.py'. Also, I added the WIN32 mapping in
- 'openerp/tools/translate.py' taken from http://msdn.microsoft.com/en-
+ In the included patch to fix that issue, I added all Arabic Locales to
+ the server in 'openerp/tools/misc.py'. Also, I added the WIN32 mapping
+ in 'openerp/tools/translate.py' taken from http://msdn.microsoft.com/en-
  us/goglobal/bb895996
  
+ After applying that patch, Arabic can be used by choosing any country
+ locale. Also, country specific translations for special terms can be
+ added using additional ar_XX.po files for these terms (where XX is the
+ country code)
+ 
  - Mohammad Alhashash

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1019804

Title:
  Incorrect Arabic language local code 'ar_AR'

Status in OpenERP Server:
  Confirmed

Bug description:
  The only Arabic locale code available in the current OpenERP is
  'ar_AR'. This code does not represent any actual Arabic locale and is
  not recognized by Babel.

  In the 6.1 web client, the session class replaces 'ar_AR' to 'ar' and
  map it  to 'ar_SY' in _fix_lang() in 'addons/web/common/session.py'.
  As a result, the the 6.1 web client does not translate views or menus
  as 'ar_SY' is not available in the database.

  In the included patch to fix that issue, I added all Arabic Locales to
  the server in 'openerp/tools/misc.py'. Also, I added the WIN32 mapping
  in 'openerp/tools/translate.py' taken from http://msdn.microsoft.com
  /en-us/goglobal/bb895996

  After applying that patch, Arabic can be used by choosing any country
  locale. Also, country specific translations for special terms can be
  added using additional ar_XX.po files for these terms (where XX is the
  country code)

  - Mohammad Alhashash

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1019804/+subscriptions


References