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> > >> <finalName>sample</finalName> > >> <sourceDirectory>src/main/flex</sourceDirectory> > >> <pluginManagement> > >> <plugins> > >> <plugin> > >> <groupId>org.sonatype.flexmojos</groupId> > >> <artifactId>flexmojos-maven-plugin</artifactId> > >> <version>${flexmojos.version}</version> > >> <extensions>true</extensions> > >> <configuration> > >> > >> <allowSourcePathOverlap>true</allowSourcePathOverlap> > >> <runtimeLocales> > >> <locale>en_US</locale> > >> <locale>ru_RU</locale> > >> </runtimeLocales> > >> > >> <resourceBundlePath>src/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.version>4.1.0.16248</flex.framework.version> > >> <flexmojos.version>3.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.com<javascript:> > > 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 [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] [site:attach-descriptor {execution: default-attach-descriptor}] [INFO] [install:install {execution: default-install}] [INFO] Installing C:\DEV\AppVers\sampleWithInt_0007\pom.xml to C:\Users\5454\.m2\repository\edu\sample\sample\1.0\sample-1.0.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Application business logic [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory C:\DEV\AppVers\sampleWithInt_0007\java\target [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 0 resource [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 25 source files to C:\DEV\AppVers\sampleWithInt_0007\java\target\classes [INFO] [resources:testResources {execution: default-testResources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\DEV\AppVers\sampleWithInt_0007\java\src\test\resources [INFO] [compiler:testCompile {execution: default-testCompile}] [INFO] No sources to compile [INFO] [surefire:test {execution: default-test}] [INFO] No tests to run. [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: C:\DEV\AppVers\sampleWithInt_0007\java\target\sample.jar [INFO] [install:install {execution: default-install}] [INFO] Installing C:\DEV\AppVers\sampleWithInt_0007\java\target\sample.jar to C:\Users\5454\.m2\repository\edu\sample\biz-logic\1.0\biz-logic-1.0.jar [INFO] ------------------------------------------------------------------------ [INFO] Building Sample client [INFO] task-segment: [clean, install] [INFO] ------------------------------------------------------------------------ [INFO] [clean:clean {execution: default-clean}] [INFO] Deleting directory C:\DEV\AppVers\sampleWithInt_0007\flex\target [INFO] [flexmojos:generate {execution: default}] [INFO] Flexmojos 3.8 [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] flexmojos 3.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file [INFO] Instantiating custom EntityFactory class: [org.granite.generator.as3.BVEntityFactory] [INFO] Calling the generator for each Java class. [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mDisciplineBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mDiscipline.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\CtrTransformCacheBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\CtrTransformCache.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mCiclBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mCicl.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mSemestrBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mSemestr.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mControlFormBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mControlForm.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mLogsBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mLogs.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mBorderBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mBorder.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\services\IUserServiceBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\services\IUserService.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mBlockBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mBlock.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mAlgResBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mAlgRes.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mCurriculumBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mCurriculum.as - output file already exists and must not be overwritten [INFO] Generating: C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources\edu\samples\sample\domain\mDirectionBase.as [INFO] Skipping: C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex\edu\samples\sample\domain\mDirection.as - output file already exists and must not be overwritten [INFO] Files affected: 12. [INFO] [resources:resources {execution: default-resources}] [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory C:\DEV\AppVers\sampleWithInt_0007\flex\src\main\resources [INFO] [flexmojos:compile-swf {execution: default-compile-swf}] [INFO] Flexmojos 3.8 [INFO] Apache License - Version 2.0 (NO WARRANTY) - See COPYRIGHT file [INFO] Flex compiler configurations: -compiler.external-library-path C:\Users\5454\.m2\repository\com\adobe\flex\framework\playerglobal\4.1.0.16248\10.0\playerglobal.swc -compiler.include-libraries C:\Users\5454\.m2\repository\org\graniteds\granite-essentials-swc\2.2.0.SP1\granite-essentials-swc-2.2.0.SP1.swc -compiler.library-path C:\Users\5454\.m2\repository\com\adobe\flex\framework\datavisualization\4.1.0.16248\datavisualization-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\flash-integration\4.1.0.16248\flash-integration-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\flex\4.1.0.16248\flex-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\framework\4.1.0.16248\framework-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\osmf\4.1.0.16248\osmf-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\rpc\4.1.0.16248\rpc-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\spark\4.1.0.16248\spark-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\sparkskins\4.1.0.16248\sparkskins-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\textLayout\4.1.0.16248\textLayout-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\utilities\4.1.0.16248\utilities-4.1.0.16248.swc C:\Users\5454\.m2\repository\org\graniteds\granite-swc\2.2.0.SP1\granite-swc-2.2.0.SP1.swc -compiler.theme C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\configs\themes\Spark\spark.css -compiler.accessible=false -compiler.allow-source-path-overlap=true -compiler.as3=true -compiler.debug=true -compiler.es=false -compiler.fonts.managers flash.fonts.JREFontManager flash.fonts.BatikFontManager flash.fonts.AFEFontManager flash.fonts.CFFFontManager -compiler.fonts.local-fonts-snapshot C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\fonts.ser -compiler.keep-as3-metadata Bindable Managed ChangeEvent NonCommittingChangeEvent Transient Id Version Name In Out Inject Produces PostConstruct Destroy Observer ManagedEvent -compiler.keep-generated-actionscript=false -licenses.license flashbuilder45 952300137860639118717427 -licenses.license flexbuilder4.displayedStartPageAtLeastOneTime true -compiler.locale= -compiler.optimize=true -compiler.source-path C:\DEV\AppVers\sampleWithInt_0007\flex\src\main\flex C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources -compiler.strict=true -use-network=true -compiler.verbose-stacktraces=false -compiler.context-root /sample -compiler.actionscript-file-encoding UTF-8 -target-player 10.0.0 -default-background-color 8821927 -default-frame-rate 24 -default-script-limits 1000 60 -default-size 500 375 -compiler.headless-server=false -compiler.keep-all-type-selectors=false -compiler.use-resource-bundle-metadata=true -metadata.date Tue Oct 30 13:57:40 KRAT 2012 -metadata.localized-title Sample client x-default -include-resource-bundles mainGUI -verify-digests=true -compiler.namespaces.namespace+=http://ns.adobe.com/mxml/2009,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\mxml-2009-manifest.xml -compiler.namespaces.namespace+=library://ns.adobe.com/flex/spark,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\spark-manifest.xml -compiler.namespaces.namespace+=library://ns.adobe.com/flex/mx,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\mx-manifest.xml -compiler.namespaces.namespace+=http://www.adobe.com/2006/mxml,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\mxml-manifest.xml -static-link-runtime-shared-libraries=false -load-config= -metadata.language+=en_US -metadata.language+=ru_RU [Some warning..] [INFO] Compiling resources bundles! [INFO] Installing resource bundle beacon: C:\Users\5454\AppData\Local\Temp\sample4748460952606747925.rb.swc [INFO] Generating resource bundle for locale: en_US [INFO] Flex compiler configurations: -compiler.external-library-path C:\Users\5454\.m2\repository\com\adobe\flex\framework\playerglobal\4.1.0.16248\10.0\playerglobal.swc C:\Users\5454\.m2\repository\org\graniteds\granite-essentials-swc\2.2.0.SP1\granite-essentials-swc-2.2.0.SP1.swc -compiler.library-path C:\Users\5454\.m2\repository\com\adobe\flex\framework\datavisualization\4.1.0.16248\datavisualization-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\flash-integration\4.1.0.16248\flash-integration-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\flex\4.1.0.16248\flex-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\framework\4.1.0.16248\framework-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\osmf\4.1.0.16248\osmf-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\rpc\4.1.0.16248\rpc-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\spark\4.1.0.16248\spark-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\sparkskins\4.1.0.16248\sparkskins-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\textLayout\4.1.0.16248\textLayout-4.1.0.16248.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\utilities\4.1.0.16248\utilities-4.1.0.16248.swc C:\Users\5454\.m2\repository\org\graniteds\granite-swc\2.2.0.SP1\granite-swc-2.2.0.SP1.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\datavisualization\4.1.0.16248\datavisualization-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\framework\4.1.0.16248\framework-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\osmf\4.1.0.16248\osmf-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\rpc\4.1.0.16248\rpc-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\spark\4.1.0.16248\spark-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\textLayout\4.1.0.16248\textLayout-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\flash-integration\4.1.0.16248\flash-integration-4.1.0.16248-en_US.rb.swc C:\Users\5454\.m2\repository\com\adobe\flex\framework\playerglobal\4.1.0.16248\playerglobal-4.1.0.16248-en_US.rb.swc -compiler.theme C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\configs\themes\Spark\spark.css -compiler.accessible=false -compiler.allow-source-path-overlap=true -compiler.as3=true -compiler.debug=true -compiler.es=false -compiler.fonts.managers flash.fonts.JREFontManager flash.fonts.BatikFontManager flash.fonts.AFEFontManager flash.fonts.CFFFontManager -compiler.fonts.local-fonts-snapshot C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\fonts.ser -compiler.keep-as3-metadata Bindable Managed ChangeEvent NonCommittingChangeEvent Transient Id Version Name In Out Inject Produces PostConstruct Destroy Observer ManagedEvent -compiler.keep-generated-actionscript=false -licenses.license flashbuilder45 952300137860639118717427 -licenses.license flexbuilder4.displayedStartPageAtLeastOneTime true -compiler.locale en_US -compiler.optimize=true -compiler.source-path C:\DEV\AppVers\sampleWithInt_0007\flex\src\main\flex C:\DEV\AppVers\sampleWithInt_0007\flex\target\..\src\main\flex C:\DEV\AppVers\sampleWithInt_0007\flex\target\generated-sources -compiler.strict=true -use-network=true -compiler.verbose-stacktraces=false -compiler.context-root /sample -compiler.actionscript-file-encoding UTF-8 -target-player 10.0.0 -default-background-color 8821927 -default-frame-rate 24 -default-script-limits 1000 60 -default-size 500 375 -compiler.headless-server=false -compiler.keep-all-type-selectors=false -compiler.use-resource-bundle-metadata=true -metadata.date Tue Oct 30 13:57:40 KRAT 2012 -metadata.localized-title Sample client x-default -include-resource-bundles collections components containers controls core effects layout logging mainGUI messaging rpc skins sparkEffects styles textLayout -verify-digests=true -compiler.namespaces.namespace+=http://ns.adobe.com/mxml/2009,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\mxml-2009-manifest.xml -compiler.namespaces.namespace+=library://ns.adobe.com/flex/spark,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\spark-manifest.xml -compiler.namespaces.namespace+=library://ns.adobe.com/flex/mx,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\mx-manifest.xml -compiler.namespaces.namespace+=http://www.adobe.com/2006/mxml,C:\DEV\AppVers\sampleWithInt_0007\flex\target\classes\config-4.1.0.16248\mxml-manifest.xml -static-link-runtime-shared-libraries=false -load-config= -metadata.language+=en_US -metadata.language+=ru_RU [INFO] The purpose of compiling is different from C: \ Users \ 5454 \ AppData \ Local \ Temp \ Flex2_2608827741250272695. Re-use of the cache file is not possible. [ERROR] Unable to resolve resource bundle "mainGUI" for locale стандарта "en_US". [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error compiling! [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 23 seconds [INFO] Finished at: Tue Oct 30 13:57:48 KRAT 2012 [INFO] Final Memory: 55M/612M [INFO] ------------------------------------------------------------------------