Fix incomplete function name from 74fa556.

This commit is contained in:
John Ralls
2016-06-28 15:27:01 -07:00
parent 6fe4b8ff8e
commit 77988a72f5

View File

@@ -275,7 +275,7 @@ mac_set_languages(NSArray* languages, NSString *lang_str)
new_languages = [new_languages arrayByAddingObject: this_lang];
/* If it's an English language, add the "C" locale after it so that
* any messages can default to it */
if (!NSEqualRanges([this_lang String: @"en"], not_found))
if (!NSEqualRanges([this_lang rangeOfString: @"en"], not_found))
new_languages = [new_languages arrayByAddingObject: @"C"];
if (![new_languages containsObject: lang_str]) {
NSArray *temp_array = [NSArray arrayWithObject: lang_str];