Hi, does anyone know of a script which will change the language of all text on your site to english/japanese and back?
I'm looking for a script that will do this. About one-third of my traffic comes from Japan. so I want to give them the option of dynamically changing the language on the entire site if they want to.
There is a script that I downloaded, but it doesn't include an array for japanese. Can someone please help?
$phpLang_languages = array(
"en([-_][[:alpha:]]{2})?|english" => array('en', 'english'),
"fr([-_][[:alpha:]]{2})?|french" => array('fr', 'french'),
"cs|czech" => array('cs', 'czech'),
"da|danish" => array('da', 'danish'),
"nl([-_][[:alpha:]]{2})?|dutch" => array('nl', 'dutch'),
"de([-_][[:alpha:]]{2})?|german" => array('de', 'german'),
"fi|finnish" => array('fi', 'finnish'),
"is|icelandic" => array('is', 'icelandic'),
"it|italian" => array('it', 'italian'),
"no|norwegian" => array('no', 'norwegian'),
"pl|polish" => array('pl', 'polish'),
"ru|russian" => array('ru', 'russian'),
"sk|slovak" => array('sk', 'slovak'),
"es([-_][[:alpha:]]{2})?|spanish" => array('es', 'spanish'),
"th|thai" => array('th', 'thai'),
"pt[-_]br" => array('pt-br', 'brazilian portuguese'),
"pt([-_][[:alpha:]]{2})?|portuguese" => array('pt', 'portuguese'),
"uk([-_][[:alpha:]]{2})?|ukrainian" => array('ua', 'ukrainian'),
"zh[-_]tw" => array('zh-tw', 'chinese_traditional'),
"zh([-_][[:alpha:]]{2})?|chinese" => array('zh', 'chinese_simplified')
);
Also, it would nice to be able to change only a single sentence to Japanese in certain places on the english text as well, is this possible???
Basically, I want to type it all in english, and have PHP dynamically change it to Japanese.