Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 6a785ba

Browse files
committed
proper translation to new config window buttons
1 parent 7235fb6 commit 6a785ba

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

UI/Windows/ConfigWindow.xaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -106,19 +106,19 @@
106106
<Button Name="NewButton" MaxWidth="70" Margin="3,0,3,0" Grid.Column="0" Click="NewButton_Click">
107107
<StackPanel Orientation="Horizontal">
108108
<Image Source="/SPCode;component/Resources/Icons/icon-add.png" Width="13"/>
109-
<TextBlock Name="AddButtonText" Text="Add" FontSize="11" Margin="5,0,0,0"/>
109+
<TextBlock Name="NewButtonText" FontSize="11" Margin="5,0,0,0"/>
110110
</StackPanel>
111111
</Button>
112112
<Button Name="CopyButton" MaxWidth="70" Margin="3,0,3,0" Grid.Column="1" Click="CopyButton_Click">
113113
<StackPanel Orientation="Horizontal">
114114
<Image Source="/SPCode;component/Resources/Icons/icon-duplicate.png" Width="13"/>
115-
<TextBlock Name="CopyButtonText" Text="Copy" FontSize="11" Margin="5,0,0,0"/>
115+
<TextBlock Name="CopyButtonText" FontSize="11" Margin="5,0,0,0"/>
116116
</StackPanel>
117117
</Button>
118118
<Button Name="DeleteButton" MaxWidth="70" Margin="3,0,3,0" Grid.Column="2" Click="DeleteButton_Click">
119119
<StackPanel Orientation="Horizontal">
120120
<Image Source="/SPCode;component/Resources/Icons/icon-trash.png" Width="13"/>
121-
<TextBlock Name="RemoveButtonText" Text="Delete" FontSize="11" Margin="5,0,0,0"/>
121+
<TextBlock Name="DeleteButtonText" FontSize="11" Margin="5,0,0,0"/>
122122
</StackPanel>
123123
</Button>
124124

UI/Windows/ConfigWindow.xaml.cs

+3
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,11 @@ private void Language_Translate()
829829
{
830830
Title = Translate("Configs");
831831
NewButton.ToolTip = Translate("New");
832+
NewButtonText.Text = Translate("New");
832833
CopyButton.ToolTip = Translate("Copy");
834+
CopyButtonText.Text = Translate("Copy");
833835
DeleteButton.ToolTip = Translate("Delete");
836+
DeleteButtonText.Text = Translate("Delete");
834837
AddSMDirButton.Content = Translate("Add");
835838
RemoveSMDirButton.Content = Translate("Remove");
836839
NameBlock.Text = Translate("Name");

0 commit comments

Comments
 (0)