Translation of thinkphp pages in simplified, traditional, and English

Source: Internet
Author: User
thinkphp conversion between simplified, traditional, and English pages

Click to download simplified, traditional, English

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"


  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.