I'm trying to add locale-specific properties to my application. I'm using Flex
Builder 3.0.2. What I've done is:
- at the root of my module, added a folder named 'res'
- underneath res, added a folder named 'en_US'
- within res/en_US, added a file named 'MyApp.properties', which contains my
localizable properties
I added the folder 'res/{locale}' as an additional source folder to my project
under the "Flex Build Path" property for my project.
Under the Flex Compiler properties I have the following under "Additional
compiler arguments:"
-locale=en_US -allow-source-path-overlap=true -keep-generated-actionscript=true
I now have a "generated" folder under my "src" folder, and it includes a large
number of .as files, including a number of *_properties.as files, but not one
for MyApp. Indeed, in my application, if I trace the result of
ResourceManager.getInstance().getBundleNamesForLocale("en_US"), I get the
following list:
effects,formatters,SharedResources,skins,containers,styles,core. MyApp,
however, is not listed, and indeed, attempting to fetch any resource from the
bundle "MyApp" returns null.
What am I missing?
--
Rick Genter
[email protected]