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