Try auto-init again
This commit is contained in:
@@ -18,14 +18,11 @@ abstract Locale(String) from String to String {
|
|||||||
public var region (get, never):String;
|
public var region (get, never):String;
|
||||||
|
|
||||||
|
|
||||||
|
private static function __init__ ():Void { __init (); }
|
||||||
private static function __init ():Void {
|
private static function __init ():Void {
|
||||||
|
|
||||||
trace ("1");
|
|
||||||
|
|
||||||
var locale = null;
|
var locale = null;
|
||||||
|
|
||||||
trace ("2");
|
|
||||||
|
|
||||||
#if flash
|
#if flash
|
||||||
locale = Capabilities.language;
|
locale = Capabilities.language;
|
||||||
#elseif (js && html5)
|
#elseif (js && html5)
|
||||||
@@ -35,8 +32,6 @@ abstract Locale(String) from String to String {
|
|||||||
locale = lime_locale_get_system_locale ();
|
locale = lime_locale_get_system_locale ();
|
||||||
#end
|
#end
|
||||||
|
|
||||||
trace ("3");
|
|
||||||
|
|
||||||
if (locale != null) {
|
if (locale != null) {
|
||||||
|
|
||||||
systemLocale = locale;
|
systemLocale = locale;
|
||||||
@@ -47,12 +42,8 @@ abstract Locale(String) from String to String {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
trace ("4");
|
|
||||||
|
|
||||||
currentLocale = systemLocale;
|
currentLocale = systemLocale;
|
||||||
|
|
||||||
trace ("5");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user