Page 1 of 1

arabic languages

PostPosted: Thu Jan 03, 2008 1:05 am
by chadifa
how to have an arabic interface for the web auction i need steps and details process thx

PostPosted: Thu Jan 03, 2008 6:00 pm
by shannah
WebAuction is built on Dataface. A good place to start is with this tutorial:
http://xataface.com/documentation/tutor ... taface-0.6
It will show you how to do internationalization with Dataface applications like WebAuction.

A good place to start is to copy the lang/en.ini file to lang.ar.ini (ar is the ISO code for arabic), and translate the strings therein.
Next you need to add a section to the conf.ini file to list the languages that will be supported by your application.

Code: Select all
[languages]
en=English
ar=Arabic


Also, it is best to change the default encoding to UTF-8 so that the browser can handle the special characters.

To do this, you can add the following to the beginning of the conf.ini file:
Code: Select all
default_oe = "UTF-8"
default_ie = "UTF-8"


Finally, you may also need to change the collations of the tables and columns in the database to a UTF-8 collation, so that it will handle the special characters properly.
e.g.
Code: Select all
ALTER TABLE  `products` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci


and for each varchar or text column. e.g.
Code: Select all
ALTER TABLE  `products` CHANGE  `product_name`  `product_name` VARCHAR( 64 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL


(You would need to repeat this sort of command for each varchar field.).

Once that is done the application should be pretty much ready for arabic.

Best regards

Steve

thx

PostPosted: Fri Jan 04, 2008 12:21 am
by chadifa
thx steve for help but also this change of language will be only in the admin part how to let the user to choose his languages?
and how to change the light to left alignement for each languages?
and have another question i want to count the user online on the site but i don't know where to put my php script to count user that have success to logged in
thx again