Просмотр исходного кода

UI: localize the button & make it smaller

Evan Husted 1 год назад
Родитель
Сommit
0f18df982f

+ 48 - 0
src/Ryujinx/Assets/locales.json

@@ -3765,6 +3765,30 @@
         "zh_TW": "系統時鐘:"
         "zh_TW": "系統時鐘:"
       }
       }
     },
     },
+    {
+      "ID": "SettingsTabSystemSystemTimeMatch",
+      "Translations": {
+        "ar_SA": "",
+        "de_DE": "",
+        "el_GR": "",
+        "en_US": "Match PC Time",
+        "es_ES": "",
+        "fr_FR": "",
+        "he_IL": "",
+        "it_IT": "",
+        "ja_JP": "",
+        "ko_KR": "",
+        "no_NO": "",
+        "pl_PL": "",
+        "pt_BR": "",
+        "ru_RU": "",
+        "th_TH": "",
+        "tr_TR": "",
+        "uk_UA": "",
+        "zh_CN": "",
+        "zh_TW": ""
+      }
+    },
     {
     {
       "ID": "SettingsTabSystemEnablePptc",
       "ID": "SettingsTabSystemEnablePptc",
       "Translations": {
       "Translations": {
@@ -14541,6 +14565,30 @@
         "zh_TW": "變更系統時鐘"
         "zh_TW": "變更系統時鐘"
       }
       }
     },
     },
+    {
+      "ID": "MatchTimeTooltip",
+      "Translations": {
+        "ar_SA": "",
+        "de_DE": "",
+        "el_GR": "",
+        "en_US": "Change System Time to match your PC's time.",
+        "es_ES": "",
+        "fr_FR": "",
+        "he_IL": "",
+        "it_IT": "",
+        "ja_JP": "",
+        "ko_KR": "",
+        "no_NO": "",
+        "pl_PL": "",
+        "pt_BR": "",
+        "ru_RU": "",
+        "th_TH": "",
+        "tr_TR": "",
+        "uk_UA": "",
+        "zh_CN": "",
+        "zh_TW": ""
+      }
+    },
     {
     {
       "ID": "VSyncToggleTooltip",
       "ID": "VSyncToggleTooltip",
       "Translations": {
       "Translations": {

+ 0 - 3
src/Ryujinx/UI/ViewModels/SettingsViewModel.cs

@@ -329,9 +329,6 @@ namespace Ryujinx.Ava.UI.ViewModels
             }
             }
         }
         }
 
 
-        //private DateTimeOffset _currentDate;
-        //private TimeSpan _currentTime;
-
         public DateTimeOffset CurrentDate { get; set; }
         public DateTimeOffset CurrentDate { get; set; }
 
 
         public TimeSpan CurrentTime { get; set; }
         public TimeSpan CurrentTime { get; set; }

+ 4 - 4
src/Ryujinx/UI/Views/Settings/SettingsSystemView.axaml

@@ -183,15 +183,15 @@
                             ToolTip.Tip="{ext:Locale TimeTooltip}" />
                             ToolTip.Tip="{ext:Locale TimeTooltip}" />
                     </StackPanel>
                     </StackPanel>
                     <StackPanel
                     <StackPanel
-                        Margin="250,0,0,10"
+                        Margin="350,0,0,10"
                         Orientation="Horizontal">
                         Orientation="Horizontal">
                         <Button
                         <Button
                             VerticalAlignment="Center"
                             VerticalAlignment="Center"
                             Click="MatchSystemTime_OnClick"
                             Click="MatchSystemTime_OnClick"
                             Background="{DynamicResource SystemAccentColor}"
                             Background="{DynamicResource SystemAccentColor}"
-                            Width="350"
-                            ToolTip.Tip="{ext:Locale TimeTooltip}">
-                            <TextBlock Text="Match System Time" />
+                            Width="150"
+                            ToolTip.Tip="{ext:Locale MatchTimeTooltip}">
+                            <TextBlock Text="{ext:Locale SettingsTabSystemSystemTimeMatch}" />
                         </Button>
                         </Button>
                     </StackPanel>
                     </StackPanel>
                     <Separator />
                     <Separator />