WEB system-based multilingual support --ASP international multilingual detailed scheme

xiaoxiao2021-03-06  80

1.ASP section a. Create language pack 1. Create a "language package" directory in each subsystem, such as bbs -> language -> Simplified ---> Traditional ---> English 2 for each ASP, JS, HTC builds a language file, such as acmbbstopic.asp.lang, TreeView.htc.lang, is used to store language global variables.

The directory Language / English / ACMBBSShow.asp.langPublic Const LangRollway = "reverse roll" Public Const LangInvaildUser = "invaild user" Public Const LangMailbox = "mail box" Public Const LangSysSetup = "system setup" Public Const LangACMBBS = "Acer BBS" Public Const LangBulltn = "Acer bulltin" Public Const LangPersnSetup = "personal setting" Public Const LangPublicTools = "Public Tools" such as directory Language / Simplified / ACMBBSShow.asp.langPublic Const LangRollway = "reverse scrolling" Public Const LangInvaildUser = "unauthorized users "Public Const LangMailbox =" Mail folder "Public Const LangSysSetup =" system settings "Public Const LangACMBBS =" BenQ Internet cafe "Public Const LangBulltn =" bulletin board "Public Const LangPersnSetup =" personal settings "Public Const LangPublicTools =" Group Tools "Language Global Variable Naming Rules; Must be the VBScript variable definition method PUBLIC Const variable name:" LANG " Message Descptionb. Sets Global.asasub session_onstart session.codepage =" 1252 "'1252en' 950 Traditional" 936 Simplified Session.Contents ("Language") = "English" 'english' traditional 'SimplifiedSession.Contents ("strcharset") = "BIG5"' ISO-8859-1 'BIG5' GB2312 End Subc. Quote Language Pack 1. Create BBS- -> Language -> Script Directory, includeLang.vbs2. In each ASP, JS, HTC header