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> <RemoveOneAttachment>Remove one attachment?</RemoveOneAttachment>
<RemoveXAttachments>Remove {0} attachments?</RemoveXAttachments> <RemoveXAttachments>Remove {0} attachments?</RemoveXAttachments>
</AssaAttachments> </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> <AudioToText>
<Title>Audio to text</Title> <Title>Audio to text</Title>
<ExtractingAudioUsingX>Extracting audio using {0}...</ExtractingAudioUsingX> <ExtractingAudioUsingX>Extracting audio using {0}...</ExtractingAudioUsingX>

View File

@ -1,7 +1,7 @@
 
namespace Nikse.SubtitleEdit.Forms.Assa namespace Nikse.SubtitleEdit.Forms.Assa
{ {
partial class AdvancedSelectionHelper sealed partial class AdvancedSelectionHelper
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.

View File

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

View File

@ -43,6 +43,12 @@ namespace Nikse.SubtitleEdit.Forms.Assa
MainTextBoxAssaIntellisense = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAssaIntellisense); MainTextBoxAssaIntellisense = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAssaIntellisense);
MainTextBoxAssaRemoveTag = UiUtil.GetKeys(Configuration.Settings.Shortcuts.MainTextBoxAssaRemoveTag); 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; buttonOK.Text = LanguageSettings.Current.General.Ok;
buttonCancel.Text = LanguageSettings.Current.General.Cancel; buttonCancel.Text = LanguageSettings.Current.General.Cancel;
UiUtil.FixLargeFonts(this, buttonOK); UiUtil.FixLargeFonts(this, buttonOK);
@ -53,8 +59,6 @@ namespace Nikse.SubtitleEdit.Forms.Assa
seTextBox1.Text = Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory[0]; seTextBox1.Text = Configuration.Settings.SubtitleSettings.AssaOverrideTagHistory[0];
} }
radioButtonAdvancedSelection_CheckedChanged(null, null);
radioButtonSelectedLines.Text = string.Format("Selected lines: {0}", _selectedIndices.Length);
groupBoxPreview.Visible = false; groupBoxPreview.Visible = false;
_originalHeight = Height; _originalHeight = Height;

View File

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

View File

@ -19,6 +19,7 @@ namespace Nikse.SubtitleEdit.Logic
public LanguageStructure.AdjustDisplayDuration AdjustDisplayDuration; public LanguageStructure.AdjustDisplayDuration AdjustDisplayDuration;
public LanguageStructure.ApplyDurationLimits ApplyDurationLimits; public LanguageStructure.ApplyDurationLimits ApplyDurationLimits;
public LanguageStructure.AssaAttachments AssaAttachments; public LanguageStructure.AssaAttachments AssaAttachments;
public LanguageStructure.AssaOverrideTags AssaOverrideTags;
public LanguageStructure.AudioToText AudioToText; public LanguageStructure.AudioToText AudioToText;
public LanguageStructure.AutoBreakUnbreakLines AutoBreakUnbreakLines; public LanguageStructure.AutoBreakUnbreakLines AutoBreakUnbreakLines;
public LanguageStructure.BatchConvert BatchConvert; public LanguageStructure.BatchConvert BatchConvert;
@ -319,6 +320,16 @@ namespace Nikse.SubtitleEdit.Logic
RemoveXAttachments = "Remove {0} attachments?", 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 AudioToText = new LanguageStructure.AudioToText
{ {
Title = "Audio to text", Title = "Audio to text",

View File

@ -487,6 +487,24 @@ namespace Nikse.SubtitleEdit.Logic
case "AssaAttachments/RemoveXAttachments": case "AssaAttachments/RemoveXAttachments":
language.AssaAttachments.RemoveXAttachments = reader.Value; language.AssaAttachments.RemoveXAttachments = reader.Value;
break; 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": case "AudioToText/Title":
language.AudioToText.Title = reader.Value; language.AudioToText.Title = reader.Value;
break; break;

View File

@ -186,6 +186,16 @@
public string RemoveXAttachments { get; set; } 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 class AudioToText
{ {
public string Title { get; set; } public string Title { get; set; }