Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
|
Localization Flash Builder 4.5
|
|
09-21-2011, 11:26 AM
|
|
Video Chat
Moderator
    
|
Posts: 230
Joined: Jun 2011
Reputation: 3
|
|
Localization Flash Builder 4.5
Flex localization (language support) for SVC
- /locale is the folder to store your language file bundles, each locale having a different sub-folder, en_US, es_ES, de_DE or ru_RU ex. /locale/en_US/
- in the locale sub-folders are located the .properties files called i18n.properties (UTF-8)
- the resources are in the form of "key=value" ex. "start.camera.button=Start WebCam"; see the actual SVC language files here: http://www.videosoftware.pro/forum/THREA...anslations
IMPORTANT! In order to use localization, you need to make some changes in Flash Builder as described below.
- You need to update the compiler settings. In Flash Builder 4.5 open: Project > Properties and select Flex Compiler (on the left)
- under Additional compiler arguments: find (the default)
Quote:-locale en_US
and replace with
Quote:-locale=en_US,es_ES,de_DE,ru_RU -allow-source-path-overlap=true -source-path=locale/{locale}
*make sure you include all languages you are using, in this case English (en_US), Spanish (es_ES), German (de_DE) and Russian (ru_RU) - you may add others as well (remember to create the resources in their respective sub-folders - read above)
- Now, you need to create the localized framework resources if they don't already exist:
- go to "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/" and check if the folder exists for the locale you wish to use, if not
- open a terminal and type in the following:
Quote:cd "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/bin"
./copylocale en_US hu_HU
What you are doing above is:
- going to the /bin folder in your Flex SDK installation folder
- by runing copylocale.exe, you are copying the localized framework files from one locale to another, ex. copylocale en_US hu_HU will create the localized resources and folder for Hungarian, based on English
- you may repeat the copy for each locale you wish to use
To check if the folder for your new locale has been created, go back to "/Applications/Adobe Flash Builder 4.5/sdks/4.5.0/frameworks/locale/" and see if the new folder exists
*on Windows, replace "/Applications/Adobe Flash Builder 4.5" with your Adobe Flash Builder installation directory and the terminal commands should look something like this:
Quote:cd \Adobe Flash Builder 4.5\sdks\4.5.0\bin"
copylocale en_US hu_HU
I love video chat!
|
|
|
User(s) browsing this thread: 1 Guest(s)