Add a few missing translation - thx domddol :)

This commit is contained in:
Nikolaj Olsson 2024-04-07 09:15:45 +02:00
parent 11b03e42ec
commit 1e8097b86d
10 changed files with 87 additions and 28 deletions

View File

@ -21,6 +21,7 @@
* Update Russian translation - thx elfriob
* Update Korean translation - thx domddol
* Update Portuguese translation - thx hugok79
* Update Greek translation - thx PMitsakis
* Improve "Karaoke effect" + new option - thx ivandrofly
* Make "Timed Text IMSC 1.1" more compatible
* Improve EBU STL preview regarding box - thx BlueMeow7

View File

@ -197,9 +197,6 @@ Note: Do check free disk space.</WaveFileMalformed>
<Engine>Engine</Engine>
<VoskWebsite>Vosk website</VoskWebsite>
<WhisperWebsite>Whisper website</WhisperWebsite>
<WhisperNotFound>Whisper not found.
Read more info (web)?</WhisperNotFound>
<Model>Model</Model>
<Models>Models</Models>
<LanguagesAndModels>Languages and models</LanguagesAndModels>
@ -216,12 +213,14 @@ Read more info (web)?</WhisperNotFound>
<BatchMode>Batch mode</BatchMode>
<KeepPartialTranscription>Keep partial transcription</KeepPartialTranscription>
<TranslateToEnglish>Translate to English</TranslateToEnglish>
<MaxCharsPerSubtitle>Max. chars per subtitle line</MaxCharsPerSubtitle>
<RemoveTemporaryFiles>Remove temporary files</RemoveTemporaryFiles>
<SetCppConstMeFolder>Set CPP/Const-me models folder...</SetCppConstMeFolder>
<OnlyRunPostProcessing>Run only post-processing/adjust timings</OnlyRunPostProcessing>
<DownloadFasterWhisperCuda>Download cuBLAS and cuDNN libs for Faster-Whisper</DownloadFasterWhisperCuda>
<NoTextFound>No text found!</NoTextFound>
<FixCasing>Fix casing</FixCasing>
<AddPeriods>Add periods</AddPeriods>
<FixShortDuration>Fix short duration</FixShortDuration>
</AudioToText>
<AssaAttachments>
<Title>Advanced Sub Station Alpha attachments</Title>
@ -733,6 +732,8 @@ We leverage the intrinsic rhythm of the image.</CreateSimpleChainingToolTip>
<ChooseColor>Choose color:</ChooseColor>
<TotalSeconds>Total seconds:</TotalSeconds>
<EndDelayInSeconds>End delay in seconds:</EndDelayInSeconds>
<WordEffect>Word effect</WordEffect>
<CharacterEffect>Character effect</CharacterEffect>
</EffectKaraoke>
<EffectTypewriter>
<Title>Typewriter effect</Title>
@ -3422,5 +3423,10 @@ Keep changes?</KeepChangesMessage>
<Title>Whisper Advanced - extra command line arguments</Title>
<CommandLineArguments>Extra parameters for Whisper command line:</CommandLineArguments>
<Info>Note: Different Whisper implementations have different command line parameters!</Info>
<Standard>Standard</Standard>
<StandardAsia>Standard Asia</StandardAsia>
<HighlightCurrentWord>Highlight current word</HighlightCurrentWord>
<SingleWords>Single words</SingleWords>
<Sentence>Sentence</Sentence>
</WhisperAdvanced>
</Language>

View File

@ -1,6 +1,6 @@
namespace Nikse.SubtitleEdit.Forms.AudioToText
{
partial class PostProcessingSettings
sealed partial class PostProcessingSettings
{
/// <summary>
/// Required designer variable.

View File

@ -3,7 +3,7 @@ using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms.AudioToText
{
public partial class PostProcessingSettings : Form
public sealed partial class PostProcessingSettings : Form
{
public bool AddPeriods { get; set; }
public bool MergeLines { get; set; }
@ -19,6 +19,11 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
Text = LanguageSettings.Current.Settings.Title;
checkBoxMergeShortLines.Text = LanguageSettings.Current.MergedShortLines.Title;
checkBoxFixCasing.Text = LanguageSettings.Current.AudioToText.FixCasing;
checkBoxAddPeriods.Text = LanguageSettings.Current.AudioToText.AddPeriods;
checkBoxFixShortDuration.Text = LanguageSettings.Current.AudioToText.FixShortDuration;
checkBoxSplitLongLines.Text = LanguageSettings.Current.SplitLongLines.Title;
buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
}

View File

@ -44,7 +44,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
this.textBoxOpenAI = new Nikse.SubtitleEdit.Controls.NikseTextBox();
this.tabPageFasterWhisper = new System.Windows.Forms.TabPage();
this.buttonStandardAsia = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.buttonHighlightCurrentWord = new System.Windows.Forms.Button();
this.buttonStandard = new System.Windows.Forms.Button();
this.buttonSentence = new System.Windows.Forms.Button();
this.buttonSingleWords = new System.Windows.Forms.Button();
@ -197,7 +197,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
// tabPageFasterWhisper
//
this.tabPageFasterWhisper.Controls.Add(this.buttonStandardAsia);
this.tabPageFasterWhisper.Controls.Add(this.button1);
this.tabPageFasterWhisper.Controls.Add(this.buttonHighlightCurrentWord);
this.tabPageFasterWhisper.Controls.Add(this.buttonStandard);
this.tabPageFasterWhisper.Controls.Add(this.buttonSentence);
this.tabPageFasterWhisper.Controls.Add(this.buttonSingleWords);
@ -221,16 +221,16 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
this.buttonStandardAsia.UseVisualStyleBackColor = true;
this.buttonStandardAsia.Click += new System.EventHandler(this.buttonStandardAsia_Click);
//
// button1
// buttonHighlightCurrentWord
//
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.button1.Location = new System.Drawing.Point(622, 390);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(180, 23);
this.button1.TabIndex = 18;
this.button1.Text = "Highlight current word";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
this.buttonHighlightCurrentWord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.buttonHighlightCurrentWord.Location = new System.Drawing.Point(622, 390);
this.buttonHighlightCurrentWord.Name = "buttonHighlightCurrentWord";
this.buttonHighlightCurrentWord.Size = new System.Drawing.Size(180, 23);
this.buttonHighlightCurrentWord.TabIndex = 18;
this.buttonHighlightCurrentWord.Text = "Highlight current word";
this.buttonHighlightCurrentWord.UseVisualStyleBackColor = true;
this.buttonHighlightCurrentWord.Click += new System.EventHandler(this.button1_Click);
//
// buttonStandard
//
@ -360,7 +360,7 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
private Button buttonSingleWords;
private Button buttonStandard;
private Button buttonSentence;
private Button button1;
private Button buttonHighlightCurrentWord;
private Button buttonStandardAsia;
}
}

View File

@ -32,6 +32,11 @@ namespace Nikse.SubtitleEdit.Forms.AudioToText
labelNote.Text = LanguageSettings.Current.WhisperAdvanced.Info;
buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
buttonStandard.Text = LanguageSettings.Current.WhisperAdvanced.Standard;
buttonStandardAsia.Text = LanguageSettings.Current.WhisperAdvanced.StandardAsia;
buttonHighlightCurrentWord.Text = LanguageSettings.Current.WhisperAdvanced.HighlightCurrentWord;
buttonSingleWords.Text = LanguageSettings.Current.WhisperAdvanced.SingleWords;
buttonSentence.Text = LanguageSettings.Current.WhisperAdvanced.Sentence;
comboBoxWhisperExtra.Text = Configuration.Settings.Tools.WhisperExtraSettings;
if (whisperEngine == WhisperChoice.Cpp || whisperEngine == WhisperChoice.CppCuBlas)

View File

@ -27,6 +27,8 @@ namespace Nikse.SubtitleEdit.Forms
buttonPreview.Text = LanguageSettings.Current.General.Preview;
buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
radioButtonByWordEffect.Text = LanguageSettings.Current.EffectKaraoke.WordEffect;
radioButtonByCharEffect.Text = LanguageSettings.Current.EffectKaraoke.CharacterEffect;
UiUtil.FixLargeFonts(this, buttonOK);
}

View File

@ -352,7 +352,6 @@ namespace Nikse.SubtitleEdit.Logic
Engine = "Engine",
VoskWebsite = "Vosk website",
WhisperWebsite = "Whisper website",
WhisperNotFound = "Whisper not found.\r\n\r\nRead more info (web)?",
Model = "Model",
Models = "Models",
LanguagesAndModels = "Languages and models",
@ -369,12 +368,14 @@ namespace Nikse.SubtitleEdit.Logic
XFilesSavedToVideoSourceFolder = "{0} files saved to video source folder",
KeepPartialTranscription = "Keep partial transcription",
TranslateToEnglish = "Translate to English",
MaxCharsPerSubtitle = "Max. chars per subtitle line",
RemoveTemporaryFiles = "Remove temporary files",
SetCppConstMeFolder = "Set CPP/Const-me models folder...",
OnlyRunPostProcessing = "Run only post-processing/adjust timings",
DownloadFasterWhisperCuda = "Download cuBLAS and cuDNN libs for Faster-Whisper",
NoTextFound = "No text found!",
FixCasing = "Fix casing",
AddPeriods = "Add periods",
FixShortDuration = "Fix short duration",
};
AssaAttachments = new LanguageStructure.AssaAttachments
@ -962,6 +963,8 @@ namespace Nikse.SubtitleEdit.Logic
ChooseColor = "Choose color:",
TotalSeconds = "Total seconds:",
EndDelayInSeconds = "End delay in seconds:",
WordEffect = "Word effect",
CharacterEffect = "Character effect",
};
EffectTypewriter = new LanguageStructure.EffectTypewriter
@ -3852,6 +3855,11 @@ Keep changes?",
Title = "Whisper Advanced - extra command line arguments",
CommandLineArguments = "Extra parameters for Whisper command line:",
Info = "Note: Different Whisper implementations have different command line parameters!",
Standard = "Standard",
StandardAsia = "Standard Asia",
HighlightCurrentWord = "Highlight current word",
Sentence = "Sentence",
SingleWords = "Single words",
};
}

View File

@ -538,9 +538,6 @@ namespace Nikse.SubtitleEdit.Logic
case "AudioToText/WhisperWebsite":
language.AudioToText.WhisperWebsite = reader.Value;
break;
case "AudioToText/WhisperNotFound":
language.AudioToText.WhisperNotFound = reader.Value;
break;
case "AudioToText/Model":
language.AudioToText.Model = reader.Value;
break;
@ -589,9 +586,6 @@ namespace Nikse.SubtitleEdit.Logic
case "AudioToText/TranslateToEnglish":
language.AudioToText.TranslateToEnglish = reader.Value;
break;
case "AudioToText/MaxCharsPerSubtitle":
language.AudioToText.MaxCharsPerSubtitle = reader.Value;
break;
case "AudioToText/RemoveTemporaryFiles":
language.AudioToText.RemoveTemporaryFiles = reader.Value;
break;
@ -607,6 +601,15 @@ namespace Nikse.SubtitleEdit.Logic
case "AudioToText/NoTextFound":
language.AudioToText.NoTextFound = reader.Value;
break;
case "AudioToText/FixCasing":
language.AudioToText.FixCasing = reader.Value;
break;
case "AudioToText/AddPeriods":
language.AudioToText.AddPeriods = reader.Value;
break;
case "AudioToText/FixShortDuration":
language.AudioToText.FixShortDuration = reader.Value;
break;
case "AssaAttachments/Title":
language.AssaAttachments.Title = reader.Value;
break;
@ -1909,6 +1912,12 @@ namespace Nikse.SubtitleEdit.Logic
case "EffectKaraoke/EndDelayInSeconds":
language.EffectKaraoke.EndDelayInSeconds = reader.Value;
break;
case "EffectKaraoke/WordEffect":
language.EffectKaraoke.WordEffect = reader.Value;
break;
case "EffectKaraoke/CharacterEffect":
language.EffectKaraoke.CharacterEffect = reader.Value;
break;
case "EffectTypewriter/Title":
language.EffectTypewriter.Title = reader.Value;
break;
@ -9319,6 +9328,21 @@ namespace Nikse.SubtitleEdit.Logic
case "WhisperAdvanced/Info":
language.WhisperAdvanced.Info = reader.Value;
break;
case "WhisperAdvanced/Standard":
language.WhisperAdvanced.Standard = reader.Value;
break;
case "WhisperAdvanced/StandardAsia":
language.WhisperAdvanced.StandardAsia = reader.Value;
break;
case "WhisperAdvanced/HighlightCurrentWord":
language.WhisperAdvanced.HighlightCurrentWord = reader.Value;
break;
case "WhisperAdvanced/SingleWords":
language.WhisperAdvanced.SingleWords = reader.Value;
break;
case "WhisperAdvanced/Sentence":
language.WhisperAdvanced.Sentence = reader.Value;
break;
}
}

View File

@ -201,7 +201,6 @@
public string Engine { get; set; }
public string VoskWebsite { get; set; }
public string WhisperWebsite { get; set; }
public string WhisperNotFound { get; set; }
public string Model { get; set; }
public string Models { get; set; }
public string LanguagesAndModels { get; set; }
@ -218,12 +217,14 @@
public string BatchMode { get; set; }
public string KeepPartialTranscription { get; set; }
public string TranslateToEnglish { get; set; }
public string MaxCharsPerSubtitle { get; set; }
public string RemoveTemporaryFiles { get; set; }
public string SetCppConstMeFolder { get; set; }
public string OnlyRunPostProcessing { get; set; }
public string DownloadFasterWhisperCuda { get; set; }
public string NoTextFound { get; set; }
public string FixCasing { get; set; }
public string AddPeriods { get; set; }
public string FixShortDuration { get; set; }
}
public class AssaAttachments
@ -783,6 +784,8 @@
public string ChooseColor { get; set; }
public string TotalSeconds { get; set; }
public string EndDelayInSeconds { get; set; }
public string WordEffect { get; set; }
public string CharacterEffect { get; set; }
}
public class EffectTypewriter
@ -3660,6 +3663,11 @@
public string Title { get; set; }
public string CommandLineArguments { get; set; }
public string Info { get; set; }
public string Standard { get; set; }
public string StandardAsia { get; set; }
public string HighlightCurrentWord { get; set; }
public string SingleWords { get; set; }
public string Sentence { get; set; }
}
}
}