Add language tag for "AddWaveformAndSpectrogram" in shortcuts

This commit is contained in:
OmrSi 2020-12-08 21:23:45 +02:00
parent 3016c1ad0c
commit 5c5269a65f
5 changed files with 7 additions and 1 deletions

View File

@ -2739,6 +2739,7 @@ Keep changes?</KeepChangesMessage>
<ErrorUnicodeEncodingOnly>Watermark only works with unicode file encoding.</ErrorUnicodeEncodingOnly>
</Watermark>
<Waveform>
<AddWaveformAndSpectrogram>Add waveform/spectrogram</AddWaveformAndSpectrogram>
<ClickToAddWaveform>Click to add waveform</ClickToAddWaveform>
<ClickToAddWaveformAndSpectrogram>Click to add waveform/spectrogram</ClickToAddWaveformAndSpectrogram>
<Seconds>seconds</Seconds>

View File

@ -3101,6 +3101,7 @@ Keep changes?",
Waveform = new LanguageStructure.Waveform
{
AddWaveformAndSpectrogram = "Add waveform/spectrogram",
ClickToAddWaveform = "Click to add waveform",
ClickToAddWaveformAndSpectrogram = "Click to add waveform/spectrogram",
Seconds = "seconds",

View File

@ -7459,6 +7459,9 @@ namespace Nikse.SubtitleEdit.Core
case "Watermark/ErrorUnicodeEncodingOnly":
language.Watermark.ErrorUnicodeEncodingOnly = reader.Value;
break;
case "Waveform/AddWaveformAndSpectrogram":
language.Waveform.AddWaveformAndSpectrogram = reader.Value;
break;
case "Waveform/ClickToAddWaveform":
language.Waveform.ClickToAddWaveform = reader.Value;
break;

View File

@ -2957,6 +2957,7 @@
public class Waveform
{
public string AddWaveformAndSpectrogram { get; set; }
public string ClickToAddWaveform { get; set; }
public string ClickToAddWaveformAndSpectrogram { get; set; }
public string Seconds { get; set; }

View File

@ -1405,7 +1405,7 @@ namespace Nikse.SubtitleEdit.Forms
}
var audioVisualizerNode = new ShortcutNode(language.WaveformAndSpectrogram);
AddNode(audioVisualizerNode, Configuration.Settings.Language.Waveform.ClickToAddWaveformAndSpectrogram, nameof(Configuration.Settings.Shortcuts.WaveformAdd));
AddNode(audioVisualizerNode, Configuration.Settings.Language.Waveform.AddWaveformAndSpectrogram, nameof(Configuration.Settings.Shortcuts.WaveformAdd));
AddNode(audioVisualizerNode, Configuration.Settings.Language.Waveform.ZoomIn, nameof(Configuration.Settings.Shortcuts.WaveformZoomIn));
AddNode(audioVisualizerNode, Configuration.Settings.Language.Waveform.ZoomOut, nameof(Configuration.Settings.Shortcuts.WaveformZoomOut));
AddNode(audioVisualizerNode, language.VerticalZoom, nameof(Configuration.Settings.Shortcuts.WaveformVerticalZoom));