Change "Save as" shortcut from "Control+Alt+S" to "Control+Shift+S" to work with Polish - thx Krystian :)

This commit is contained in:
Nikolaj Olsson 2024-01-05 19:33:58 +01:00
parent 1a6d6422e7
commit 91745db3c7
4 changed files with 14 additions and 5 deletions

View File

@ -2,6 +2,7 @@
4.0.4 (xth February 2024) BETA
* NEW:
* Add Whisper CPP model "small.en-q5_1.bin"
* IMPROVED:
* Update Korean translation - thx domddol
* Update Portuguese translation - thx hugok79
@ -9,11 +10,11 @@
* Set file name after .MKS file import - thx RedSoxFan04
* Faster cancel in auto-translate - thx Siamak
* Update Whisper CPP to V1.5.3
* Add Whisper CPP model "small.en-q5_1.bin"
* FIXED:
* Fix Papago translate - thx banziseo
* Fix for "outputfilename" in cmd line (with SUP source) - thx sapphire-bt
* Fix for "outputfilename" in cmd line with SUP source - thx sapphire-bt
* Do not download PFW "preprocessor_config.json" if not exists - thx Purfview
* Change "Save as" shortcut to "Control+Shift+S" to work with Polish - thx Krystian
4.0.3 (23rd December 2023)

View File

@ -2755,7 +2755,7 @@ $HorzAlign = Center
MainFileNew = "Control+N";
MainFileOpen = "Control+O";
MainFileSave = "Control+S";
MainFileSaveAs = "Control+Alt+S";
MainFileSaveAs = "Control+Shift+S";
MainEditUndo = "Control+Z";
MainEditRedo = "Control+Y";
MainEditFind = "Control+F";

View File

@ -782,7 +782,6 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
{
File.Delete(jsonFileName);
}
}
}
catch

View File

@ -4862,6 +4862,15 @@ namespace Nikse.SubtitleEdit.Forms
private void SaveAsToolStripMenuItemClick(object sender, EventArgs e)
{
if (InputLanguage.CurrentInputLanguage.Culture.TwoLetterISOLanguageName == "pl" &&
Configuration.Settings.Shortcuts.MainFileSaveAs == "Control+Alt+S")
{
// fix for Polish letter "ś"
Configuration.Settings.Shortcuts.MainFileSaveAs = "Control+Shift+S";
saveAsToolStripMenuItem.ShortcutKeys = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainFileSaveAs);
return;
}
if (!IsSubtitleLoaded)
{
ShowStatus(_language.CannotSaveEmptySubtitle);
@ -36315,7 +36324,7 @@ namespace Nikse.SubtitleEdit.Forms
SubtitleListview1.Fill(_subtitle, _subtitleOriginal);
if (!onlySelectedLines)
{
ResetHistory();
ResetHistory();
_fileName = FileNameHelper.GetFileNameWithTargetLanguage(oldFileName, _videoFileName, _subtitleOriginal, GetCurrentSubtitleFormat(), autoTranslate.TwoLetterIsoSource, autoTranslate.TwoLetterIsoTarget);
_converted = true;
}