]> git.saurik.com Git - cydia.git/commitdiff
Make an executive decision to not support regions.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 15 Feb 2017 22:09:30 +0000 (14:09 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 15 Feb 2017 22:09:30 +0000 (14:09 -0800)
MobileCydia.mm

index 470337418681ce9741715fbf1680918805c21ccb..a10181d23d7968584d23814910f7ea9ec16e3f5a 100644 (file)
@@ -10273,7 +10273,11 @@ int main(int argc, char *argv[]) {
         }
 
     if (Languages_ != nil)
-        for (NSString *language : Languages_) {
+        for (NSString *locale : Languages_) {
+            auto components([NSLocale componentsFromLocaleIdentifier:locale]);
+            NSString *language([components objectForKey:(id)kCFLocaleLanguageCode]);
+            if (NSString *script = [components objectForKey:(id)kCFLocaleScriptCode])
+                language = [NSString stringWithFormat:@"%@-%@", language, script];
             languages += [language UTF8String];
             languages += ",";
         }