Thanks for the quick reply, Chris. I tried to move my locales in
src/main/locales, but still get the error: Unable to resolve resource
bundle mainGUI for locale standard en_US. I should not write anything
in the additional compiler options, as in Flash Builder? Here is part of
the maven-log (flex-building in last part of this log).
Alexandr.
понедельник, 29 октября 2012 г., 4:08:56 UTC+8 пользователь Christofer Dutz
написал:
I think you have youre locales path wrong. They should be in
src/main/locales and not src/main/flex/locales. The problem is
that src/main/flex is allready in the source-path. Try putting the
loacles in the path src/main/locales and all should work.
Chris
2012/10/26 Александр Погребников sani...@gmail.com javascript::
Hi,
I know that this problem was considered you have not once. Before you
write,
read several tutorials and requests in this group. But I could not fix
the
problem.
I started working with the flex-mojos quite recently, and now there is a
need localize an application. For the beginning I tried to localize the
application in Flex builder. It worked well. Then began to move it in
IntelliJ IDEA and here and get the error:
Unable to resolve resource bundle mainGUI for locale en_US.
The problem occures, when I declare the resources bundle in an MXML
file,
like this:
fx:Metadata
[ResourceBundle('mainGUI')]
/fx:Metadata
Here is part of the pom.xml where i try use locales:
build
finalNamesample/finalName
sourceDirectorysrc/main/flex/sourceDirectory
pluginManagement
plugins
plugin
groupIdorg.sonatype.flexmojos/groupId
artifactIdflexmojos-maven-plugin/artifactId
version${flexmojos.version}/version
extensionstrue/extensions
configuration
allowSourcePathOverlaptrue/allowSourcePathOverlap
runtimeLocales
localeen_US/locale
localeru_RU/locale
/runtimeLocales
resourceBundlePathsrc/main/flex/locales/{locale}/resourceBundlePath
/configuration
/plugin
/plugins
/pluginManagement
...
I have locales file:
src/main/flex/locales/en_US/mainGUI.properties
src/main/flex/locales/ru_RU/mainGUI.properties
Versions of flex:
flex.framework.version4.1.0.16248/flex.framework.version
flexmojos.version3.8/flexmojos.version
If I don't use the fx:Metadata the application is compiled, but the
labeles OK,Cancel, etc. are displayed as null and when
dropdownlist
using, the debuger shows Error #1069
(__AS3__.vec.Vector.flash.display::DisplayObject;).
Without the use of the localization, the application works correctly.
In the annex to letter attach pom and iml files of flex-modul
Thanks for the help
Alexandr.
P.S. Sorry for the partially machine translation :)
--
You received this message because you are subscribed to the Google
Groups Flex Mojos group.
To post to this group, send email to flex-...@googlegroups.comjavascript:
To unsubscribe from this group, send email to
flex-mojos+...@googlegroups.com javascript:
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/
--
You received this message because you are subscribed to the Google
Groups Flex Mojos group.
To post to this group, send email to flex-mojos@googlegroups.com
To unsubscribe from this group, send email to
flex-mojos+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/flex-mojos
http://flexmojos.sonatype.org/
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Unnamed - edu.sample:sample:pom:1.0
[INFO] Application business logic
[INFO] Sample client
[INFO] Sample web application
Downloading:
http://repository.sonatype.org/content/groups/flexgroup//com/tilab/jade/jade/4.1.1/jade-4.1.1.pom
[INFO] Unable to find resource 'com.tilab.jade:jade:pom:4.1.1' in repository
flex-mojos-plugin-repository
(http://repository.sonatype.org/content/groups/flexgroup/)
Downloading:
http://repository.sonatype.org/content/groups/flexgroup//com/tilab/jade/jade/4.1.1/jade-4.1.1.pom
[INFO] Unable to find resource 'com.tilab.jade:jade:pom:4.1.1' in repository
flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup/)
Downloading:
http://repo1.maven.org/maven2/com/tilab/jade/jade/4.1.1/jade-4.1.1.pom
[INFO] Unable to find resource 'com.tilab.jade:jade:pom:4.1.1' in repository
central (http://repo1.maven.org/maven2)
[INFO]
[INFO] Building Unnamed - edu.sample:sample:pom:1.0