mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
parent
8ed96e2b24
commit
e826a79776
7
Dictionaries/it_IT_se.xml
Normal file
7
Dictionaries/it_IT_se.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<words>
|
||||
<word>a</word>
|
||||
<word>e</word>
|
||||
<word>è</word>
|
||||
<word>i</word>
|
||||
<word>o</word>
|
||||
</words>
|
@ -236,6 +236,7 @@ Source: ..\Dictionaries\fi_FI_se.xml; DestDir: {userappdata}\Subtit
|
||||
Source: ..\Dictionaries\nl_NL_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
Source: ..\Dictionaries\pt_PT_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
Source: ..\Dictionaries\ru_RU_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
Source: ..\Dictionaries\it_IT_se.xml; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
Source: ..\Dictionaries\en_US.aff; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
Source: ..\Dictionaries\en_US.dic; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
Source: ..\Dictionaries\dan_WordSplitList.txt; DestDir: {userappdata}\Subtitle Edit\Dictionaries; Flags: ignoreversion onlyifdoesntexist; Components: main
|
||||
@ -716,6 +717,7 @@ begin
|
||||
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\nl_NL_se.xml'));
|
||||
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\pt_PT_se.xml'));
|
||||
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\ru_RU_se.xml'));
|
||||
DeleteFile(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\it_IT_se.xml'));
|
||||
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\???_OCRFixReplaceList_User.xml'), False, True, False);
|
||||
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.dic'), False, True, False);
|
||||
DelTree(ExpandConstant('{userappdata}\Subtitle Edit\Dictionaries\*.aff'), False, True, False);
|
||||
|
@ -1042,7 +1042,16 @@ namespace Nikse.SubtitleEdit.Core.Common
|
||||
word = word.Trim();
|
||||
if (word.Length > 0)
|
||||
{
|
||||
string userWordsXmlFileName = DictionaryFolder + languageName + "_user.xml";
|
||||
var userWordsXmlFileName = DictionaryFolder + languageName + "_user.xml";
|
||||
if (!File.Exists(userWordsXmlFileName) && languageName != null && languageName.Length> 2)
|
||||
{
|
||||
var newFileName = DictionaryFolder + languageName.Substring(0,2).ToLowerInvariant() + "_user.xml";
|
||||
if (File.Exists(newFileName))
|
||||
{
|
||||
userWordsXmlFileName = newFileName;
|
||||
}
|
||||
}
|
||||
|
||||
var userWords = new XmlDocument();
|
||||
if (File.Exists(userWordsXmlFileName))
|
||||
{
|
||||
@ -1093,7 +1102,17 @@ namespace Nikse.SubtitleEdit.Core.Common
|
||||
{
|
||||
userWordList.Clear();
|
||||
var userWordDictionary = new XmlDocument();
|
||||
string userWordListXmlFileName = DictionaryFolder + languageName + "_user.xml";
|
||||
var userWordListXmlFileName = DictionaryFolder + languageName + "_user.xml";
|
||||
|
||||
if (!File.Exists(userWordListXmlFileName) && languageName != null && languageName.Length > 2)
|
||||
{
|
||||
var newFileName = DictionaryFolder + languageName.Substring(0, 2).ToLowerInvariant() + "_user.xml";
|
||||
if (File.Exists(newFileName))
|
||||
{
|
||||
userWordListXmlFileName = newFileName;
|
||||
}
|
||||
}
|
||||
|
||||
if (File.Exists(userWordListXmlFileName))
|
||||
{
|
||||
userWordDictionary.Load(userWordListXmlFileName);
|
||||
@ -1106,6 +1125,9 @@ namespace Nikse.SubtitleEdit.Core.Common
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
return userWordListXmlFileName;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
return;
|
||||
}
|
||||
|
||||
string language = comboBoxDictionaries.Text;
|
||||
var language = comboBoxDictionaries.Text;
|
||||
if (language.IndexOf('[') >= 0)
|
||||
{
|
||||
language = language.Substring(language.IndexOf('[')).TrimStart('[');
|
||||
|
@ -683,14 +683,17 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
Action = CommandLineConverter.BatchAction.BeautifyTimeCodes,
|
||||
Control = groupBoxBeautifyTimeCodes,
|
||||
},
|
||||
new FixActionItem
|
||||
{
|
||||
Text = LanguageSettings.Current.GoogleTranslate.Title,
|
||||
Checked = Configuration.Settings.Tools.BatchConvertBeautifyTimeCodes,
|
||||
Action = CommandLineConverter.BatchAction.AutoTranslate,
|
||||
Control = groupBoxAutoTranslate,
|
||||
},
|
||||
//new FixActionItem
|
||||
//{
|
||||
// Text = LanguageSettings.Current.GoogleTranslate.Title,
|
||||
// Checked = Configuration.Settings.Tools.BatchConvertBeautifyTimeCodes,
|
||||
// Action = CommandLineConverter.BatchAction.AutoTranslate,
|
||||
// Control = groupBoxAutoTranslate,
|
||||
//},
|
||||
};
|
||||
|
||||
groupBoxAutoTranslate.Visible = false;
|
||||
|
||||
foreach (var fixItem in fixItems)
|
||||
{
|
||||
var listViewItem = new ListViewItem { Tag = fixItem };
|
||||
|
@ -264,7 +264,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
|
||||
|
||||
private void ButtonAddToDictionaryClick(object sender, EventArgs e)
|
||||
{
|
||||
string s = textBoxWord.Text.Trim();
|
||||
var s = textBoxWord.Text.Trim();
|
||||
Word = s;
|
||||
if (s.Length == 0 || s.Contains(' '))
|
||||
{
|
||||
|
@ -1230,7 +1230,7 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
||||
if (listViewSelected.SelectedItems.Count > 0)
|
||||
{
|
||||
var first = listViewSelected.TopItem.Index;
|
||||
int index = listViewSelected.SelectedItems[0].Index;
|
||||
var index = listViewSelected.SelectedItems[0].Index;
|
||||
if (index < listViewOther.Items.Count)
|
||||
{
|
||||
listViewOther.SelectIndexAndEnsureVisible(index, false);
|
||||
|
Loading…
Reference in New Issue
Block a user