Merge pull request #7999 from ivandrofly/feature/fix-empty-lines-typo

Correct typo in variable name
This commit is contained in:
Nikolaj Olsson 2024-03-23 09:00:38 +01:00 committed by GitHub
commit aba5297d6e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 7 deletions

View File

@ -12,7 +12,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
public static string RemovedEmptyLineAtTop { get; set; } = "Remove empty line at top";
public static string RemovedEmptyLineAtBottom { get; set; } = "Remove empty line at bottom";
public static string RemovedEmptyLineInMiddle { get; set; } = "Remove empty line in middle";
public static string RemovedEmptyLinesUnsedLineBreaks { get; set; } = "Remove empty lines/unused line breaks";
public static string RemovedEmptyLinesUnusedLineBreaks { get; set; } = "Remove empty lines/unused line breaks";
}
public void Fix(Subtitle subtitle, IFixCallbacks callbacks)
@ -174,7 +174,7 @@ namespace Nikse.SubtitleEdit.Core.Forms.FixCommonErrors
if (emptyLinesRemoved > 0)
{
callbacks.UpdateFixStatus(emptyLinesRemoved, Language.RemovedEmptyLinesUnsedLineBreaks);
callbacks.UpdateFixStatus(emptyLinesRemoved, Language.RemovedEmptyLinesUnusedLineBreaks);
subtitle.Renumber();
}
}

View File

@ -392,7 +392,7 @@ namespace Nikse.SubtitleEdit.Forms
_fixActions = new List<FixItem>
{
new FixItem(_language.RemovedEmptyLinesUnsedLineBreaks, "Has only one valid line!</br><i> -> Has only one valid line!", () => new FixEmptyLines().Fix(Subtitle, this), ce.EmptyLinesTicked),
new FixItem(_language.RemovedEmptyLinesUnusedLineBreaks, "Has only one valid line!</br><i> -> Has only one valid line!", () => new FixEmptyLines().Fix(Subtitle, this), ce.EmptyLinesTicked),
new FixItem(_language.FixOverlappingDisplayTimes, string.Empty, () => new FixOverlappingDisplayTimes().Fix(Subtitle, this), ce.OverlappingDisplayTimeTicked),
new FixItem(_language.FixShortDisplayTimes, string.Empty, () => new FixShortDisplayTimes().Fix(Subtitle, this), ce.TooShortDisplayTimeTicked),
new FixItem(_language.FixLongDisplayTimes, string.Empty, () => new FixLongDisplayTimes().Fix(Subtitle, this), ce.TooLongDisplayTimeTicked),
@ -559,7 +559,7 @@ namespace Nikse.SubtitleEdit.Forms
FixEmptyLines.Language.RemovedEmptyLineAtBottom = LanguageSettings.Current.FixCommonErrors.RemovedEmptyLineAtBottom;
FixEmptyLines.Language.RemovedEmptyLineAtTop = LanguageSettings.Current.FixCommonErrors.RemovedEmptyLineAtTop;
FixEmptyLines.Language.RemovedEmptyLineInMiddle = LanguageSettings.Current.FixCommonErrors.RemovedEmptyLineInMiddle;
FixEmptyLines.Language.RemovedEmptyLinesUnsedLineBreaks = LanguageSettings.Current.FixCommonErrors.RemovedEmptyLinesUnsedLineBreaks;
FixEmptyLines.Language.RemovedEmptyLinesUnusedLineBreaks = LanguageSettings.Current.FixCommonErrors.RemovedEmptyLinesUnusedLineBreaks;
FixHyphensInDialog.Language.FixHyphensInDialogs = LanguageSettings.Current.FixCommonErrors.FixHyphensInDialogs;
FixHyphensRemoveDashSingleLine.Language.RemoveHyphensSingleLine = LanguageSettings.Current.FixCommonErrors.RemoveHyphensSingleLine;
FixInvalidItalicTags.Language.FixInvalidItalicTag = LanguageSettings.Current.FixCommonErrors.FixInvalidItalicTag;

View File

@ -1136,7 +1136,7 @@ namespace Nikse.SubtitleEdit.Logic
RemovedEmptyLineAtTop = "Remove empty line at top",
RemovedEmptyLineAtBottom = "Remove empty line at bottom",
RemovedEmptyLineInMiddle = "Remove empty line in middle",
RemovedEmptyLinesUnsedLineBreaks = "Remove empty lines/unused line breaks",
RemovedEmptyLinesUnusedLineBreaks = "Remove empty lines/unused line breaks",
FixOverlappingDisplayTimes = "Fix overlapping display times",
FixShortDisplayTimes = "Fix short display times",
FixLongDisplayTimes = "Fix long display times",

View File

@ -2312,7 +2312,7 @@ namespace Nikse.SubtitleEdit.Logic
language.FixCommonErrors.RemovedEmptyLineInMiddle = reader.Value;
break;
case "FixCommonErrors/RemovedEmptyLinesUnsedLineBreaks":
language.FixCommonErrors.RemovedEmptyLinesUnsedLineBreaks = reader.Value;
language.FixCommonErrors.RemovedEmptyLinesUnusedLineBreaks = reader.Value;
break;
case "FixCommonErrors/FixOverlappingDisplayTimes":
language.FixCommonErrors.FixOverlappingDisplayTimes = reader.Value;

View File

@ -957,7 +957,7 @@
public string RemovedEmptyLineAtTop { get; set; }
public string RemovedEmptyLineAtBottom { get; set; }
public string RemovedEmptyLineInMiddle { get; set; }
public string RemovedEmptyLinesUnsedLineBreaks { get; set; }
public string RemovedEmptyLinesUnusedLineBreaks { get; set; }
public string FixOverlappingDisplayTimes { get; set; }
public string FixShortDisplayTimes { get; set; }
public string FixLongDisplayTimes { get; set; }