Skip to content

Commit

Permalink
Use translations for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN committed Nov 28, 2023
1 parent fd7d8aa commit 568c3df
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 5 deletions.
27 changes: 27 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.es.resx
Original file line number Diff line number Diff line change
Expand Up @@ -799,4 +799,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -798,4 +798,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.pl.resx
Original file line number Diff line number Diff line change
Expand Up @@ -798,4 +798,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -797,4 +797,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.ru.resx
Original file line number Diff line number Diff line change
Expand Up @@ -798,4 +798,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.tr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -799,4 +799,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.uk.resx
Original file line number Diff line number Diff line change
Expand Up @@ -798,4 +798,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
9 changes: 9 additions & 0 deletions TwitchDownloaderWPF/Translations/Strings.zh.resx
Original file line number Diff line number Diff line change
Expand Up @@ -797,4 +797,13 @@
<data name="RestartTheApplication" xml:space="preserve">
<value>Please restart {0}</value><comment>{0] is the name of the application.</comment>
</data>
<data name="ButtonRestoreDefaultSettings" xml:space="preserve">
<value>Restore Defaults</value>
</data>
<data name="ButtonSaveSettings" xml:space="preserve">
<value>Save</value>
</data>
<data name="ButtonCancelSettingsChanges" xml:space="preserve">
<value>Cancel</value>
</data>
</root>
10 changes: 5 additions & 5 deletions TwitchDownloaderWPF/WindowSettings.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@
</StackPanel>
<Grid Grid.Row="2" Grid.Column="1" VerticalAlignment="Bottom" MinHeight="30">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
</Grid.ColumnDefinitions>
<Button Grid.Column="0" x:Name="BtnResetSettings" Content="Restore Defaults" HorizontalAlignment="Left" Click="BtnResetSettings_OnClick" Background="{DynamicResource ActionButtonBackground}" BorderBrush="{DynamicResource ActionButtonBorder}" Foreground="{DynamicResource ActionButtonText}" />
<Button Grid.Column="0" x:Name="BtnResetSettings" Content="{lex:Loc ButtonRestoreDefaultSettings}" HorizontalAlignment="Left" Click="BtnResetSettings_OnClick" Background="{DynamicResource ActionButtonBackground}" BorderBrush="{DynamicResource ActionButtonBorder}" Foreground="{DynamicResource ActionButtonText}" />
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="BtnSaveSettings" Margin="2,0,2,0" MinWidth="50" Content="Save" Click="BtnSaveSettings_OnClick" Background="{DynamicResource ActionButtonBackground}" BorderBrush="{DynamicResource ActionButtonBorder}" Foreground="{DynamicResource ActionButtonText}" />
<Button x:Name="BtnCancelSettings" Margin="2,0,2, 0" MinWidth="50" Content="Cancel" Click="BtnCancelSettings_OnClick" Background="{DynamicResource ActionButtonBackground}" BorderBrush="{DynamicResource ActionButtonBorder}" Foreground="{DynamicResource ActionButtonText}" />
<Button x:Name="BtnSaveSettings" Margin="2,0,2,0" MinWidth="50" Content="{lex:Loc ButtonSaveSettings}" Click="BtnSaveSettings_OnClick" Background="{DynamicResource ActionButtonBackground}" BorderBrush="{DynamicResource ActionButtonBorder}" Foreground="{DynamicResource ActionButtonText}" />
<Button x:Name="BtnCancelSettings" Margin="2,0,2, 0" MinWidth="50" Content="{lex:Loc ButtonCancelSettingsChanges}" Click="BtnCancelSettings_OnClick" Background="{DynamicResource ActionButtonBackground}" BorderBrush="{DynamicResource ActionButtonBorder}" Foreground="{DynamicResource ActionButtonText}" />
</StackPanel>
</Grid>
</Grid>
Expand Down

0 comments on commit 568c3df

Please sign in to comment.