mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
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:
parent
207cb3a791
commit
bfc04f7a70
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user