How to Convert English website and DB in Arabic

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
musharaf
Forum Newbie
Posts: 1
Joined: Sun Mar 28, 2004 1:34 pm

How to Convert English website and DB in Arabic

Post 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?
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post 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;
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

PrObLeM wrote:...what ever welcome is in arabic...
salam aleikoum :wink:
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

Thanks..."Now i know and knowing is half the battle" - GI Joe
Post Reply