From 05510ff4858dafb673dacba574a928b2eac28e86 Mon Sep 17 00:00:00 2001 From: niksedk Date: Sat, 10 Jun 2023 11:25:41 +0200 Subject: [PATCH] Add Czech to word lists window --- Dictionaries/cs_names.xml | 11 +++++++++++ src/ui/Forms/Options/WordLists.cs | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Dictionaries/cs_names.xml diff --git a/Dictionaries/cs_names.xml b/Dictionaries/cs_names.xml new file mode 100644 index 000000000..fb110a52f --- /dev/null +++ b/Dictionaries/cs_names.xml @@ -0,0 +1,11 @@ + + + + Václav + Novák + Svoboda + Novotný + Natálie + Tereza + Eliška + \ No newline at end of file diff --git a/src/ui/Forms/Options/WordLists.cs b/src/ui/Forms/Options/WordLists.cs index afad8760a..aea61afc8 100644 --- a/src/ui/Forms/Options/WordLists.cs +++ b/src/ui/Forms/Options/WordLists.cs @@ -65,7 +65,9 @@ namespace Nikse.SubtitleEdit.Forms.Options // Specific culture e.g: en-US, en-GB... foreach (var culture in CultureInfo.GetCultures(CultureTypes.SpecificCultures)) { - if (File.Exists(Path.Combine(dir, culture.Name.Replace('-', '_') + "_user.xml"))) + var seFile = Path.Combine(dir, culture.Name.Replace('-', '_') + "_se.xml"); + var userFile = Path.Combine(dir, culture.Name.Replace('-', '_') + "_user.xml"); + if (File.Exists(seFile) || File.Exists(userFile)) { if (!cultures.Contains(culture)) { @@ -80,7 +82,8 @@ namespace Nikse.SubtitleEdit.Forms.Options var ocrFixGeneralFile = Path.Combine(dir, culture.GetThreeLetterIsoLanguageName() + "_OCRFixReplaceList.xml"); var ocrFixUserFile = Path.Combine(dir, culture.GetThreeLetterIsoLanguageName() + "_OCRFixReplaceList_User.xml"); var namesFile = Path.Combine(dir, culture.TwoLetterISOLanguageName + "_names.xml"); - if (File.Exists(ocrFixGeneralFile) || File.Exists(ocrFixUserFile) || File.Exists(namesFile)) + var seFile = Path.Combine(dir, culture.Name.Replace('-', '_') + "_se.xml"); + if (File.Exists(ocrFixGeneralFile) || File.Exists(ocrFixUserFile) || File.Exists(namesFile) || File.Exists(seFile)) { var alreadyInList = false; foreach (var ci in cultures)