I18n-- "Internationalization"Because "Internationalization"The word is long, so for ease of writing, it is usually abbreviated as "i18n". 18 in the middleIndicates the first letter "I"And the ending letter "N"18 is omittedLetters. The word "Internationalization"Translated into Chinese:"Internationalization"It means to make products or software universally adaptable to different international markets, so the
/Etc/
Sysconfig/i18n
Controls the system font settings. The language variables are used in/etc/profile. d/lang. Sh. An example i18n file:
LANG="en_US"LC_ALL="en_US"LINGUAS="en_US"
Options:
Lang = set locale for all categories, can be any two letter ISO language code.
Lc_ctype = localedata configuration for classification and conversion of characters.
Lc_collate = localedata configuration for collation (
Scstringsutility: the open-source MACOs tool that directly reads xcode Project Settings and modifies the strings on the interface.
Base Localization: supported only after ios6 and 10.8. Using baselocation to extract strings directly, you don't have to worry about multiple nibs and storyboard. Here, a script can be used to directly extract the string in the nib or storyboard without i18n.
Pseudo localizer: a free tool in MAC app store.Source codeTo
I. Overview of international developmentSoftware internationalization: When software is developed, it should be able to respond to different regions and countries in the world, and provide corresponding pages or data that meet the visitors ' reading habits for different regional and national visits. internationalization (internationalization) is also known as i18n (The Reading method is I, it is said that because internationalization (internationaliz
One, [email protected] InstallationIi. introduction of [email protected]1 import vuei18n from ' vue-i18n '2 vue.use (vuei18n)Third, introduced the use of the Component language Pack (for example: Elementui)1 import enlocale from ' element-ui/lib/locale/lang/en '2 import Zhlocale from ' element-ui/lib/locale/ LANG/ZH-CN '3 import elementlocale from ' Element-ui/lib/locale 'Iv. creating a custom language pack, merging with the component language pack1 C
There are three classic ideas for solving i18n problems, the first is to provide each page with relevant pages for each language. The second is to separate the content from the representation and do the content files in different languages. The third is the dynamic translation of page content. The third is very rare, and machine translation technology is difficult to meet people's expectations. The 2nd kind is our commonly used properties.
The premis
I. Overview of international developmentSoftware internationalization: When software is developed, it should be able to respond to different regions and countries in the world, and provide corresponding pages or data that meet the visitors ' reading habits for different regional and national visits. internationalization (internationalization) is also known as i18n (The Reading method is I, it is said that because internationalization (internationaliz
I18n-- Is the abbreviation of "Internationalization". Because the word "Internationalization" is long, it is generally abbreviated as "i18n" for ease of writing ". 18 indicates that 18 letters are omitted between the first letter "I" and the last letter "N. The word "Internationalization" is translated into Chinese"Internationalization"Meaning-the process of adapting products or software to a variety of lan
When springboot use i18n for internationalized file configuration, the file name is messages_zh_cn.properties in the file to fill in the Chinese information, when using the browser to access, there is a Chinese garbled, at this time in the idea of the modification setting configuration:Note:After modifying the configuration, the properties of the configuration file of the Chinese has garbled, if not the file garbled Chinese change back, with the brows
There are many ways to internationalize, many PHP frameworks have built-in i18n support, but most of them are based on an array of PHP, this method is not recommended. At present, the most popular and most common method is gettext.
Gettext is used for system internationalization (i18n) and Localization (L10N), which enables the use of native language support when compiling programs (Native Language Support
One, read the locale information of the PCLocale information is made up of language and country code, and in Java, the locale class corresponds to the language information./* *//Get local information Locale Defaultlocale = Locale.getdefault (); * SYSTEM.OUT.PRINTLN ("Country:" + defaultlocale.getcountry ()); * SYSTEM.OUT.PRINTLN ("language:" + defaultlocale.getlanguage ()); */two, how to support internationalization1. Accession to the International Resource documentThe internationalized resource
i18nUsed to write internationalized Web programstaglib:
1, Used to set the local language of the user and save the specified locale to the javax.servlet.jsp.jstl.fmt.local configuration variableConfig.find (Pagecontext,config.fmt_locale) can get LOCALE propertiesVariant: Vendor or browser code win, MAX, POSIXGenerally placed at the top of the page, other tags can be obtained by Servletrequest.getlocale () locale
2, Create the i18n local context enviro
"Language_code": "ZH-CN"Similarly sudo vi/edx/app/edxapp/cms.env.json "language_code": "en" to "language_code": "ZH-CN"Remember to save it after you change it!6. Then switch to the Edxapp account and load the environment variablesudo su edxappSource/edx/app/edxapp/edxapp_envCd/edx/app/edxapp/edx-platform7. Perform translation paver i18n_robot_pull8. Update assetsPaver Update_assets LMS--settings AWSPaver Update_assets CMS--settings AWS9. Exit Edxapp user and restart EdxappExitSudo/edx/bin/supe
Three easy steps
1) Configure function
Add an input for each field want to include in your filter
Copy the Code code as follows:
$this->widgetschema[' name '] = new Sfwidgetformfilterinput (Array (' with_empty ' = false));$this->validatorschema[' name '] = new Sfvalidatorpass (Array (' required ' = false));
2) Add a query modification when filtering for that field
I ' ve done it for Doctrine. Pay Atention to the method name Addfieldcolumnquery.
Copy the Code code as follows:
Public Function Ad
[Newedit] Implementation of i18n (III)-implementation principle of gettext
Http://blog.donews.com/limodou/archive/2004/06/15/28961.aspx
Appendix: implementation principle of gettext
It's just my understanding!
The gettext function is actually quite simple: define and install the _ () function, obtain the translation from the mo file based on the input translation items, and process the Unicode code of the application according to the uniocde identi
Struts and i18n:It is 18 characters After International .. The specific meaning is omitted.The implementation principle is:The server maintains multiple sets of corresponding resource files, corresponding to different languages (these resource files exist independently of the Code ).When the access is sent to the server, the server automatically identifies the language environment used by the client.The server selects appropriate resources based on the customer's language environment, renders th
1. First, build the struts2 environment,
2. Create an action. Test i18n.
3. Below is a simple configuration of Struts. XML, which contains the configuration of the properties file in 2. One is global and the other is local,
4. According to the struts2 configuration, the plug-in is a configuration file named test_en_us.properties and test_zh_cn.properties,
The content in test_en_us.properties is: Hello = Hi, hello
The content in test_zh_cn.propert
Today, when we look at Python programming from the beginning to the practice, the following problems are encountered' pygal.i18n 'Then find the literature to find a solution to a netizen, the method is this:For the error, in fact, pygal.i18n no longer exists, has now been changed to pygal_maps_world , need to be downloaded separately via PIP, I am using Python3, so I need to use the Terminal pip3 command to install:Pip Install Pygal_maps_worldAfter the installation is successful, the country cod
First, JintoOfficial website: http://www.guh-software.de/index_en.html http://www.guh-software.de/jinto_en.html: Http://www.guh-software.de/jinto/de.guhsoft.jinto-0.13.5.zipLatest Version: Jinto 0.13.5After the Jinto plug-in is successfully installed, you can see the Jinto item in the window-->preferences of Eclipse/myeclipse. How to use:You can open the properties file by selecting the properties file--right---Select Open With menu and select Java ResourceBundle Editor (Jinto).Second, Propedito
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.