Add language strings

This commit is contained in:
niksedk 2022-01-06 14:18:21 +01:00
parent ba9e745204
commit bb0d84dda6
2 changed files with 14 additions and 1 deletions

View File

@ -925,6 +925,7 @@ namespace Nikse.SubtitleEdit.Forms.Assa
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Generate background box";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ApplyCustomStyles_FormClosing);
this.Load += new System.EventHandler(this.AssSetBackground_Load);
this.Shown += new System.EventHandler(this.AssSetBackground_Shown);
this.ResizeEnd += new System.EventHandler(this.SetPosition_ResizeEnd);
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.AssSetBackground_KeyDown);

View File

@ -102,6 +102,10 @@ namespace Nikse.SubtitleEdit.Forms.Assa
groupBoxDrawing.Text = LanguageSettings.Current.AssaSetBackgroundBox.Drawing;
groupBoxStyle.Text = LanguageSettings.Current.General.Style;
groupBoxAlignment.Text = LanguageSettings.Current.SubStationAlphaStyles.Alignment;
labelPaddingLeft.Text = LanguageSettings.Current.ExportPngXml.Left;
labelPaddingRight.Text = LanguageSettings.Current.ExportPngXml.Right;
labelPaddingBottom.Text = LanguageSettings.Current.AssaProgressBarGenerator.Bottom;
labelPaddingTop.Text = LanguageSettings.Current.AssaProgressBarGenerator.Top;
checkBoxOnlyDrawing.Text = LanguageSettings.Current.AssaSetBackgroundBox.OnlyDrawing;
buttonPrimaryColor.Text = LanguageSettings.Current.AssaSetBackgroundBox.BoxColor;
buttonOutlineColor.Text = LanguageSettings.Current.SubStationAlphaStyles.Outline;
@ -867,7 +871,10 @@ namespace Nikse.SubtitleEdit.Forms.Assa
text = Regex.Replace(text, @"{\\fade\([\d\.,]*\)}", string.Empty);
text = Regex.Replace(text, @"\\fade\([\d\.,]*\)", string.Empty);
sub.Paragraphs.Add(new Paragraph(text, i * 1000 - 500, i * 1000 + 500));
sub.Paragraphs.Add(new Paragraph(text, i * 1000 - 500, i * 1000 + 500)
{
Extra = p.Extra,
});
}
File.WriteAllText(assaTempFileName, new AdvancedSubStationAlpha().ToText(sub, string.Empty));
@ -1239,5 +1246,10 @@ namespace Nikse.SubtitleEdit.Forms.Assa
_updatePreview = true;
}
}
private void AssSetBackground_Load(object sender, EventArgs e)
{
}
}
}