Skip to content

Commit

Permalink
feat: 为新选项添加本地化
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Sep 8, 2021
1 parent f720690 commit 2617c99
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Magpie/Options/ApplicationOptionsPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<CheckBox x:Name="ckbRunAtStartUp" Content="{x:Static p:Resources.UI_Options_Application_Run_At_Startup}" Margin="0,20,0,0" Unchecked="CkbRunAtStartUp_Unchecked"/>
<CheckBox
x:Name="ckbMinimizeAtStartUp"
Content="{x:Static p:Resources.UI_Options_Application_Minimise_To_System_Tray}"
Content="{x:Static p:Resources.UI_Options_Application_Minimize_To_System_Tray}"
Margin="20,10,0,0"
Unchecked="CkbMinimizeAtStartUp_Unchecked"
IsChecked="{Binding Source={x:Static props:Settings.Default},Path=MinimizeAtWindowsStartUp,Mode=TwoWay}"
Expand All @@ -35,7 +35,7 @@
<CheckBox
x:Name="ckbMinimizeWhenClose"
Content="{x:Static p:Resources.UI_Options_Application_Minimize_When_Close}"
Margin="0,10,0,0"
Margin="0,20,0,0"
IsChecked="{Binding Source={x:Static props:Settings.Default},Path=MinimizeWhenClose,Mode=TwoWay}"
/>
</StackPanel>
Expand Down
6 changes: 3 additions & 3 deletions Magpie/Properties/Resources.Designer.cs

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

4 changes: 2 additions & 2 deletions Magpie/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@
<data name="UI_Options_Application_Language_Default" xml:space="preserve">
<value>Default</value>
</data>
<data name="UI_Options_Application_Minimise_To_System_Tray" xml:space="preserve">
<value>Minimise to the System Tray at Startup</value>
<data name="UI_Options_Application_Minimize_To_System_Tray" xml:space="preserve">
<value>Minimize to the System Tray at Startup</value>
</data>
<data name="UI_Options_Application_Minimize_When_Close" xml:space="preserve">
<value>Minimize to the System Tray when Close the Window</value>
Expand Down
2 changes: 1 addition & 1 deletion Magpie/Properties/Resources.ru-RU.resx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
<data name="UI_Options_Application_Language_Default" xml:space="preserve">
<value>По умолчанию</value>
</data>
<data name="UI_Options_Application_Minimise_To_System_Tray" xml:space="preserve">
<data name="UI_Options_Application_Minimize_To_System_Tray" xml:space="preserve">
<value>Минимизировать системную область при запуске</value>
</data>
<data name="UI_Options_Application_Run_At_Startup" xml:space="preserve">
Expand Down
5 changes: 4 additions & 1 deletion Magpie/Properties/Resources.zh-CN.resx
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,12 @@
<data name="UI_Options_Application_Language_Default" xml:space="preserve">
<value>默认</value>
</data>
<data name="UI_Options_Application_Minimise_To_System_Tray" xml:space="preserve">
<data name="UI_Options_Application_Minimize_To_System_Tray" xml:space="preserve">
<value>开机启动时最小化到系统托盘</value>
</data>
<data name="UI_Options_Application_Minimize_When_Close" xml:space="preserve">
<value>关闭时最小化到系统托盘</value>
</data>
<data name="UI_Options_Application_Run_At_Startup" xml:space="preserve">
<value>开机启动</value>
</data>
Expand Down

0 comments on commit 2617c99

Please sign in to comment.