Comments inline

On Mon, Jan 26, 2009 at 9:09 PM, Sam <[email protected]> wrote:

> 1. The <sourceDirectory> tag only includes "src/main/flex". Wouldn't I
> need to specify "src/main/locales" somewhere since it is not under
> "src/main/flex"? Otherwise, how would the plugin know where to find
> it? I have tried to add
>
> <resourceBundlePath>
> <path>${basedir}/src/main/locales/{locale}</path>
> </resourceBundlePath>
>
> inside <configuration> but that caused an error.



Resouce bundle path is unique.  So:
<resourceBundlePath>${basedir}/src/main/locales/{locale}</resourceBundlePath>

But that is the default value, so no need to declare it.  resouceBundlePath
is included on sourcePaths list if mergeResourceBundle == true.


> 2. I know people who have used flex-compiler-mojo to build a SWF file
> successfully which contains both application files as well as
> localization files, has anyone built a SWC file with success?
>

I did when I was building a sample, but I didn't kept it.


> 3. Where would the localization file
> "CommonComponentsResources.properties" be in the SWC, if the build had
> worked?
>
Your SWC\locale\en_US\CommonComponentsResources.properties


> 4. If I have one "CommonComponentsResources.properties" file for
> en_US, and one with the same name (different content, of course) for
> jp_JP, how would the resource manager know which is which, since the
> names of the two files are the same?
>

They go to different folder on SWC
Your SWC\locale\*en_US*\CommonComponentsResources.properties
Your SWC\locale\*ja_JP*\CommonComponentsResources.properties

Can you try download this project:
http://svn.sonatype.org/flexmojos/branches/flex-mojos-2.0.x/test-harness/projects/concept/l10n-swc-swf/lib/
change versions to 2.0.3
then change runtimeLocales to compiledLocales

Should work, if not, I need to check why.


VELO

--~--~---------~--~----~------------~-------~--~----~
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?hl=en?hl=en

http://blog.flex-mojos.info/
-~----------~----~----~----~------~----~------~--~---

Reply via email to