Page 1 of 1

How to Convert English website and DB in Arabic

Posted: Sun Mar 28, 2004 1:34 pm
by musharaf
HI,
I have developed a website in PHP and MySQL in English language. Now i want to launch its Arabic version, can you please guide me what necessary steps i have to follow? should i have to make 2 databases in MySQL or can only 1 database be sufficient? What will happen in case of data insertion. do i have to enter all data in tables every 2 times?
Also do i have to make a new website for Arabic from scratch?
Any help would be welcomed. Thanks in advance.
I have an English Language PC. should i need an Arabic language PC separately?

Posted: Sun Mar 28, 2004 3:02 pm
by PrObLeM
what you can do is make an english file with defines ie
you will also need 2 dbs
engilsh.php

Code: Select all

define(_WELCOME, "Welcome to the site);
arabic.php

Code: Select all

define(_WELCOME, "what ever welcome is in arabic);
then in the index.php

Code: Select all

if($lang == 'arabic')
include arabic.php;
else
english.php;

echo _WELCOME;

Posted: Sun Mar 28, 2004 3:04 pm
by m3mn0n
PrObLeM wrote:...what ever welcome is in arabic...
salam aleikoum :wink:

Posted: Sun Mar 28, 2004 3:06 pm
by PrObLeM
Thanks..."Now i know and knowing is half the battle" - GI Joe