Does this sample works?
http://svn.sonatype.org/flexmojos/trunk/flexmojos-testing/flexmojos-test-harness/projects/concept/l10n-swc-swf/


VELO

On Tue, Jul 20, 2010 at 11:23 AM, Will Hoover <[email protected]>wrote:

> We have a resource bundle...
>
> ${basedir}/src/main/resources/locale/en_US/GlobalResourceBundle.properties
>
> ...in which we reference as...
>
> resourceManager.getString('GlobalResourceBundle', 'some.property');
>
> ...following the compiled localization for flexmojos 3.7.1 found at
> https://docs.sonatype.org/display/FLEXMOJOS/Application+Localization we
> have...
>
>        <build>
>                <sourceDirectory>src/main/flex</sourceDirectory>
>                <testSourceDirectory>src/test/flex</testSourceDirectory>
>                <resources>
>                        <resource>
>
> <directory>${basedir}/src/main/resources</directory>
>                        </resource>
>                        <resource>
>
> <directory>${project.build.directory}/generated-resources</directory>
>                        </resource>
>                </resources>
>                <plugins>
>                        <plugin>
>                                <groupId>org.sonatype.flexmojos</groupId>
>
> <artifactId>flexmojos-maven-plugin</artifactId>
>                                <configuration>
>                                        <sourcePaths>
>
> <sourcePath>${project.build.sourceDirectory}</sourcePath>
>                                        </sourcePaths>
>                                        <includeSources>
>
> <includeSource>${project.build.sourceDirectory}</includeSource>
>                                        </includeSources>
>
>
> <resourceBundlePath>${basedir}/src/main/resources/locale/{locale}</resourceB
> undlePath>
>                                        <compiledLocales>
>                                                <locale>en_US</locale>
>                                        </compiledLocales>
>                                </configuration>
>                        </plugin>
>                </plugins>
>        </build>
>
> ...but we get the following error:
>
> [ERROR] could not find source for resource bundle GlobalResourceBundle.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Flex Mojos" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<flex-mojos%[email protected]>
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to