DWZ internationalization is also relatively simple, the content of the site internationalization and the regular project internationalization is the same, do not make special adjustments.
DWZ the internationalization of its own framework, such as the previous page of pages and the next page of information. This information is in the Dwz.frag.xml file, you can view it and understand.
There are two ways to internationalize the framework.
<script type= "Text/javascript" >$(function() {Dwz.init ("Dwz.frag.xml", {loginurl:"Login_dialog.html", Logintitle: "Login",//Popup Login dialog box//loginurl: "login.html",//Jump to login pagestatuscode:{ok:200, error:300, timeout:301},//"Optional"Pageinfo:{pagenum: "Pagenum", Numperpage: "Numperpage", OrderField: "OrderField", Orderdirection: "OrderDirection"},//"Optional"Debugfalse,//Debug Mode "True|false"Callbackfunction() {initenv (); $("#themeList"). Theme ({themebase: "Themes"});//themebase the theme base path relative to the index page } });});</script>
View Code
1 Using multiple Dwz.frag.xml profiles, you can write multiple files such as Dwz.frag.en.xml, Dwz.frag.ch.xml to determine the language to switch.
2 using dynamic Dwz.frag.xml configuration files, such as struts, can be configured to request directory dwzfrag.do, configuration file content written in the JSP file for internationalization
DWZ (JUI) Tutorial internationalization issues (multi-language/language switching)