Added three missing translation in "Fix common errors" - thx XhmikosR :)

This commit is contained in:
niksedk 2014-09-20 22:47:42 +02:00
parent 270d08b2ee
commit 058f7995d8
3 changed files with 22 additions and 3 deletions

View File

@ -373,11 +373,24 @@ namespace Nikse.SubtitleEdit.Forms
_fixActions.Add(new FixItem(_language.FixDoubleGreaterThan, _language.FixDoubleGreaterThanExample, delegate { FixDoubleGreaterThan(); }, ce.FixDoubleGreaterThanTicked));
_fixActions.Add(new FixItem(_language.FixEllipsesStart, _language.FixEllipsesStartExample, delegate { FixEllipsesStart(); }, ce.FixEllipsesStartTicked));
_fixActions.Add(new FixItem(_language.FixMissingOpenBracket, _language.FixMissingOpenBracketExample, delegate { FixMissingOpenBracket(); }, ce.FixMissingOpenBracketTicked));
if (string.IsNullOrEmpty(_language.FixOcrErrorExample))
_fixActions.Add(new FixItem(_language.FixCommonOcrErrors, "D0n't -> Don't", delegate { FixOcrErrorsViaReplaceList(threeLetterISOLanguageName); }, ce.FixOcrErrorsViaReplaceListTicked));
else
_fixActions.Add(new FixItem(_language.FixCommonOcrErrors, _language.FixOcrErrorExample, delegate { FixOcrErrorsViaReplaceList(threeLetterISOLanguageName); }, ce.FixOcrErrorsViaReplaceListTicked));
_fixActions.Add(new FixItem(_language.FixUppercaseIInsindeLowercaseWords, _language.FixUppercaseIInsindeLowercaseWordsExample, delegate { FixUppercaseIInsideWords(); }, ce.UppercaseIInsideLowercaseWordTicked));
_fixActions.Add(new FixItem(_language.FixLowercaseIToUppercaseI, _language.FixLowercaseIToUppercaseIExample, delegate { FixAloneLowercaseIToUppercaseI(); }, ce.AloneLowercaseIToUppercaseIEnglishTicked));
if (string.IsNullOrEmpty(_language.FixSpaceBetweenNumbersExample))
_fixActions.Add(new FixItem(_language.RemoveSpaceBetweenNumber, "1 100 -> 1100", delegate { RemoveSpaceBetweenNumbers(); }, ce.RemoveSpaceBetweenNumberTicked));
else
_fixActions.Add(new FixItem(_language.RemoveSpaceBetweenNumber, _language.FixSpaceBetweenNumbersExample, delegate { RemoveSpaceBetweenNumbers(); }, ce.RemoveSpaceBetweenNumberTicked));
if (string.IsNullOrEmpty(_language.FixSpaceBetweenNumbersExample))
_fixActions.Add(new FixItem(_language.FixDialogsOnOneLine, "Hi John! - Hi Ida! -> Hi John!" + Configuration.Settings.General.ListViewLineSeparatorString + "- Hi Ida!", delegate { DialogsOnOneLine(); }, ce.FixDialogsOnOneLineTicked));
else
_fixActions.Add(new FixItem(_language.FixDialogsOnOneLine, _language.FixDialoguesOneLineExample + Configuration.Settings.General.ListViewLineSeparatorString + "- Hi Ida!", delegate { DialogsOnOneLine(); }, ce.FixDialogsOnOneLineTicked));
if (Language == "tr")
{

View File

@ -756,6 +756,9 @@ namespace Nikse.SubtitleEdit.Logic
FixCommonOcrErrors = "Fix common OCR errors (using OCR replace list)",
NumberOfImportantLogMessages = "{0} important log messages!",
FixedOkXY = "Fixed and OK - '{0}': {1}",
FixOcrErrorExample = "D0n't -> Don't",
FixSpaceBetweenNumbersExample = "1 100 -> 1100",
FixDialoguesOneLineExample = "Hi John! - Hi Ida! -> Hi John!",
};
GetDictionaries = new LanguageStructure.GetDictionaries

View File

@ -644,6 +644,9 @@
public string FixMusicNotationExample { get; set; }
public string NumberOfImportantLogMessages { get; set; }
public string FixedOkXY { get; set; }
public string FixOcrErrorExample { get; set; }
public string FixSpaceBetweenNumbersExample { get; set; }
public string FixDialoguesOneLineExample { get; set; }
}
public class GetDictionaries