Added auto detect of Hungurian language - thx Zoltan :)

git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@715 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
niksedk 2011-10-13 18:07:04 +00:00
parent 207cb3a791
commit bfc04f7a70

View File

@ -801,6 +801,10 @@ namespace Nikse.SubtitleEdit.Logic
if (count > bestCount)
return "zh"; // Chinese (simplified) - not tested...
count = GetCount(text, "hogy", "lesz", "tudom", "vagy", "mondtam", "még");
if (count > bestCount)
return "hu"; // Hungarian
return string.Empty;
}
@ -1007,6 +1011,12 @@ namespace Nikse.SubtitleEdit.Logic
if (count > bestCount)
languageName = shortName;
break;
case "hu_HU": // Hungarian
count = GetCount(text, "hogy", "lesz", "tudom", "vagy", "mondtam", "még");
if (count > bestCount)
languageName = shortName;
break;
default:
break;
}