Skip navigation
Currently Being Moderated

Localization Bundles headache

Mar 20, 2010 8:07 AM

Hi you guys,

I'm sure this question might have been answered already, but I have been sitting with this around the clock for three days straight, and I believe that my head will explode if I don't take a break from it for some time.

 

My issue is that I'm trying to compile properties files into my Flex application, and the bundles just don't seem to get there.

 

I'm using:

* Eclipse 3.4.2

* Flex Builder Beta 2 Version 4.0 Build (253292)

 

I have added the locale path to the source path tab like so (the locale folder is placed in my src folder not in the project root):

src\locale\{locale}

 

I added the following command-line arguments (where application is the name of my .properties files).

 

-locale=en_US,sv_SE -allow-source-path-overlap=true -include-resource-bundles=application

 

Still when I try to access the bundle it returns null. I might be blind, but I just can't figure out what I am doing wrong.

 

Any help, pointers, or tips would result in my life long appreciation. =)

 

Thanks in advance!

 
Replies
  • Currently Being Moderated
    Mar 20, 2010 12:08 PM   in reply to roger_swe08bro

    Use the mxmlc -keep option and check out the xxx_SystemManager-generated.as

    to see if the compiler saw the bundle.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2010 9:43 PM   in reply to roger_swe08bro

    That sounds like a class with the Re: Localization Bundles headache metadata for that bundle

    is not being linked into the SWF.  Try getting a link-report.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 20, 2010 9:52 PM   in reply to roger_swe08bro

    Link report is yet another mxmlc option.  -link-report="somefilename".  The

    output is XML listing every class used in the SWF.  If none of those classes

    contain Re: Localization Bundles headache metadata then your resource bundles aren't going to

    get picked up.  If you search our source code for Re: Localization Bundles headache you can

    see how we use it.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points