Technorati tags: django, i18n, javascript, Chinese, multi-language
Django's internationalization support is very good and easy to use. It supports code, templates, and JS internationalization solutions. Especially in version 1.2
Local formatting of dates and numbers has been well-developed for internationalization.
Application Method
First, modify settings. py:
1. Add TEMPLATE_CONTEXT_PROCESSORS to django. core. context_processors.i18n.
2. Add django.
Method One:Modify the/etc/sysconfig/i18n fileChange the lang= "en_US" inside to GB2312.To restart the machine.Without restarting the method, directly# lang= "GB2312"And then we can.Modify i18n just to restart the activeMethod Two:#vi ~/.bash_profileLang=zh_cn. GB18030Language=zh_cn.gb18030:zh_cn.gb2312:zh_cnExport LANG LANGUAGEThis will be able to input and display the Chinese in the terminal, and the shell
Modify the/etc/sysconfig/i18n file, such asLang= "en_US. UTF-8 ", Xwindow will display the English interface,Lang= "ZH_CN. GB18030 ", Xwindow will display the Chinese interface.There is also a way to cp/etc/sysconfig/i18n $HOME/.i18n modify $HOME/.i18n files, such asLang= "en_US. UTF-8 ", Xwindow will display the Engli
.
Localization/Internationalizationinternationalization (i18n) is the process of planning and implementing products and services that enable them to easily adapt to specific local languages and cultures, a process known as localization. The process of internationalization is sometimes referred to as translation or localization enablement. Internationalization is abbreviated i18n, because I and the ends are
restriction on required library C:\Program FILES\JAVA\JR E7\lib\rt.jarand the installation path does not matter.Under Eclipse or MyEclipse, select your project-right-click Properties-Find the right side of Java build path-librariesSee the JRE System Libriry below, which is the jar package you need to run the environment under your current JVM.You above the pathC:\Program Files\java\jre7\lib\rt.jarThe package is in it.Under the JRE System Library, there is an access rules, double-click Open, her
components for developing large Web applications. Yii has almost all the features, including MVC, DAO/ActiveRecord, I18N/L10N, caching, JQuery-based AJAX support, user authentication and role-based access control, scaffolding, input verification, parts, events, themes, and Web services. Yii adopts strict OOP Compiling. Yii is easy to use, flexible, and scalable. Data support SQLite: sqlite:/path/to/dbfile MySQL: mysql: host = localhost; dbname = test
This summer, I have been developing struts2, but the garbled problem has always occurred, and I have never cared about it... I am free today. To sum up, I hope this problem will not happen again in the future.
First, let's list the previously configured points:1. jsp file header2. Encoding settings in struts. PropertiesStruts. locale = UTF-8Struts. i18n. Encoding = UTF-83. Resource native2ascii TranscodingGenerally, this will solve the encoding proble
HTML5 boilerplate with requirejstable of contents
HTML5 boilerplate with Requirejs
Table of Contents
Code Base HTML5 Boilerplate
Code Base in Browser
Requirejs
Install
Configure
Multiple pages
Jscommonjs
Update Jsmainjs for indexhtml
Page1html
i18n Requirejs Plugin
Install
Configure
Linux Chinese display settings tutorial, linux display settings tutorial
Sometimes garbled characters may occur, which is caused by inconsistent character sets. in Linux, you can adjust the character set to unify the character symbols and encoding:
View the text encoding format used by the current server:
[Root @ cs1 ~] # Cat/etc/sysconfig/i18n
LANG = "en_US.UTF-8"
SYSFONT = "latarcyrheb-sun16"
[Root @ cs1 ~] #
A good O M should back up the
language packs. the language in the application is not completely written. it calls the relevant language based on the system settings, once an application is written, it can be used by users in different countries around the world on the mother tongue interface. this is called internationalization (International), or i18n for short. This is also the future trend of software development. If I have installed different language packs and different font
behind the module identifier is "! ", Used to identify this as a plugin. "! "The subsequent data will be directly transferred to plugin for processing. Some examples may be helpful for understanding. Dojo provides several default plugins. Four of the most important ones are dojo/text, dojo/i18n, dojo/has, and dojo/domReady. Let's explain it one by one.Dojo/text
Dojo/text is used to load strings (such as HTML templates) from files ). The load value is
Let the English Linux system display and enter Chinese (to)-General Linux technology-Linux technology and application information. The following is a detailed description. [I = s] This post was last edited by lazycat_work
This article is about displaying Chinese in the graphic interface X.
I. Introduction of related variables we know that most Linux systems do not have Chinese and English versions. Taking FC4 Linux as an example, the system was released all over the world, whether the system
Solution # Back up the configuration file cp/etc/sysconfig/i18n/etc/sysconfig/i18n. bak # modify the configuration file vi/etc/sysconfig/i18n # change the content to LANG = "zh_CN.GB18030" LANGUAGE = "zh_CN.GB18030: zh_CN" SUPPORTED = "zh_CN.GB18030: zh_CN: en: en_US.UTF-8: en_US: en "SYSFONT =" lat0-sun16 "i18n is sho
/mirror/centos/5.4/ OS /x86_64/CentOS/fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
One is a Chinese font and the other is a font display package.
After the download, install it on the command line:
# Rpm-ivh XXXX (XXXX indicates the full names of the above two packages. I don't know how to use rpm ?)
After the CentOS system is installed, restart it.
2. garbled display on terminals and gedit
# Vi/etc/sysconfig/i18n
Set LANG = "en_US.UTF-8"
SYSFONT = "lata
This article mainly describes how to configure the Linux system for the basic methods of the multilingual environment, including the coding of the modification method, we take the most users of the Ubuntu and CentOS these two examples. Need a friend to refer to under.
Modify the/etc/sysconfig/i18n file, such as
Lang= "en_US. UTF-8 ", Xwindow will display the English interface,
Lang= "ZH_CN. GB18030 ", Xwindow will display the Chinese
-what people often say about i18n and l10n.
1.i18n
"Internationalization", the internationalization of English is internati-onalization, the first letter of the English word I and the last letter N between 18 letters, so it is often referred to as i18n. I18N is an idea that provides an architecture that allows the same
Modifying the system default language in CentOS
Change the original to the Chinese environment to the English environment
Modify the i18n file
#vim/etc/sysconfig/i18n
--------------Content---------------------
Lang= "en_US. UTF-8 "
-----------------------------------------
Another way is to change the environment variable Lang
#export lang= "en_US. UTF-8 "
However, such a reboot is not,
function GetLength (str) {return str.replace (/[^\x00-xff]/g, "xx"). Lenght; Window.onload=function () {//1. Element selected var ainput=getelementsbytagname (' input '); var oname=ainput[0];var pwd=ainput[1]; var pwd2=ainput[2];var ap=getelementsbytagname (' P '); var name_msg=ap[0];var pwd_msg=ap[1];var Pwd_msg=ap[2];var Acount=getelementbyid (' count '); var Aem=getelementbyid (' em ');//Regular expression//number, letter, length//A-za_z0-9_......v
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.