Dwz (Jui) tutorial on Internationalization
Recently, a friend asked about dwz internationalization.
Dwz internationalization is also relatively simple. website content internationalization is the same as that of conventional projects. Do not make special adjustments.
Dwz's framework is internationalized, such as the previous page and the next page. All this information is in the dwz. Frag. xml file. You can see it.
There are two ways to internationalize the framework
<SCRIPT type = "text/JavaScript"> $ (function () {dwz. init ("dwz. frag. XML ", {loginurl:" login_dialog.html ", logintitle:" Logon ", // The logon dialog box is displayed. // loginurl:" login.html ", // jump to the statuscode: {OK: 200, error: 300, timeout: 301}, // [Optional] pageinfo: {pagenum: "pagenum", numperpage: "numperpage", orderfield: "orderfield", orderdirection: "orderdirection"}, // [Optional] Debug: false, // debug mode [true | false] callback: function () {initenv (); $ ("# themelist "). theme ({themebase: "themes"}); // themebase relative to the base path of the topic on the index page }}); </SCRIPT>
This is the configuration of the Framework startup. For details, please refer to my blog.
1. Use multiple dwz. Frag. xml configuration files to write multiple files, such as dwz. Frag. En. xml and dwz. Frag. Ch. XML, to switch between them.
2. Use the dynamic dwz. Frag. xml configuration file. For example, use struts to configure the request directory dwzfrag. Do. The configuration file content is written in the JSP file for internationalization.
Reprinted please indicate the source
Http://blog.csdn.net/jiweigang1/article/details/8758632