mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 06:52:35 +01:00
commit
fdd5aa3cf3
@ -501,6 +501,21 @@ tr.tsk_ResetSettings=Reset Subtitle Edit's settings
|
|||||||
tr.types_custom=Custom installation
|
tr.types_custom=Custom installation
|
||||||
tr.types_default=Default installation
|
tr.types_default=Default installation
|
||||||
|
|
||||||
|
; Ukrainian
|
||||||
|
uk.comp_translations=Файли локалізації
|
||||||
|
uk.msg_AskToDownNET=Subtitle Edit потребує для своєї роботи .NET Framework 4.0. Будь ласка, звантажте та встановіть .NET Framework і запустіть інсталяцію ще раз.%n%nБажаєте звантажити .NET Framework 4.0 зараз?
|
||||||
|
uk.msg_DeleteSettings=Бажаєте також видалити налаштування Subtitle Edit та будь-які зміни, які ви зробили у словниках?%n%nЯкщо ви плануєте перевстановлювати Subtitle Edit, вам не потрібно їх видаляти.
|
||||||
|
uk.msg_OptimizingPerformance=Оптимізація швидкодії...
|
||||||
|
uk.run_VisitWebsite=Відвідати веб-сторінку Subtitle Edit
|
||||||
|
uk.sm_com_Changelog=Журнал версій Subtitle Edit
|
||||||
|
uk.tsk_AllUsers=Для усіх користувачів
|
||||||
|
uk.tsk_CurrentUser=Тільки для поточного користувача
|
||||||
|
uk.tsk_Other=Інше:
|
||||||
|
uk.tsk_ResetDictionaries=Скинути словники та видалити усі користувацькі імена
|
||||||
|
uk.tsk_ResetSettings=Скинути налаштування Subtitle Edit
|
||||||
|
uk.types_custom=Налаштовуване встановлення
|
||||||
|
uk.types_default=Типове встановлення
|
||||||
|
|
||||||
; Vietnamese
|
; Vietnamese
|
||||||
vi.comp_translations=Translations
|
vi.comp_translations=Translations
|
||||||
vi.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
|
vi.msg_AskToDownNET=Subtitle Edit requires the .NET Framework 4.0. Please download and install the .NET Framework and run setup again.%n%nDo you want to download the .NET Framework 4.0 now?
|
||||||
|
@ -104,48 +104,47 @@ DisableProgramGroupPage=auto
|
|||||||
CloseApplications=true
|
CloseApplications=true
|
||||||
SetupMutex='subtitle_edit_setup_mutex'
|
SetupMutex='subtitle_edit_setup_mutex'
|
||||||
|
|
||||||
|
|
||||||
[Languages]
|
[Languages]
|
||||||
Name: en; MessagesFile: compiler:Default.isl
|
Name: "en"; MessagesFile: "compiler:Default.isl"
|
||||||
#ifdef localize
|
#ifdef localize
|
||||||
Name: ar; MessagesFile: Languages\Arabic.isl
|
Name: "ar"; MessagesFile: "Languages\Arabic.isl"
|
||||||
Name: bg; MessagesFile: Languages\Bulgarian.isl
|
Name: "bg"; MessagesFile: "Languages\Bulgarian.isl"
|
||||||
Name: ca; MessagesFile: compiler:Languages\Catalan.isl
|
Name: "ca"; MessagesFile: "compiler:Languages\Catalan.isl"
|
||||||
Name: cs; MessagesFile: compiler:Languages\Czech.isl
|
Name: "cs"; MessagesFile: "compiler:Languages\Czech.isl"
|
||||||
Name: da; MessagesFile: compiler:Languages\Danish.isl
|
Name: "da"; MessagesFile: "compiler:Languages\Danish.isl"
|
||||||
Name: de; MessagesFile: compiler:Languages\German.isl
|
Name: "de"; MessagesFile: "compiler:Languages\German.isl"
|
||||||
Name: el; MessagesFile: compiler:Languages\Greek.isl
|
Name: "el"; MessagesFile: "compiler:Languages\Greek.isl"
|
||||||
Name: es; MessagesFile: compiler:Languages\Spanish.isl
|
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
Name: eu; MessagesFile: Languages\Basque.isl
|
Name: "eu"; MessagesFile: "Languages\Basque.isl"
|
||||||
Name: fa; MessagesFile: Languages\Farsi.isl
|
Name: "fa"; MessagesFile: "Languages\Farsi.isl"
|
||||||
Name: fi; MessagesFile: compiler:Languages\Finnish.isl
|
Name: "fi"; MessagesFile: "compiler:Languages\Finnish.isl"
|
||||||
Name: fr; MessagesFile: compiler:Languages\French.isl
|
Name: "fr"; MessagesFile: "compiler:Languages\French.isl"
|
||||||
Name: hr; MessagesFile: Languages\Croatian.isl
|
Name: "hr"; MessagesFile: "Languages\Croatian.isl"
|
||||||
Name: hu; MessagesFile: compiler:Languages\Hungarian.isl
|
Name: "hu"; MessagesFile: "compiler:Languages\Hungarian.isl"
|
||||||
Name: it; MessagesFile: compiler:Languages\Italian.isl
|
Name: "it"; MessagesFile: "compiler:Languages\Italian.isl"
|
||||||
Name: ja; MessagesFile: compiler:Languages\Japanese.isl
|
Name: "ja"; MessagesFile: "compiler:Languages\Japanese.isl"
|
||||||
Name: ko; MessagesFile: Languages\Korean.isl
|
Name: "ko"; MessagesFile: "Languages\Korean.isl"
|
||||||
Name: nl; MessagesFile: compiler:Languages\Dutch.isl
|
Name: "nl"; MessagesFile: "compiler:Languages\Dutch.isl"
|
||||||
Name: pl; MessagesFile: compiler:Languages\Polish.isl
|
Name: "pl"; MessagesFile: "compiler:Languages\Polish.isl"
|
||||||
Name: pt; MessagesFile: compiler:Languages\Portuguese.isl
|
Name: "pt"; MessagesFile: "compiler:Languages\Portuguese.isl"
|
||||||
Name: ptBR; MessagesFile: compiler:Languages\BrazilianPortuguese.isl
|
Name: "ptBR"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
||||||
Name: ro; MessagesFile: Languages\Romanian.isl
|
Name: "ro"; MessagesFile: "Languages\Romanian.isl"
|
||||||
Name: ru; MessagesFile: compiler:Languages\Russian.isl
|
Name: "ru"; MessagesFile: "compiler:Languages\Russian.isl"
|
||||||
Name: sl; MessagesFile: compiler:Languages\Slovenian.isl
|
Name: "sl"; MessagesFile: "compiler:Languages\Slovenian.isl"
|
||||||
Name: srC; MessagesFile: compiler:Languages\SerbianCyrillic.isl
|
Name: "srC"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
|
||||||
Name: srL; MessagesFile: compiler:Languages\SerbianLatin.isl
|
Name: "srL"; MessagesFile: "compiler:Languages\SerbianLatin.isl"
|
||||||
Name: sv; MessagesFile: Languages\Swedish.isl
|
Name: "sv"; MessagesFile: "Languages\Swedish.isl"
|
||||||
Name: th; MessagesFile: Languages\Thai.isl
|
Name: "th"; MessagesFile: "Languages\Thai.isl"
|
||||||
Name: tr; MessagesFile: compiler:Languages\Turkish.isl
|
Name: "tr"; MessagesFile: "compiler:Languages\Turkish.isl"
|
||||||
Name: vi; MessagesFile: Languages\Vietnamese.isl
|
Name: "uk"; MessagesFile: "compiler:Languages\Ukrainian.isl"
|
||||||
Name: zh; MessagesFile: Languages\ChineseSimplified.isl
|
Name: "vi"; MessagesFile: "Languages\Vietnamese.isl"
|
||||||
Name: zhTW; MessagesFile: Languages\ChineseTraditional.isl
|
Name: "zh"; MessagesFile: "Languages\ChineseSimplified.isl"
|
||||||
|
Name: "zhTW"; MessagesFile: "Languages\ChineseTraditional.isl"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
; Include the installer's custom messages
|
; Include the installer's custom messages
|
||||||
#include "Custom_Messages.iss"
|
#include "Custom_Messages.iss"
|
||||||
|
|
||||||
|
|
||||||
[Messages]
|
[Messages]
|
||||||
BeveledLabel=Subtitle Edit {#app_ver} by Nikse
|
BeveledLabel=Subtitle Edit {#app_ver} by Nikse
|
||||||
SetupAppTitle=Setup - Subtitle Edit
|
SetupAppTitle=Setup - Subtitle Edit
|
||||||
@ -440,6 +439,8 @@ begin
|
|||||||
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.dic'), False, True, False);
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.dic'), False, True, False);
|
||||||
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.aff'), False, True, False);
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.aff'), False, True, False);
|
||||||
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries'));
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries'));
|
||||||
|
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Plugins\*.*'), False, True, False);
|
||||||
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Plugins'));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -502,6 +503,7 @@ begin
|
|||||||
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\VobSub\English'));
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\VobSub\English'));
|
||||||
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\VobSub'));
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\VobSub'));
|
||||||
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\WaveForms'));
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\WaveForms'));
|
||||||
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit\Plugins'));
|
||||||
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit'));
|
RemoveDir(ExpandConstant('{userappdata}\Subtitle Edit'));
|
||||||
|
|
||||||
end;
|
end;
|
||||||
|
1
src/Forms/DurationsBridgeGaps.Designer.cs
generated
1
src/Forms/DurationsBridgeGaps.Designer.cs
generated
@ -234,6 +234,7 @@
|
|||||||
this.ShowInTaskbar = false;
|
this.ShowInTaskbar = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "DurationsBridgeGaps";
|
this.Text = "DurationsBridgeGaps";
|
||||||
|
this.Shown += new System.EventHandler(this.DurationsBridgeGaps_Shown);
|
||||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DurationsBridgeGaps_KeyDown);
|
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DurationsBridgeGaps_KeyDown);
|
||||||
this.groupBoxLinesFound.ResumeLayout(false);
|
this.groupBoxLinesFound.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxMs)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMaxMs)).EndInit();
|
||||||
|
@ -168,5 +168,10 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
DialogResult = DialogResult.Cancel;
|
DialogResult = DialogResult.Cancel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void DurationsBridgeGaps_Shown(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
SubtitleListview1.Focus();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
2118
src/Languages/uk-UA.xml
Normal file
2118
src/Languages/uk-UA.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -195,10 +195,9 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
|||||||
{
|
{
|
||||||
using (var fs = new FileStream(fileName, FileMode.Create, FileAccess.Write))
|
using (var fs = new FileStream(fileName, FileMode.Create, FileAccess.Write))
|
||||||
{
|
{
|
||||||
|
int russianCount = 0;
|
||||||
foreach (Paragraph p in subtitle.Paragraphs)
|
foreach (Paragraph p in subtitle.Paragraphs)
|
||||||
{
|
{
|
||||||
int russianCount = 0;
|
|
||||||
|
|
||||||
if (p.Text.Contains(new[] { '的', '是', '啊', '吧', '好', '吧', '亲', '爱', '的', '早', '上' }))
|
if (p.Text.Contains(new[] { '的', '是', '啊', '吧', '好', '吧', '亲', '爱', '的', '早', '上' }))
|
||||||
{
|
{
|
||||||
_languageIdLine1 = LanguageIdChineseSimplified;
|
_languageIdLine1 = LanguageIdChineseSimplified;
|
||||||
|
@ -1189,11 +1189,22 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
public static readonly string[] AutoDetectWordsRomanian = { "Какво", "тук", "може", "Как", "Ваше", "какво" };
|
public static readonly string[] AutoDetectWordsRomanian = { "Какво", "тук", "може", "Как", "Ваше", "какво" };
|
||||||
public static readonly string[] AutoDetectWordsArabic = { "Какво", "тук", "може", "Как", "Ваше", "какво" };
|
public static readonly string[] AutoDetectWordsArabic = { "Какво", "тук", "може", "Как", "Ваше", "какво" };
|
||||||
public static readonly string[] AutoDetectWordsHebrew = { "אתה", "אולי", "הוא", "בסדר", "יודע", "טוב" };
|
public static readonly string[] AutoDetectWordsHebrew = { "אתה", "אולי", "הוא", "בסדר", "יודע", "טוב" };
|
||||||
public static readonly string[] AutoDetectWordsSerbian = { "sam", "što", "öto", "äto", "ovo", "vas", "nije", "Šta", "ovde", "za" };
|
|
||||||
public static readonly string[] AutoDetectWordsVietnamese = { "không", "tôi", "anh", "đó", "Tôi", "ông" };
|
public static readonly string[] AutoDetectWordsVietnamese = { "không", "tôi", "anh", "đó", "Tôi", "ông" };
|
||||||
public static readonly string[] AutoDetectWordsHungarian = { "hogy", "lesz", "tudom", "vagy", "mondtam", "még" };
|
public static readonly string[] AutoDetectWordsHungarian = { "hogy", "lesz", "tudom", "vagy", "mondtam", "még" };
|
||||||
public static readonly string[] AutoDetectWordsCroatian = { "sam", "öto", "äto", "ovo", "vas", "što" };
|
|
||||||
public static readonly string[] AutoDetectWordsTurkish = { "için", "Tamam", "Hayır", "benim", "daha", "deðil", "önce", "lazým", "benim", "çalýþýyor", "burada", "efendim" };
|
public static readonly string[] AutoDetectWordsTurkish = { "için", "Tamam", "Hayır", "benim", "daha", "deðil", "önce", "lazým", "benim", "çalýþýyor", "burada", "efendim" };
|
||||||
|
public static readonly string[] AutoDetectWordsCroatianAndSerbian = { "sam", "ali", "nije", "samo", "ovo", "kako", "dobro", "sve", "tako", "će", "mogu", "ću", "zašto", "nešto", "za" };
|
||||||
|
public static readonly string[] AutoDetectWordsCroatian = { "što", "ovdje", "gdje", "kamo", "tko", "prije", "uvijek", "vrijeme", "vidjeti", "netko",
|
||||||
|
"vidio", "nitko", "bok", "lijepo", "oprosti", "htio", "mjesto", "oprostite", "čovjek", "dolje",
|
||||||
|
"čovječe", "dvije", "dijete", "dio", "poslije", "događa", "vjerovati", "vjerojatno", "vjerujem", "točno",
|
||||||
|
"razumijem", "vidjela", "cijeli", "svijet", "obitelj", "volio", "sretan", "dovraga", "svijetu", "htjela",
|
||||||
|
"vidjeli", "negdje", "želio", "ponovno", "djevojka", "umrijeti", "čovjeka", "mjesta", "djeca", "osjećam",
|
||||||
|
"uopće", "djecu", "naprijed", "obitelji", "doista", "mjestu", "lijepa", "također", "riječ", "tijelo" };
|
||||||
|
public static readonly string[] AutoDetectWordsSerbian = { "šta", "ovde", "gde", "ko", "pre", "uvek", "vreme", "videti", "neko",
|
||||||
|
"video", "niko", "ćao", "lepo", "izvini", "hteo", "mesto", "izvinite", "čovek", "dole",
|
||||||
|
"čoveče", "dve", "dete", "deo", "posle", "dešava", "verovati", "verovatno", "verujem", "tačno",
|
||||||
|
"razumem", "videla", "ceo", "svet", "porodica", "voleo", "srećan", "dođavola", "svetu", "htela",
|
||||||
|
"videli", "negde", "želeo", "ponovo", "devojka", "umreti", "čoveka", "mesta", "deca", "osećam",
|
||||||
|
"uopšte", "decu", "napred", "porodicu", "zaista", "mestu", "lepa", "takođe", "reč", "telo" };
|
||||||
|
|
||||||
public static string AutoDetectGoogleLanguage(string text, int bestCount)
|
public static string AutoDetectGoogleLanguage(string text, int bestCount)
|
||||||
{
|
{
|
||||||
@ -1301,15 +1312,11 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
if (count > bestCount)
|
if (count > bestCount)
|
||||||
return "he"; // Hebrew
|
return "he"; // Hebrew
|
||||||
|
|
||||||
count = GetCount(text, AutoDetectWordsSerbian);
|
count = GetCount(text, AutoDetectWordsCroatianAndSerbian);
|
||||||
if (count > bestCount)
|
if (count > bestCount)
|
||||||
{
|
{
|
||||||
int croatianCount = GetCount(text, "sigurnošću", "ubojstvo", "službeni", "nedjelja", "izražava", "dogodilo", "svjetlo", "sigurno", "shvaćam",
|
int croatianCount = GetCount(text, AutoDetectWordsCroatian);
|
||||||
"obitelj", "vijest", "svijet", "sjećam", "lijepa", "dijete", "cijeli", "bijeli", "smije", "smije", "ured",
|
int serbianCount = GetCount(text, AutoDetectWordsSerbian);
|
||||||
"otok", "opći", "križ", "htio", "gdje", "auto", "sat", "kći");
|
|
||||||
int serbianCount = GetCount(text, "ispoljava", "porodica", "ponaosob", "bukvalno", "ubistvo", "ubediti", "suštini", "komitet", "dejstvo",
|
|
||||||
"uopšte", "štampa", "ostrvo", "naučni", "kiriju", "kćerke", "nauka", "ivica", "čovek", "lepa", "krst",
|
|
||||||
"kola", "hteo", "drug", "dete", "celi", "sme", "sem", "gde", "čas");
|
|
||||||
if (croatianCount > serbianCount)
|
if (croatianCount > serbianCount)
|
||||||
return "hr"; // Croatian
|
return "hr"; // Croatian
|
||||||
|
|
||||||
@ -1408,12 +1415,18 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
|
|
||||||
bool containsEnGb = false;
|
bool containsEnGb = false;
|
||||||
bool containsEnUs = false;
|
bool containsEnUs = false;
|
||||||
|
bool containsHrHr = false;
|
||||||
|
bool containsSrLatn = false;
|
||||||
foreach (string name in dictionaryNames)
|
foreach (string name in dictionaryNames)
|
||||||
{
|
{
|
||||||
if (name.Contains("[en_GB]"))
|
if (name.Contains("[en_GB]"))
|
||||||
containsEnGb = true;
|
containsEnGb = true;
|
||||||
if (name.Contains("[en_US]"))
|
if (name.Contains("[en_US]"))
|
||||||
containsEnUs = true;
|
containsEnUs = true;
|
||||||
|
if (name.Contains("[hr_HR]"))
|
||||||
|
containsHrHr = true;
|
||||||
|
if (name.Contains("[sr-Latn]"))
|
||||||
|
containsSrLatn = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (string name in dictionaryNames)
|
foreach (string name in dictionaryNames)
|
||||||
@ -1453,33 +1466,27 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
count = GetCount(text, AutoDetectWordsEnglish);
|
count = GetCount(text, AutoDetectWordsEnglish);
|
||||||
if (count > bestCount)
|
if (count > bestCount)
|
||||||
{
|
{
|
||||||
|
languageName = shortName;
|
||||||
if (containsEnGb)
|
if (containsEnGb)
|
||||||
{
|
{
|
||||||
int usCount = GetCount(text, "color", "flavor", "honor", "humor", "neighbor", "honor");
|
int usCount = GetCount(text, "color", "flavor", "honor", "humor", "neighbor", "honor");
|
||||||
int gbCount = GetCount(text, "colour", "flavour", "honour", "humour", "neighbour", "honour");
|
int gbCount = GetCount(text, "colour", "flavour", "honour", "humour", "neighbour", "honour");
|
||||||
if (usCount >= gbCount)
|
if (gbCount > usCount)
|
||||||
languageName = "en_US";
|
|
||||||
else
|
|
||||||
languageName = "en_GB";
|
languageName = "en_GB";
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
languageName = shortName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "en_GB":
|
case "en_GB":
|
||||||
count = GetCount(text, "we", "are", "and", "you", "your", "what");
|
count = GetCount(text, "we", "are", "and", "you", "your", "what");
|
||||||
if (count > bestCount)
|
if (count > bestCount)
|
||||||
{
|
{
|
||||||
|
languageName = shortName;
|
||||||
if (containsEnUs)
|
if (containsEnUs)
|
||||||
{
|
{
|
||||||
int usCount = GetCount(text, "color", "flavor", "honor", "humor", "neighbor", "honor");
|
int usCount = GetCount(text, "color", "flavor", "honor", "humor", "neighbor", "honor");
|
||||||
int gbCount = GetCount(text, "colour", "flavour", "honour", "humour", "neighbour", "honour");
|
int gbCount = GetCount(text, "colour", "flavour", "honour", "humour", "neighbour", "honour");
|
||||||
if (usCount >= gbCount)
|
if (gbCount < usCount)
|
||||||
languageName = "en_US";
|
languageName = "en_US";
|
||||||
else
|
|
||||||
languageName = "en_GB";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1559,9 +1566,32 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "hr_HR": // Croatian
|
case "hr_HR": // Croatian
|
||||||
count = GetCount(text, AutoDetectWordsCroatian);
|
count = GetCount(text, AutoDetectWordsCroatianAndSerbian);
|
||||||
if (count > bestCount)
|
if (count > bestCount)
|
||||||
|
{
|
||||||
languageName = shortName;
|
languageName = shortName;
|
||||||
|
if (containsSrLatn)
|
||||||
|
{
|
||||||
|
int croatianCount = GetCount(text, AutoDetectWordsCroatian);
|
||||||
|
int serbianCount = GetCount(text, AutoDetectWordsSerbian);
|
||||||
|
if (serbianCount > croatianCount)
|
||||||
|
languageName = "sr-Latn";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case "sr-Latn": // Serbian (Latin)
|
||||||
|
count = GetCount(text, AutoDetectWordsCroatianAndSerbian);
|
||||||
|
if (count > bestCount)
|
||||||
|
{
|
||||||
|
languageName = shortName;
|
||||||
|
if (containsHrHr)
|
||||||
|
{
|
||||||
|
int croatianCount = GetCount(text, AutoDetectWordsCroatian);
|
||||||
|
int serbianCount = GetCount(text, AutoDetectWordsSerbian);
|
||||||
|
if (serbianCount < croatianCount)
|
||||||
|
languageName = "hr_HR";
|
||||||
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "pt_PT": // Portuguese
|
case "pt_PT": // Portuguese
|
||||||
count = GetCount(text, AutoDetectWordsPortuguese);
|
count = GetCount(text, AutoDetectWordsPortuguese);
|
||||||
|
@ -681,6 +681,9 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
|||||||
|
|
||||||
private void MouseTimerTick(object sender, EventArgs e)
|
private void MouseTimerTick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
if (_mouseTimer == null)
|
||||||
|
return;
|
||||||
|
|
||||||
_mouseTimer.Stop();
|
_mouseTimer.Stop();
|
||||||
if (_parentForm != null && _ownerControl != null && _ownerControl.Visible && _parentForm.ContainsFocus && IsLeftMouseButtonDown())
|
if (_parentForm != null && _ownerControl != null && _ownerControl.Visible && _parentForm.ContainsFocus && IsLeftMouseButtonDown())
|
||||||
{
|
{
|
||||||
@ -700,6 +703,8 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (_mouseTimer == null)
|
||||||
|
return;
|
||||||
_mouseTimer.Start();
|
_mouseTimer.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user