problem with arabic language

amr

No avatar

2007-07-09 15:58

<?i need to run quickcart in arabicso i started translating the V2.2 of the cart 
every thing is going on correctly.
BUTthe problem is when the customer enters his personal data in ARABICthen he clicks on "send button"he got a message containing "Your order has been saved and will be sent as soon as possible" 

But his personal data that was written in arabic are all blank.

image
http
://pichost.ru/pics/c2f218c840a2fc7b2c6bd56955dc1864.png

this also happens in admin area "pending orders",
images,
http://pichost.ru/pics/0f9ce642ad3e2299f98c94264a42e9f8.png

any help,

Regards,
?>

» Quick.Cart v2.x

merci

No avatar

2007-07-10 08:01

amr - try to add setlocale in config/general.php file, but i don't know what should be set for your language, for polish it is like:
setlocale( LC_ALL, 'pl_PL' );
you can try search more on:
http://pl.php.net/manual/en/function.setlocale.php
Check also if your server have installed arabic locale.

amr

No avatar

2007-07-10 09:20

Thanks merci for your help,

unfortunately i could not get it to work with set locale like this,
setlocale(LC_ALL, 'Arabic');

but when i tried another free web host it worked, may be it supports arabic locale directly,

but my paid host doesn't support arabic,

any help will be appreciated.

ned

Avatar: ned

2007-07-10 16:42

Try one of the following language locales in
setlocale( LC_ALL, 'xx_XX' );

ar_AE: Arabic - United Arab Emirates ar_BH: Arabic - Bahrain
ar_DZ: Arabic - Algeria ar_EG: Arabic - Egypt
ar_IN: Arabic - Iran ar_IQ: Arabic - Iraq
ar_JO: Arabic - Jordan ar_KW: Arabic - Kuwait
ar_LB: Arabic - Lebanon ar_LY: Arabic - Libya
ar_MA: Arabic - Morocco ar_OM: Arabic - Oman
ar_QA: Arabic - Qatar ar_SA: Arabic - Saudi Arabia
ar_SD: Arabic - Sudan ar_SY: Arabic - Syria
ar_TN: Arabic - Tunisia ar_YE: Arabic - Yemen

amr

No avatar

2007-07-11 16:32

thank you all,

i tried every thing i can - only worked on a free host that have arabic-locale .

another thing, if i typed a charachter like . or : , every thing goes OK.

how can i add on of these charachters to every delivery form field - (i need them unwatchable or un erasable ) .

Regards,

ned

Avatar: ned

2007-07-12 11:02

The iso language onfiguration for Q.C2.2 is in the /lang/ folder.
Your new Arabic translation should be in /lang/ar.php.
Try
$config['charset'] = 'iso-8859-6';
which will tell servers that Arabic is expected as the language for this site.

amr

No avatar

2007-07-14 20:30

thanks for all contributions,

for arabic encoding, i always use "windows-1256" . i tried 'iso-8859-6' but no luck .
only works on arabic localed servers .

ThanX.

mixos

No avatar

2008-08-30 10:47

I have the same problem. Is there any solution found for this issue?

mixos

No avatar

2008-08-30 11:18

Problem solved adding in general.php

setlocale(LC_ALL, "cs_CZ");

change cs_CZ to your language code

Back to top
about us | contact