English as locale fallback

This commit is contained in:
Pedro Beschorner Marin 2015-03-26 14:45:21 -03:00
parent 6431d6f4d1
commit 8dac9240bd

View File

@ -33,6 +33,7 @@
private static var robotlegsContext:IContext;
private static var DEFAULT_LOCALE:String = "en_US";
private var language:String;
protected function preinitializeHandler(event:FlexEvent):void
@ -47,7 +48,7 @@
language = ExternalInterface.call("getLanguage");
if (resourceManager.getLocales().indexOf(language) != -1)
{
resourceManager.localeChain = [language];
resourceManager.localeChain = [language, DEFAULT_LOCALE];
}
}