Skip navigation
Piotr Wierzgała
Currently Being Moderated

localization

Jul 2, 2011 6:28 AM

Hi,

 

I'm writting a Flex-PHP application where PHP passes locale string (e.g. fr_FR) to Flex using flashvars. The problem is that I don't know for how many languages my app will be localized. If I pass to Flex locale string which was not specified in compiler options I get error:

 

ReferenceError: Error #1069: Property -1 not found on __AS3__.vec.Vector.<flash.display::DisplayObject> and there is no default value.

 

Could anyone tell me why I need to copy locale (in {SDK_folder/frameworks/locale}) and have all locales specified at compilation stage?

Is there any way to add localisations dynamically? And I don't mean specyfing localisation strings by that (I already managed to do that).

 
Replies
  • Currently Being Moderated
    Jul 3, 2011 3:09 AM   in reply to Piotr Wierzgała

    Hi,

          You doesn't need to specify all the locales in compilation. But the thing is you need to have all the locale files which ever you specify should be there in

    {SDK_folder/frameworks/locale}. Because whenever you specify a locale it will look in to this folder {SDK_folder/frameworks/locale} whether the locale specifed is supported by flex or not. If it is not there it will throw error. Thats why you are getting the error.

     

    Regards,

    Jayagopal.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 8, 2011 11:17 AM   in reply to Piotr Wierzgała

    Hi,

        In this resourceMagager.localeChain = ["xx_XX"] you are trying to give some language right. So if you are specifying a language it should be supported by flex. Means the swc files required for localization of that language should be there in {SDK_folder/frameworks/locale} then only it will localize that language. Otherwise it will throw an error. Thats what i said in last reply itself.

     

     

    Regards,

    Jayagopal.

     
    |
    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