Select to view content in your preferred language

Localization with widgets in subfolders

448
0
12-10-2012 06:58 AM
YohanBienvenue
Frequent Contributor
Hi,

I have created 3 new widgets that I put in a new subfolder I created within the "widgets" folder of Flexviewer. I then changed the "local" argument in the Flex Compiler to fr_FR, like this:

-locale fr_FR -source-path=locale/{locale} -keep-all-type-selectors=true -debug=true

but the compilation fails when it reaches my widgets, with the following error message:

[SWF] /widgets/Navigation/NavigationWidget.swf - 450,551 bytes after decompression
[SWF] /widgets/OverviewMap/OverviewMapWidget.swf - 334,252 bytes after decompression
[SWF] /widgets/MapSwitcher/MapSwitcherWidget.swf - 438,733 bytes after decompression
[SWF] /widgets/HeaderController/HeaderControllerWidget.swf - 389,955 bytes after decompression
[SWF] /widgets/SubfolderName/Recherche/Recherche.swf - 476,346 bytes after decompression
Error: Could not find compiled resource bundle 'ViewerStrings' for locale 'fr_FR'.
 at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
 at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
 at mx.core::FlexModuleFactory/installCompiledResourceBundles()
 at mx.core::FlexModuleFactory/docFrameHandler()
 at mx.core::FlexModuleFactory/docFrameListener()


Is this because of the subfolder? How can I make the ViewerStrings resource bundle work with my custom widgets?

Thanks
Tags (2)
0 Kudos
0 Replies