Incorrect Arabic language local code 'ar_AR'

Bug #1019804 reported by Mohammad Alhashash
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Low
OpenERP's Framework R&D

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

Tags: arabic i18n l10n
Revision history for this message
Mohammad Alhashash (alhashash) wrote :
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
description: updated
description: updated
Revision history for this message
Ahmad Khayyat (akhayyat) wrote :

Any progress on this issue?

As it is, despite the availability of the Arabic translation in the system, that translation cannot be used. Not easily anyway.

Revision history for this message
kifcaliph (kifcaliph) wrote :

قمنا بجمع التعديلات اللازمة لدعم اللغة العربية على نظام أوبن إي آر بي في ملف تعديل (patch) واحد. يحوي هذا الرابط تعليمات مفصلة لكيفية تطبيق هذه التعديلات على دبيان لينكس.

https://bitbucket.org/openerparabia/openerp-arabic-support

تحل هذه التعديلات مشكلتين:

1. استخدام اللغة العربية في واجهة الاستخدام لعميل ويب (web client):
بعد تطبيق هذه التعديلات، ستظهر جميع عناصر الواجهة المترجمة باللغة العربية حين اختيارك للغة العربية كلغة المستخدم.

2. عرض الحروف العربية بشكل صحيح في التقارير (PDF).

- مجتمع أوبن إي آر بي العربي
http://openerparabia.org/

-----------------------------------------------------------------------------------------------------

We collected the patches required for proper Arabic language support in OpenERP and packaged them into a single patch.

The patch, along with the instructions to apply it, are published at:
https://bitbucket.org/openerparabia/openerp-arabic-support

The patch solves two problems:

1. Setting the web client user interface language to Arabic
A standard OpenERP install will fail to load all the translations: there are far more translated phrases than is actually used. This patch allows all translations to be used. (See https://bugs.launchpad.net/openobject-server/+bug/1019804 for details.)

2. Display of Arabic characters in PDF reports.

- OpenERP Arabia (OpenERP Arabic Community)
http://openerparabia.org/

Revision history for this message
Bakry Altyeb (bakry-it) wrote :

How do I change in the form of a font of Arabic For reports?????

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.