Flex localization (multi-language) language folder settings

 

  In the configuration of Flex multi-language platform, FLEX requirements of frameworks / locale contains the language program startup area of ​​the locale package parameter settings, such as en_US provided by default, you can be in the following folder to see what these files :

FLEX SDK installation directory / sdks / xxx / frameworks / locale / en_US /

For example, to support translation English (en_US) language in the program, you need to ensure that frameworks / locale folder contains a folder en_US.

So the question is, SDK included by default only several common language, if you need to implement other less common language translation, if there is no corresponding locale package, the system will not operate properly.

This time you need to add the corresponding locale package manually. Flex SDK provides a tool called copylocale, simplifies this process. You can find it at the following path:

FLEX_HOME/sdks/x.x.x/bin/copylocale

Open a command prompt and execute the command with the following statement:

copylocale original_locale new_locale

The tool creates a new folder and copy the file framework needs into account in the framework directory. Each language support will require a respective folders.

It is noteworthy that, Flash Builder and the Flex 4 SDK has been built to support up to 16 kinds of common areas, means that these files already exist. Before you create any files, locale folder under check whether already have. If you want to support the region have, then you need to do anything to change. Only in case you find missing before running the tool to create.

For example, you need to en_US, fr_FR, vi_VN and ja_JP these language packs folder. en_US folder is the default exists. The other three files copylocale tools to create the missing folder. In the command line, if you did not find vi_VN folder to execute the command:

copylocale en_US vi_VN

note:

1. If, after running the tool did not find generate the corresponding folder, attention to the need administrator privileges.

2, if you encounter an error when prompted to copy the frame resources: Error loading: ******* \ Java \ JDK \ jre \ bin \ server \ jvm.dll

 

Because flash builder is based on the eclipse and the eclipse is run java java technology used requires jre 

Solution
1. Download and install jre
2. Edit FLEX_HOME \ bin \ jvm.config file, set the value java.home
example:
# java.home =
java.home = D: / Program Files / the Java / jre6-32


Note: FLEX_HOME refers to flex sdk directory, such as D: \ Program Files \ Adobe Flash Builder 4.6 \ sdks \ 4.6.0

 

 

 

 

Guess you like

Origin www.cnblogs.com/ayrie/p/12461703.html