added language tag

This commit is contained in:
niksedk 2014-08-26 19:23:07 +02:00
parent 318e8e62da
commit b6799b2d75
4 changed files with 10 additions and 0 deletions

View File

@ -1918,6 +1918,7 @@ can edit in same subtitle file (collaboration)",
GoToFirstSelectedLine = "Go to first selected line",
GoToNextEmptyLine = "Go to next empty line",
MergeSelectedLines = "Merge selected lines",
MergeSelectedLinesOnlyFirstText = "Merge selected lines, keep only first non-empty text",
ToggleTranslationMode = "Toggle translation mode",
SwitchOriginalAndTranslation = "Switch original and translation",
MergeOriginalAndTranslation = "Merge original and translation",

View File

@ -4524,6 +4524,9 @@ namespace Nikse.SubtitleEdit.Logic
case "Settings/MergeSelectedLines":
language.Settings.MergeSelectedLines = reader.Value;
break;
case "Settings/MergeSelectedLinesOnlyFirstText":
language.Settings.MergeSelectedLinesOnlyFirstText = reader.Value;
break;
case "Settings/ToggleTranslationMode":
language.Settings.ToggleTranslationMode = reader.Value;
break;

View File

@ -1809,6 +1809,7 @@
public string GoToFirstSelectedLine { get; set; }
public string GoToNextEmptyLine { get; set; }
public string MergeSelectedLines { get; set; }
public string MergeSelectedLinesOnlyFirstText { get; set; }
public string ToggleTranslationMode { get; set; }
public string SwitchOriginalAndTranslation { get; set; }
public string MergeOriginalAndTranslation { get; set; }

View File

@ -742,6 +742,7 @@ namespace Nikse.SubtitleEdit.Logic
public string GeneralGoToFirstSelectedLine { get; set; }
public string GeneralGoToNextEmptyLine { get; set; }
public string GeneralMergeSelectedLines { get; set; }
public string GeneralMergeSelectedLinesOnlyFirstText { get; set; }
public string GeneralToggleTranslationMode { get; set; }
public string GeneralSwitchOriginalAndTranslation { get; set; }
public string GeneralMergeOriginalAndTranslation { get; set; }
@ -2147,6 +2148,9 @@ namespace Nikse.SubtitleEdit.Logic
subNode = node.SelectSingleNode("GeneralMergeSelectedLines");
if (subNode != null)
settings.Shortcuts.GeneralMergeSelectedLines = subNode.InnerText;
subNode = node.SelectSingleNode("GeneralMergeSelectedLinesOnlyFirstText");
if (subNode != null)
settings.Shortcuts.GeneralMergeSelectedLinesOnlyFirstText = subNode.InnerText;
subNode = node.SelectSingleNode("GeneralToggleTranslationMode");
if (subNode != null)
settings.Shortcuts.GeneralToggleTranslationMode = subNode.InnerText;
@ -2950,6 +2954,7 @@ namespace Nikse.SubtitleEdit.Logic
textWriter.WriteElementString("GeneralGoToFirstSelectedLine", settings.Shortcuts.GeneralGoToFirstSelectedLine);
textWriter.WriteElementString("GeneralGoToNextEmptyLine", settings.Shortcuts.GeneralGoToNextEmptyLine);
textWriter.WriteElementString("GeneralMergeSelectedLines", settings.Shortcuts.GeneralMergeSelectedLines);
textWriter.WriteElementString("GeneralMergeSelectedLinesOnlyFirstText", settings.Shortcuts.GeneralMergeSelectedLinesOnlyFirstText);
textWriter.WriteElementString("GeneralToggleTranslationMode", settings.Shortcuts.GeneralToggleTranslationMode);
textWriter.WriteElementString("GeneralSwitchOriginalAndTranslation", settings.Shortcuts.GeneralSwitchOriginalAndTranslation);
textWriter.WriteElementString("GeneralMergeOriginalAndTranslation", settings.Shortcuts.GeneralMergeOriginalAndTranslation);