Commit b12a70fe authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

OSO: show language code if the OS doesn't know what the language is called

parent ca056a10
......@@ -155,7 +155,8 @@
} else {
NSString *selectedLocale = [[NSUserDefaults standardUserDefaults] objectForKey:kVLCSettingLastUsedSubtitlesSearchLanguage];
cell.textLabel.text = NSLocalizedString(@"LANGUAGE", nil);
cell.detailTextLabel.text = [[selectedLocale twoLetterLanguageKeyForThreeLetterCode] localizedLanguageNameForTwoLetterCode];
NSString *detail = [[selectedLocale twoLetterLanguageKeyForThreeLetterCode] localizedLanguageNameForTwoLetterCode];
cell.detailTextLabel.text = detail ? detail : selectedLocale;
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment