mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Fix for neutral cultures (Forms/ChooseLanguage)
This commit is contained in:
parent
e6eb4b7214
commit
6b97059ac2
@ -74,12 +74,10 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
try
|
||||
{
|
||||
if (cultureName.Equals("zh-CHS", StringComparison.OrdinalIgnoreCase))
|
||||
comboBoxLanguages.Items.Add(new CultureListItem(new CultureInfo(0x0004))); // zh-Hans
|
||||
else if (cultureName.Equals("zh-tw", StringComparison.OrdinalIgnoreCase))
|
||||
comboBoxLanguages.Items.Add(new CultureListItem(new CultureInfo(0x7C04))); // zh-Hant
|
||||
else
|
||||
comboBoxLanguages.Items.Add(new CultureListItem(CultureInfo.CreateSpecificCulture(cultureName)));
|
||||
var ci = CultureInfo.CreateSpecificCulture(cultureName);
|
||||
if (!ci.Name.Equals(cultureName, StringComparison.OrdinalIgnoreCase))
|
||||
ci = CultureInfo.GetCultureInfo(cultureName);
|
||||
comboBoxLanguages.Items.Add(new CultureListItem(ci));
|
||||
}
|
||||
catch (ArgumentException)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user