In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to configure Flex internationalization, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Flex internationalization instructions
Flex supports Chinese language packs from SDK4.0 (including 16 languages such as simplified Chinese, traditional Chinese, etc.). The lower version of SDK does not have a Chinese language pack, so you need to add the folder in the attachment to SDK's frameworks\ locale.
The support Chinese language pack mentioned here is used to change the text of the Flex built-in components, such as the pop-up prompts Yes and No, to verify the prompts in the components.
Note: in the process of Flex internationalization, BUG exists in the properties file of the calendar component, and the property file SharedResources.properties of the date control needs to be modified.
Several steps for ◆ to configure Flex internationalization:
1: add Flex internationalization properties file
Folder code
Properties-en_US-common.properties-zh_CN-common.properties properties-en_US-common.properties-zh_CN-common.properties
2: the configuration properties file directory is the source code folder
Properties/ {locale}
3: register the properties file and add the following code to the main program
Mxml code
[ResourceBundle ("common")] [ResourceBundle ("common")]
4: use Flex to internationalize resources
ResourceManager.getString ('common','loaderError')
'common' is the name of the properties file, and loaderError is the key of the content in the properties file
5: compile resource files
Modify the Addtionalcompilerarguments:-localeen_USzh_CN in FlexCompiler
In this way, you can compile resource files in Chinese and English.
6: switch Flex internationalization
The following code is to switch to Chinese resources
ResourceManager.getInstance () .localeChain= ["zh_CN"]
The default display language of the client browser can be obtained through request.getLocale () in 7:sevlert. Such as zh_CN
Thank you for reading this article carefully. I hope the article "how to configure Flex internationalization" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.