Add shortcut for "open bd sup for edit"

This commit is contained in:
Nikolaj Olsson 2020-12-14 08:37:31 +01:00
parent 2ac42176ca
commit 1813170d65
7 changed files with 20 additions and 3 deletions

View File

@ -1011,6 +1011,7 @@ Go to "Options -> Settings -> Tools" to enter your Google translate API ke
<ImportText>Plain text...</ImportText> <ImportText>Plain text...</ImportText>
<ImportImages>Images...</ImportImages> <ImportImages>Images...</ImportImages>
<ImportTimecodes>Time codes...</ImportTimecodes> <ImportTimecodes>Time codes...</ImportTimecodes>
<Import>Import</Import>
<Export>Export</Export> <Export>Export</Export>
<ExportBdnXml>BDN xml/png...</ExportBdnXml> <ExportBdnXml>BDN xml/png...</ExportBdnXml>
<ExportBluRaySup>Blu-ray sup...</ExportBluRaySup> <ExportBluRaySup>Blu-ray sup...</ExportBluRaySup>

View File

@ -1805,6 +1805,7 @@ $HorzAlign = Center
public string MainFileCloseOriginal { get; set; } public string MainFileCloseOriginal { get; set; }
public string MainFileCompare { get; set; } public string MainFileCompare { get; set; }
public string MainFileImportPlainText { get; set; } public string MainFileImportPlainText { get; set; }
public string MainFileImportBdSupForEdit { get; set; }
public string MainFileImportTimeCodes { get; set; } public string MainFileImportTimeCodes { get; set; }
public string MainFileExportEbu { get; set; } public string MainFileExportEbu { get; set; }
public string MainFileExportPac { get; set; } public string MainFileExportPac { get; set; }
@ -6369,6 +6370,12 @@ $HorzAlign = Center
shortcuts.MainFileImportPlainText = subNode.InnerText; shortcuts.MainFileImportPlainText = subNode.InnerText;
} }
subNode = node.SelectSingleNode("MainFileImportBdSupForEdit");
if (subNode != null)
{
shortcuts.MainFileImportBdSupForEdit = subNode.InnerText;
}
subNode = node.SelectSingleNode("MainFileImportTimeCodes"); subNode = node.SelectSingleNode("MainFileImportTimeCodes");
if (subNode != null) if (subNode != null)
{ {
@ -8427,6 +8434,7 @@ $HorzAlign = Center
textWriter.WriteElementString("MainFileOpenOriginal", shortcuts.MainFileOpenOriginal); textWriter.WriteElementString("MainFileOpenOriginal", shortcuts.MainFileOpenOriginal);
textWriter.WriteElementString("MainFileSaveAll", shortcuts.MainFileSaveAll); textWriter.WriteElementString("MainFileSaveAll", shortcuts.MainFileSaveAll);
textWriter.WriteElementString("MainFileImportPlainText", shortcuts.MainFileImportPlainText); textWriter.WriteElementString("MainFileImportPlainText", shortcuts.MainFileImportPlainText);
textWriter.WriteElementString("MainFileImportBdSupForEdit", shortcuts.MainFileImportBdSupForEdit);
textWriter.WriteElementString("MainFileImportTimeCodes", shortcuts.MainFileImportTimeCodes); textWriter.WriteElementString("MainFileImportTimeCodes", shortcuts.MainFileImportTimeCodes);
textWriter.WriteElementString("MainFileExportPlainText", shortcuts.MainFileExportPlainText); textWriter.WriteElementString("MainFileExportPlainText", shortcuts.MainFileExportPlainText);
textWriter.WriteElementString("MainFileExportEbu", shortcuts.MainFileExportEbu); textWriter.WriteElementString("MainFileExportEbu", shortcuts.MainFileExportEbu);

View File

@ -1504,6 +1504,7 @@ namespace Nikse.SubtitleEdit.Core
ImportText = "Plain text...", ImportText = "Plain text...",
ImportImages = "Images...", ImportImages = "Images...",
ImportTimecodes = "Time codes...", ImportTimecodes = "Time codes...",
Import = "Import",
Export = "Export", Export = "Export",
ExportBdnXml = "BDN xml/png...", ExportBdnXml = "BDN xml/png...",
ExportBluRaySup = "Blu-ray sup...", ExportBluRaySup = "Blu-ray sup...",

View File

@ -3487,6 +3487,9 @@ namespace Nikse.SubtitleEdit.Core
case "Main/Menu/File/ImportTimecodes": case "Main/Menu/File/ImportTimecodes":
language.Main.Menu.File.ImportTimecodes = reader.Value; language.Main.Menu.File.ImportTimecodes = reader.Value;
break; break;
case "Main/Menu/File/Import":
language.Main.Menu.File.Import = reader.Value;
break;
case "Main/Menu/File/Export": case "Main/Menu/File/Export":
language.Main.Menu.File.Export = reader.Value; language.Main.Menu.File.Export = reader.Value;
break; break;

View File

@ -1365,6 +1365,7 @@
public string ImportText { get; set; } public string ImportText { get; set; }
public string ImportImages { get; set; } public string ImportImages { get; set; }
public string ImportTimecodes { get; set; } public string ImportTimecodes { get; set; }
public string Import { get; set; }
public string Export { get; set; } public string Export { get; set; }
public string ExportBdnXml { get; set; } public string ExportBdnXml { get; set; }
public string ExportBluRaySup { get; set; } public string ExportBluRaySup { get; set; }

View File

@ -1410,6 +1410,7 @@ namespace Nikse.SubtitleEdit.Forms
toolStripMenuItemImportText.Text = _language.Menu.File.ImportText; toolStripMenuItemImportText.Text = _language.Menu.File.ImportText;
toolStripMenuItemImportImages.Text = _language.Menu.File.ImportImages; toolStripMenuItemImportImages.Text = _language.Menu.File.ImportImages;
toolStripMenuItemImportTimeCodes.Text = _language.Menu.File.ImportTimecodes; toolStripMenuItemImportTimeCodes.Text = _language.Menu.File.ImportTimecodes;
toolStripMenuItemImport.Text = _language.Menu.File.Import;
toolStripMenuItemExport.Text = _language.Menu.File.Export; toolStripMenuItemExport.Text = _language.Menu.File.Export;
toolStripMenuItemExportPngXml.Text = _language.Menu.File.ExportBdnXml; toolStripMenuItemExportPngXml.Text = _language.Menu.File.ExportBdnXml;
toolStripMenuItemExportBluraySup.Text = _language.Menu.File.ExportBluRaySup; toolStripMenuItemExportBluraySup.Text = _language.Menu.File.ExportBluRaySup;
@ -21029,6 +21030,7 @@ namespace Nikse.SubtitleEdit.Forms
removeOriginalToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileCloseOriginal); removeOriginalToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileCloseOriginal);
toolStripMenuItemCompare.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileCompare); toolStripMenuItemCompare.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileCompare);
toolStripMenuItemImportText.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileImportPlainText); toolStripMenuItemImportText.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileImportPlainText);
toolStripMenuItemImportBluraySupFileForEdit.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileImportBdSupForEdit);
toolStripMenuItemImportTimeCodes.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileImportTimeCodes); toolStripMenuItemImportTimeCodes.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileImportTimeCodes);
toolStripMenuItemExportEBUSTL.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileExportEbu); toolStripMenuItemExportEBUSTL.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileExportEbu);
toolStripMenuItemExportPACScreenElectronics.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileExportPac); toolStripMenuItemExportPACScreenElectronics.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileExportPac);

View File

@ -1149,8 +1149,9 @@ namespace Nikse.SubtitleEdit.Forms
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.CloseOriginal, nameof(Configuration.Settings.Shortcuts.MainFileCloseOriginal), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.CloseOriginal, nameof(Configuration.Settings.Shortcuts.MainFileCloseOriginal), true);
AddNode(fileNode, language.MainFileSaveAll, nameof(Configuration.Settings.Shortcuts.MainFileSaveAll)); AddNode(fileNode, language.MainFileSaveAll, nameof(Configuration.Settings.Shortcuts.MainFileSaveAll));
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Compare, nameof(Configuration.Settings.Shortcuts.MainFileCompare), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Compare, nameof(Configuration.Settings.Shortcuts.MainFileCompare), true);
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.ImportText, nameof(Configuration.Settings.Shortcuts.MainFileImportPlainText), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Import + " -> " + Configuration.Settings.Language.Main.Menu.File.ImportText, nameof(Configuration.Settings.Shortcuts.MainFileImportPlainText), true);
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.ImportTimecodes, nameof(Configuration.Settings.Shortcuts.MainFileImportTimeCodes), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Import + " -> " + Configuration.Settings.Language.Main.Menu.File.ImportBluRaySupFileEdit, nameof(Configuration.Settings.Shortcuts.MainFileImportBdSupForEdit), true);
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Import + " -> " + Configuration.Settings.Language.Main.Menu.File.ImportTimecodes, nameof(Configuration.Settings.Shortcuts.MainFileImportTimeCodes), true);
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Export + " -> " + Configuration.Settings.Language.Main.Menu.File.ExportEbu, nameof(Configuration.Settings.Shortcuts.MainFileExportEbu), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Export + " -> " + Configuration.Settings.Language.Main.Menu.File.ExportEbu, nameof(Configuration.Settings.Shortcuts.MainFileExportEbu), true);
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Export + " -> " + Configuration.Settings.Language.Main.Menu.File.ExportPac, nameof(Configuration.Settings.Shortcuts.MainFileExportPac), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Export + " -> " + Configuration.Settings.Language.Main.Menu.File.ExportPac, nameof(Configuration.Settings.Shortcuts.MainFileExportPac), true);
AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Export + " -> " + Configuration.Settings.Language.Main.Menu.File.ExportPlainText, nameof(Configuration.Settings.Shortcuts.MainFileExportPlainText), true); AddNode(fileNode, Configuration.Settings.Language.Main.Menu.File.Export + " -> " + Configuration.Settings.Language.Main.Menu.File.ExportPlainText, nameof(Configuration.Settings.Shortcuts.MainFileExportPlainText), true);