arabic languages

A place to discuss and receive support for the Web Auction application.

arabic languages

Postby chadifa » Thu Jan 03, 2008 1:05 am

how to have an arabic interface for the web auction i need steps and details process thx
chadifa
 
Posts: 7
Joined: Thu Jan 03, 2008 12:41 am

Postby shannah » Thu Jan 03, 2008 6:00 pm

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

thx

Postby chadifa » Fri Jan 04, 2008 12:21 am

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
chadifa
 
Posts: 7
Joined: Thu Jan 03, 2008 12:41 am


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 18 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved