Multi-language web site development incomplete technical analysis included

Source: Internet
Author: User
Language is the main obstacle to the dissemination of information.
Multilingual Web sites, as the name implies, can provide information services to users in multiple languages (rather than single languages), allowing users of different languages to get the same information from the same Web site.
Multi-language web site implementation plan
1, Static: is for each language to prepare a set of paging file, either through the file suffix name to distinguish between different languages, or through subdirectories to distinguish between different languages.
For example, for the home file index_en.htm to provide an English interface, index_gb.htm provide Simplified Chinese interface, index_big.htm provide a traditional Chinese interface, or en/index.htm to provide an English interface, gb/ Index.htm provides simplified Chinese interface, Big/index.htm provides the traditional Chinese interface, once the user has selected the required language, automatically jump to the corresponding page, the first page of the following other links are treated in the same way. From a maintenance standpoint, it is straightforward to distinguish between different language versions through subdirectories than by file suffix names.
2, Dynamic: All page files in the site are dynamic paging files (php,asp, etc.) rather than static page files, in the need to output language of the local unified use of language variables to express, these language variables can be based on the user to choose different languages to give different values, In order to achieve in different language environment output different text.
For example: The language variable ln_name, when the user chooses the language is English when the assignment is "name", when the user chooses the language is the simplified Chinese to assign the value "the name", thus may adapt the different language the output.
The advantage of static mode is that the page is directly output to the client, do not need to run on the server, the use of the server less resources, the system can support more concurrent connections, the disadvantage is to create a set of page files for each language, a lot of content even with language-independent also to be stored in different languages, Therefore, more storage space is occupied.
The pros and cons of dynamic and static are just the opposite, its advantage is that the dynamic paging file is only a set, the text of different languages using language variables to store, and language-independent content to store only one, occupy less storage space, and expand the new language is easier, the shortcomings need to run on the server, The results are then entered into the client, which consumes more resources from the server, and the system can support fewer concurrent connections.
Some technical problems involved in Dynamic Data storage
Due to the increasing number of dynamic applications on the Web site, quite a lot of Web sites also use files or databases to store application information, so you need to pay special attention if the content stored in the file or database is language related. For information stored in a database, you can support multiple languages in the following ways:
1, multilingual support at the database level: A separate database is established for each language, and users of different languages operate different databases.
2, multiple languages are supported at the table level: A separate table is created for each language, and users of different languages manipulate different tables, but they are in the same database.

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.