mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 19:23:50 +00:00
Merge pull request #1930 from mrcarlberg/cplocal_cant_handle_unknown_country_codes
Fixed: CPLocal can't handle unknown language codes
This commit is contained in:
commit
2a9f3deb0e
1 file changed
+1
-1
@@ -101,7 +101,7 @@ var sharedSystemLocale = nil,
|
||||
|
||||
language = [CPString stringWithFormat:@"%s_%s", [language lowercaseString], [language uppercaseString]];
|
||||
|
||||
if ([availableLocaleIdentifiers indexOfObject:language])
|
||||
if ([availableLocaleIdentifiers indexOfObject:language] !== CPNotFound)
|
||||
localeIdentifier = language;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user