Use char replace instead of string's

This commit is contained in:
ivandrofly 2015-02-17 20:12:16 +00:00
parent 4d4b594944
commit 0f43b93796

View File

@ -43,10 +43,9 @@ namespace Nikse.SubtitleEdit.Forms
{
return;
}
try
{
var ci = new CultureInfo(languageString.Replace("_", "-"));
var ci = new CultureInfo(languageString.Replace('_', '-'));
_threeLetterIsoLanguageName = ci.ThreeLetterISOLanguageName;
}
catch (CultureNotFoundException exception)