Dwz (Jui) tutorial on Internationalization

Source: Internet
Author: User

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

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.