
TUTORIALS POINT
Simply Easy Learning Page 110
Flex - Internationalization
This chapter describes internalization of Flex aapplication:
F
lex provides two ways to internationalize a Flex application, We'll demonstrate use of Compile time
Internationalization being most commonly used among projects.
Compile Time Internationalization
This technique is most prevalent and requires very little overhead at
runtime; is a very efficient technique for translating both constant and
parameterized strings;simplest to implement. Compile Time
internationalization uses standard properties files to store translated strings
and parameterized messages, and these properties files are compiled
directly in the application.
Run Time Internationalization
This technique is very flexible but slower than static string
internationalization. You need to compile the localization properties files
separately, leave them external to application, and load them at run time.
Workflow of internationalizing a Flex Application
Step 1: Create folder structure
Create a locale folder under src folder of Flex project.This will be the parent directory for all of the properties files for
the locales that the application will support. Inside the locale folder, create subfolders, one for each of the
application's locales to be supported. The convention for naming a locale is
{language}_{country code}
For example, en_US represents English of the United States. The locale de_DE represents German. The sample
application will support two common languages: English, and German
Step 2: Create properties files
Commenti su questo manuale