Work on language tags

This commit is contained in:
niksedk 2021-06-21 12:18:43 +02:00
parent 70cf488f40
commit 5a6493a920
8 changed files with 74 additions and 7 deletions

View File

@ -179,6 +179,14 @@ Note: Do check free disk space.</WaveFileMalformed>
<RemoveOneAttachment>Remove one attachment?</RemoveOneAttachment>
<RemoveXAttachments>Remove {0} attachments?</RemoveXAttachments>
</AssaAttachments>
<AssaOverrideTags>
<ApplyCustomTags>Apply custom tags</ApplyCustomTags>
<History>History</History>
<TagsToApply>Tags to apply</TagsToApply>
<ApplyTo>Apply to</ApplyTo>
<SelectedLinesX>Selected lines: {0}</SelectedLinesX>
<AdvancedSelection>Advanced selection</AdvancedSelection>
</AssaOverrideTags>
<AudioToText>
<Title>Audio to text</Title>
<ExtractingAudioUsingX>Extracting audio using {0}...</ExtractingAudioUsingX>

View File

@ -1,7 +1,7 @@

namespace Nikse.SubtitleEdit.Forms.Assa
{
partial class AdvancedSelectionHelper
sealed partial class AdvancedSelectionHelper
{
/// <summary>
/// Required designer variable.

View File

@ -7,7 +7,7 @@ using System.Windows.Forms;
namespace Nikse.SubtitleEdit.Forms.Assa
{
public partial class AdvancedSelectionHelper : Form
public sealed partial class AdvancedSelectionHelper : Form
{
public int[] Indices { get; private set; }
private readonly Subtitle _subtitle;
@ -24,6 +24,7 @@ namespace Nikse.SubtitleEdit.Forms.Assa
_loading = true;
_subtitle = subtitle;
Indices = new int[0];
Text = LanguageSettings.Current.AssaOverrideTags.AdvancedSelection;
buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
columnHeaderApply.Text = LanguageSettings.Current.General.Apply;

View File

@ -43,6 +43,12 @@ namespace Nikse.SubtitleEdit.Forms.Assa
MainTextBoxAssaIntellisense = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAssaIntellisense);
MainTextBoxAssaRemoveTag = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAssaRemoveTag);
radioButtonAdvancedSelection_CheckedChanged(null, null);
Text = LanguageSettings.Current.AssaOverrideTags.ApplyCustomTags;
labelOverrideTags.Text = LanguageSettings.Current.AssaOverrideTags.TagsToApply;
radioButtonAdvancedSelection.Text = LanguageSettings.Current.AssaOverrideTags.AdvancedSelection;
radioButtonSelectedLines.Text = string.Format(LanguageSettings.Current.AssaOverrideTags.SelectedLinesX, _selectedIndices.Length);
radioButtonAllLines.Text = LanguageSettings.Current.ShowEarlierLater.AllLines;
buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel;
UiUtil.FixLargeFonts(this, buttonOK);
@ -53,8 +59,6 @@ namespace Nikse.SubtitleEdit.Forms.Assa
seTextBox1.Text = Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory[0];
}
radioButtonAdvancedSelection_CheckedChanged(null, null);
radioButtonSelectedLines.Text = string.Format("Selected lines: {0}", _selectedIndices.Length);
groupBoxPreview.Visible = false;
_originalHeight = Height;

View File

@ -40,6 +40,7 @@
<Bold>Fed</Bold>
<Italic>Kursiv</Italic>
<Underline>Understreg</Underline>
<Strikeout>Gennemstreg</Strikeout>
<Visible>Synlig</Visible>
<FrameRate>Billeder pr. sekund</FrameRate>
<Name>Navn</Name>
@ -670,6 +671,7 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<CommonOcrErrorsFixed>Ret OCR fejl (via OcrReplaceList fil): {0}</CommonOcrErrorsFixed>
<RemoveSpaceBetweenNumber>Fjern mellemrum mellem tal</RemoveSpaceBetweenNumber>
<FixDialogsOnOneLine>Fix dialoger på én linje</FixDialogsOnOneLine>
<RemoveDialogFirstInNonDialogs>Fjern startstreg i første linje for ikke-dialoger</RemoveDialogFirstInNonDialogs>
<NormalizeStrings>Normaliser strenge</NormalizeStrings>
<FixTurkishAnsi>Fix tyrkiske ANSI (islandske) bogstaver til Unicode</FixTurkishAnsi>
<FixDanishLetterI>Ret fejl vedr. det dansk bogstav »i«</FixDanishLetterI>
@ -732,6 +734,7 @@ Bemærk: Kontroller ledig diskplads.</WaveFileMalformed>
<FixOcrErrorExample>D0n't -&gt; Don't</FixOcrErrorExample>
<FixSpaceBetweenNumbersExample>1 100 -&gt; 1100</FixSpaceBetweenNumbersExample>
<FixDialogsOneLineExample>Hej John! - Hej Ida! -&gt; Hej John!&lt;br /&gt;- Hej Ida!</FixDialogsOneLineExample>
<RemoveDialogFirstInNonDialogsExample>- Hvordan har du det? -&gt; Hvordan har du det?</RemoveDialogFirstInNonDialogsExample>
<SelectDefault>Vælg standard</SelectDefault>
<SetDefault>Indstil aktuelle rettelser som standard</SetDefault>
<FixContinuationStyleX>Fix fortsættelsestil: {0}</FixContinuationStyleX>
@ -1206,9 +1209,9 @@ Go to "Indstillinger -&gt; Indstillinger -&gt; Værktøj" for at indtaste din Bi
</ToolBar>
<ContextMenu>
<SizeAllColumnsToFit>Auto-tilpas kolonner</SizeAllColumnsToFit>
<AdvancedSubStationAlphaSetStyle>Advanced Sub Station Alpha - vælg stilart</AdvancedSubStationAlphaSetStyle>
<SubStationAlphaSetStyle>(Advanced) Sub Station Alpha - vælg stilart</SubStationAlphaSetStyle>
<SetStyle>Vælg stil</SetStyle>
<SetActor>Vælg taler</SetActor>
<SetOverrideTags>Vælg override tags</SetOverrideTags>
<SubStationAlphaStyles>Sub Station Alpha stilarter...</SubStationAlphaStyles>
<AdvancedSubStationAlphaStyles>Advanced Sub Station Alpha stilarter...</AdvancedSubStationAlphaStyles>
<TimedTextSetRegion>Timed Text - Sæt region</TimedTextSetRegion>
@ -1272,6 +1275,7 @@ Go to "Indstillinger -&gt; Indstillinger -&gt; Værktøj" for at indtaste din Bi
<TranslateSelectedLines>Oversæt valgte linjer...</TranslateSelectedLines>
<AdjustDisplayDurationForSelectedLines>Juster visningstider for valgte linjer...</AdjustDisplayDurationForSelectedLines>
<ApplyDurationLimitsForSelectedLines>Anvend varighedsgrænser for valgte linjer...</ApplyDurationLimitsForSelectedLines>
<ApplyCustomOverrideTag>Anvend override tags</ApplyCustomOverrideTag>
<FixCommonErrorsInSelectedLines>Ret almindelige fejl i valgte linjer...</FixCommonErrorsInSelectedLines>
<ChangeCasingForSelectedLines>Skift casing (små/store/normal) for valgte linjer...</ChangeCasingForSelectedLines>
<SaveSelectedLines>Gem valgte linjer som...</SaveSelectedLines>
@ -2005,6 +2009,7 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<StartInSourceView>Start i kilde visning</StartInSourceView>
<RemoveBlankLinesWhenOpening>Fjern tomme linjer, når undertekst åbnes</RemoveBlankLinesWhenOpening>
<RemoveBlankLines>Fjern blanke linjer</RemoveBlankLines>
<ApplyAssaOverrideTags>Anvend ASSA override tags til valgte linjer</ApplyAssaOverrideTags>
<ShowLineBreaksAs>Vis linjeskift i listevisning som</ShowLineBreaksAs>
<SaveAsFileNameFrom>"Gem som..." bruger filnavn fra</SaveAsFileNameFrom>
<MainListViewDoubleClickAction>Dobbeltklik på linje i hovedvinduet listevisning starter</MainListViewDoubleClickAction>
@ -2136,6 +2141,8 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<ContinuationStyleNoneLeadingTrailingDots>Ingen, punktummer for pauser</ContinuationStyleNoneLeadingTrailingDots>
<ContinuationStyleOnlyTrailingDots>punktummer (kun bagest)</ContinuationStyleOnlyTrailingDots>
<ContinuationStyleLeadingTrailingDots>Punktummer </ContinuationStyleLeadingTrailingDots>
<ContinuationStyleLeadingTrailingEllipsis>Ellipsis</ContinuationStyleLeadingTrailingEllipsis>
<ContinuationStyleNoneTrailingEllipsis>Ingen, ellipsis til pauser</ContinuationStyleNoneTrailingEllipsis>
<ContinuationStyleLeadingTrailingDash>Bindestreg</ContinuationStyleLeadingTrailingDash>
<ContinuationStyleLeadingTrailingDashDots>Stip, men punktummer for pauser</ContinuationStyleLeadingTrailingDashDots>
<MusicSymbol>Musik symbol</MusicSymbol>
@ -2278,7 +2285,7 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<GoBack3Second>Tre sekunder tilbage</GoBack3Second>
<GoToStartCurrent>Indstil video pos til start af den aktuelle undertekst</GoToStartCurrent>
<ToggleStartEndCurrent>Skift video pos mellem start/slut af aktuelle undertekst</ToggleStartEndCurrent>
<PlayCurrent>Afspil nuværende undertekst</PlayCurrent>
<PlaySelectedLines>Afspil valgte linjer</PlaySelectedLines>
<WaveformGoToPrevSubtitle>Gå til forrige undertekst (fra video position)</WaveformGoToPrevSubtitle>
<WaveformGoToNextSubtitle>Gå til næste undertekst (fra video position)</WaveformGoToNextSubtitle>
<WaveformGoToPrevChapter>Gå til forrige kapitel</WaveformGoToPrevChapter>
@ -2291,6 +2298,8 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<PlayRateFaster>Afspilningshastighed hurtigere</PlayRateFaster>
<VideoResetSpeedAndZoom>Nulstil hastighed/zoom</VideoResetSpeedAndZoom>
<MainToggleVideoControls>Toggle videokontrol</MainToggleVideoControls>
<VideoToggleContrast>Skift kontrast (kun mpv)</VideoToggleContrast>
<VideoToggleBrightness>Skift lysstyrke (kun mpv)</VideoToggleBrightness>
<CustomSearch1>Oversæt, brugerdefineret søgning 1</CustomSearch1>
<CustomSearch2>Oversæt, brugerdefineret søgning 2</CustomSearch2>
<CustomSearch3>Oversæt, brugerdefineret søgning 3</CustomSearch3>
@ -2352,6 +2361,8 @@ kan redigere i samme undertekst fil (fælles online projekt)</Information>
<MainTextBoxAutoBreakFromPosAndGoToNext>Bryd i første mellemrum fra markørposition og gå til næste</MainTextBoxAutoBreakFromPosAndGoToNext>
<MainTextBoxUnbreak>Fjern linjeskift</MainTextBoxUnbreak>
<MainTextBoxUnbreakNoSpace>Unbreak uden plads (CJK)</MainTextBoxUnbreakNoSpace>
<MainTextBoxAssaIntellisense>Vis ASSA-tag-hjælper</MainTextBoxAssaIntellisense>
<MainTextBoxAssaRemoveTag>Fjern ASSA-tag ved markøren</MainTextBoxAssaRemoveTag>
<MainFileSaveAll>Gem alle</MainFileSaveAll>
<Miscellaneous>Diverse</Miscellaneous>
<CpsIncludesSpace>Tegn/sek (CPS) inkluderer mellemrum</CpsIncludesSpace>
@ -2627,6 +2638,10 @@ Fortsæt?</RestoreDefaultSettingsMsg>
<CategoryNote>Bemærk: Stilarterne i standardkategorien (farvet i grønt) anvendes på nye ASSA-filer</CategoryNote>
<CategoriesManage>Styre</CategoriesManage>
<MoveToCategory>Flyt valgte stilarter til kategori...</MoveToCategory>
<ScaleX>ScaleX</ScaleX>
<ScaleY>ScaleY</ScaleY>
<Spacing>Spacing</Spacing>
<Angle>Angle</Angle>
</SubStationAlphaStyles>
<SubStationAlphaStylesCategoriesManager>
<Category>Kategori</Category>

View File

@ -19,6 +19,7 @@ namespace Nikse.SubtitleEdit.Logic
public LanguageStructure.AdjustDisplayDuration AdjustDisplayDuration;
public LanguageStructure.ApplyDurationLimits ApplyDurationLimits;
public LanguageStructure.AssaAttachments AssaAttachments;
public LanguageStructure.AssaOverrideTags AssaOverrideTags;
public LanguageStructure.AudioToText AudioToText;
public LanguageStructure.AutoBreakUnbreakLines AutoBreakUnbreakLines;
public LanguageStructure.BatchConvert BatchConvert;
@ -319,6 +320,16 @@ namespace Nikse.SubtitleEdit.Logic
RemoveXAttachments = "Remove {0} attachments?",
};
AssaOverrideTags = new LanguageStructure.AssaOverrideTags
{
ApplyCustomTags = "Apply custom tags",
AdvancedSelection = "Advanced selection",
ApplyTo = "Apply to",
History = "History",
SelectedLinesX = "Selected lines: {0}",
TagsToApply = "Tags to apply",
};
AudioToText = new LanguageStructure.AudioToText
{
Title = "Audio to text",

View File

@ -487,6 +487,24 @@ namespace Nikse.SubtitleEdit.Logic
case "AssaAttachments/RemoveXAttachments":
language.AssaAttachments.RemoveXAttachments = reader.Value;
break;
case "AssaOverrideTags/ApplyCustomTags":
language.AssaOverrideTags.ApplyCustomTags = reader.Value;
break;
case "AssaOverrideTags/History":
language.AssaOverrideTags.History = reader.Value;
break;
case "AssaOverrideTags/TagsToApply":
language.AssaOverrideTags.TagsToApply = reader.Value;
break;
case "AssaOverrideTags/ApplyTo":
language.AssaOverrideTags.ApplyTo = reader.Value;
break;
case "AssaOverrideTags/SelectedLinesX":
language.AssaOverrideTags.SelectedLinesX = reader.Value;
break;
case "AssaOverrideTags/AdvancedSelection":
language.AssaOverrideTags.AdvancedSelection = reader.Value;
break;
case "AudioToText/Title":
language.AudioToText.Title = reader.Value;
break;

View File

@ -186,6 +186,16 @@
public string RemoveXAttachments { get; set; }
}
public class AssaOverrideTags
{
public string ApplyCustomTags { get; set; }
public string History { get; set; }
public string TagsToApply { get; set; }
public string ApplyTo { get; set; }
public string SelectedLinesX { get; set; }
public string AdvancedSelection { get; set; }
}
public class AudioToText
{
public string Title { get; set; }