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 Александр Погребников <sania2...@gmail.com>: > 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-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/ -- 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/