3 Replies Latest reply on Nov 19, 2010 7:28 AM by bart.t.

    Flex 4 project not picking up localized files

    bart.t.

      Project structure:

       

      - bin

      - lib

      - src

      --- assets

      --- com/...

      --- locale

      ------ nl_BE

      --------- login.properties

      --------- ....

       

      I've added the following lines to the compiler arguments:

       

      -keep-as3-metadata+=Autowired,RouteMVCEvents,Command
      -locale=nl_BE
      -source-path+=src\locale\{locale}
      -allow-source-path-overlap=true
      -services lib\services-config.xml 
      -context-root epa
      

       

      Localized strings are accessed like this:

       

      <mx:FormItem id="loginPasswordItem" label="{resourceManager.getString('login', 'LABEL_PWD')}" percentWidth="100">
                          <mx:TextInput id="loginPassword" name="loginPassword" displayAsPassword="true" percentWidth="100" enter="triggerSubmit()" />
      </mx:FormItem>
      

       

      When I load my application, none of the localized strings are shown.

       

      Could anyone show me where my problem is?

       

      PS: I use Flash Builder as IDE.

       

      PPS: I also did the copylocale-stuff to create the nl_BE folder in my Flex4 directory