Example: Simplified file
lan_chinese.php: Simplified file
Var_dump ($_session);d ie;
$lan = Array (
' Shouye ' = ' home ',
' Guanyu ' = ' About Uex ',
' Dianzishangcheng ' = ' e-mall ',
' Daigoufuwu ' and ' purchasing service ',
' Zhifufangshi ' = ' payment method ',
' Jiaoyitishi ' = ' Trading Tips ',
' Jiaoyibaozhang ' and ' trading security ',
' Lianxiwomen ' = ' Contact Us ',
' Sheweishouye ' = ' Set homepage ',
' Jiarushoucang ' = ' Add ' to ' favorites ',
' Bangzhu ' = ' help ',
' Jiantizhongwen ' = ' Simplified Chinese ',
' Fantizhongwen ' = ' Traditional Chinese ',
' Denglu ' = ' landing ',
' Huiyuanzhongxin ' + ' member Center ',
' Tuichu ' = ' exit ',
' Zhaohuimima ' = ' Recover password ',
' Wangjimimala ' = ' forgot the password? Please enter the user name and the registered email address, we will send the password reset email to your mailbox! ',
' Gongyingshang ' + ' Supplier Registration Management Center ',
' Guke ' and ' Customer Member Registration Management Center ',
' Ninhao ' = ' Hello! ',
' Huanyinglaidaoxianggang ' = ' Welcome to the stock exchange of Hong Kong ',
' Huanying ' = ' Welcome to uex! Uex will guide you into China and learn about China. ',
' Shuruguanjianzi ' = ' Please enter keywords ',
' Fanbanbijiu ' + ' 2012 Hong Kong commodity Stock Exchange All rights reserved, pirated must investigate ',
' Gouwuzhinan ' = ' Shopping guide ',
' Daigouzhinan ' = ' purchasing guide ',
' Shouhoufuwu ' and ' after-sales service ',
' Shangchengdongtai ' and ' Mall News ',
' Jiaoyishuju ' = ' trading data ',
' Renwenshangpinzhishu ' and ' Humanities Commodity Index ',
' Liaojiezhongguo ' = ' know China ',
' Zhongguojingdian ' = ' Chinese classics ',
' Renwenshangpin ' = ' Humanities goods ',
' Qitateseshangpin ' + ' other featured goods ',
' Renwenshangpintuijian ' and ' cultural goods recommendation ',
' Qitateseshangpintuijian ' + ' other featured products ',
' Shangchenggonggao ' and ' Mall announcements ',
' Rexiaoshangpin ' = ' hot goods ',
' Huoyunhao ' = ' Freight number ',
' Fahuoriqi ' + ' delivery date ',
' Chushoujia ' and ' out of the price ',
' Zhongliang ' = ' weight ',
' Jian ' and ' pieces ',
' Peisongdiqu ' = ' distribution area ',
' Peisongfangshi ' and ' distribution method ',
' Yishouchu ' = ' sold ',
' Danjiansong ' + ' single-piece delivery ',
' Woyaoxuangou ' = ' I want to buy ',
' Zongjiage ' = ' Total price ',
' Yuan ' = ' yuan ',
' yiyou ' = ' already there ',
' Shoucang ' and ' people collection ',
' Renliulan ' = ' people browsing ',
' Tongleichanpintuijian ' = ' Recommended for similar products ',
' Xiangxixinxi ' = ' details ',
' Jiaoyibaozhang ' and ' trading security ',
' yunfeishouming ' = ' shipping Instructions ',
' Jiaoyifangshi ' = ' trading method ',
' Lianxifangshi ' = ' contact ',
' Kucunshengyu ' = ' inventory surplus ',
' Jifenyingxiang ' + ' points affect your reseller level ',
' Shoujia ' = ' price ',
' Shangpinbianhao ' = ' Product number ',
' Zhanwushangpin ' = ' no goods ',
' Fangbian ' = ' = ' For your convenience to manage your order, please enter the management account and password ',
' Huiyuandenglu ' = ' Member Login ',
' Huiyuanzhuce ' + ' member registration ',
' Yonghuming ' = ' user name ',
' Mima ' = ' password ',
' Chongfumima ' = ' repeat password ',
' Youxiang ' = ' email ',
' Yanzhengma ' = ' Verification Code ',
' Jizhuyonghuming ' = ' Remember user name and password ',
' Wangjimima ' and ' forgot password? ',
' Meiyouzhanghao ' = ' no account? ',
' Lijizhuce ' = ' Register Now ',
' Xuanzemian ' = ' integral/m value high value, wide selection ',
' Xinfaxian ' = ' The Hong Kong Stock Exchange is also expanding new products every day, you will have a fresh surprise ',
' Quanguofanwei ' = ' nationwide delivery ',
' Xianzaijiu ' = ' I haven't registered yet, now ',
' Zhucehuiyuan ' = ' Registered member ',
' Boda ' = ' If you have any questions during the purchase process, please call ',
' Fanhuishouye ' = ' Back to Home ',
' Ruguozhuce ' = ' If you have registered a member please click on '
);
?>
The judging part of the foreground file (in the head of the line)
Switch ($_session[' LAN ')} {
Case 1:
Include './lan_chinese.php ';
Break
Case 2:
Include './lan_chineseft.php ';
Break
Case 3:
Include './lan_english.php ';
Break
Default:include './lan_chinese.php ';
}
The following is the translated text in the output of the page
{$lan [' Subscript name ']}
Cases:
{$lan [' Shouye ']} output is "Home"
http://www.bkjia.com/PHPjc/477999.html www.bkjia.com true http://www.bkjia.com/PHPjc/477999.html techarticle Example: Simplified file lan_chinese.php: Simplified file? php//var_dump ($_session);d ie; $lan = array (shouye= home, guanyu= about Uex, Dianzishangcheng = e-Mall, daigoufuwu= Shopping service ...