Add fallback for unknown extended language tags.
This commit is contained in:
1 parent
93b4655294
commit
ea1fe8fac0
1 file changed
+4
@@ -583,6 +583,10 @@ static NSDictionary *_detailMonospacedAttr;
|
||||
popUpCell.popUpButton.menu = [_languagesMenu copy];
|
||||
}
|
||||
[popUpCell.popUpButton selectItemWithTitle:[MP42Languages.defaultManager localizedLangForExtendedTag:track.language]];
|
||||
if (popUpCell.popUpButton.indexOfSelectedItem == -1) {
|
||||
[popUpCell.popUpButton addItemWithTitle:track.language];
|
||||
[popUpCell.popUpButton selectItemWithTitle:track.language];
|
||||
}
|
||||
cell = popUpCell;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user