diff --git a/project/src/system/Locale.mm b/project/src/system/Locale.mm index 84d9fc796..4e76c8cf7 100644 --- a/project/src/system/Locale.mm +++ b/project/src/system/Locale.mm @@ -16,7 +16,10 @@ namespace lime { NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; #endif - NSString* locale = [[NSLocale currentLocale] localeIdentifier]; + NSString* localeLanguage = [[NSLocale preferredLanguages] firstObject]; + NSString* localeRegion = [[NSLocale currentLocale] countryCode]; + NSString* locale = [[localeLanguage stringByAppendingString:@"_"] stringByAppendingString:localeRegion]; + std::string* result = 0; if (locale) {