From f057706bfb28740fe6e8181b76c64fd1360757bc Mon Sep 17 00:00:00 2001
From: yuzh <46953451+yuzh0816@users.noreply.github.com>
Date: Mon, 22 Jul 2024 00:02:14 +0800
Subject: [PATCH] i18n: Complete multilingual support for Others page.
---
UotanToolbox/Assets/Resources.Designer.cs | 351 ++++++++++++++++++
UotanToolbox/Assets/Resources.resx | 117 ++++++
UotanToolbox/Assets/Resources.zh-CN.resx | 117 ++++++
UotanToolbox/Features/Others/OthersView.axaml | 108 +++---
4 files changed, 639 insertions(+), 54 deletions(-)
diff --git a/UotanToolbox/Assets/Resources.Designer.cs b/UotanToolbox/Assets/Resources.Designer.cs
index de118a93..a4817b8b 100644
--- a/UotanToolbox/Assets/Resources.Designer.cs
+++ b/UotanToolbox/Assets/Resources.Designer.cs
@@ -2202,6 +2202,357 @@ public static string Modifypartition_TotalSize {
}
}
+ ///
+ /// 查找类似 AirMode 的本地化字符串。
+ ///
+ public static string Others_AirMode {
+ get {
+ return ResourceManager.GetString("Others_AirMode", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Alarm 的本地化字符串。
+ ///
+ public static string Others_Alarm {
+ get {
+ return ResourceManager.GetString("Others_Alarm", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Animation Duration 的本地化字符串。
+ ///
+ public static string Others_AnimationDuration {
+ get {
+ return ResourceManager.GetString("Others_AnimationDuration", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Animation Speed 的本地化字符串。
+ ///
+ public static string Others_AnimationSpeed {
+ get {
+ return ResourceManager.GetString("Others_AnimationSpeed", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Battery 的本地化字符串。
+ ///
+ public static string Others_Battery {
+ get {
+ return ResourceManager.GetString("Others_Battery", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Battery Level(%) 的本地化字符串。
+ ///
+ public static string Others_BatteryLevel {
+ get {
+ return ResourceManager.GetString("Others_BatteryLevel", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Bluetooth 的本地化字符串。
+ ///
+ public static string Others_Bluetooth {
+ get {
+ return ResourceManager.GetString("Others_Bluetooth", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Current lockscreen time: 的本地化字符串。
+ ///
+ public static string Others_CurrentLockscreenTime {
+ get {
+ return ResourceManager.GetString("Others_CurrentLockscreenTime", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Current Scale: 的本地化字符串。
+ ///
+ public static string Others_CurrentScale {
+ get {
+ return ResourceManager.GetString("Others_CurrentScale", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Display Property 的本地化字符串。
+ ///
+ public static string Others_DisplayProperty {
+ get {
+ return ResourceManager.GetString("Others_DisplayProperty", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 DP: 的本地化字符串。
+ ///
+ public static string Others_DP {
+ get {
+ return ResourceManager.GetString("Others_DP", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 DPI: 的本地化字符串。
+ ///
+ public static string Others_DPI {
+ get {
+ return ResourceManager.GetString("Others_DPI", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Earphone 的本地化字符串。
+ ///
+ public static string Others_Earphone {
+ get {
+ return ResourceManager.GetString("Others_Earphone", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Font Adjust 的本地化字符串。
+ ///
+ public static string Others_FontAdjust {
+ get {
+ return ResourceManager.GetString("Others_FontAdjust", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Hide/Show 的本地化字符串。
+ ///
+ public static string Others_HideOrShow {
+ get {
+ return ResourceManager.GetString("Others_HideOrShow", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Horizontal 的本地化字符串。
+ ///
+ public static string Others_Horizontal {
+ get {
+ return ResourceManager.GetString("Others_Horizontal", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Icon hide 的本地化字符串。
+ ///
+ public static string Others_IconHide {
+ get {
+ return ResourceManager.GetString("Others_IconHide", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Location 的本地化字符串。
+ ///
+ public static string Others_Location {
+ get {
+ return ResourceManager.GetString("Others_Location", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Lockscreen Time 的本地化字符串。
+ ///
+ public static string Others_LockscreenTime {
+ get {
+ return ResourceManager.GetString("Others_LockscreenTime", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Modify 的本地化字符串。
+ ///
+ public static string Others_Modify {
+ get {
+ return ResourceManager.GetString("Others_Modify", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Modifying... 的本地化字符串。
+ ///
+ public static string Others_Modifying {
+ get {
+ return ResourceManager.GetString("Others_Modifying", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Recover 的本地化字符串。
+ ///
+ public static string Others_Recover {
+ get {
+ return ResourceManager.GetString("Others_Recover", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Resolution 的本地化字符串。
+ ///
+ public static string Others_Resolution {
+ get {
+ return ResourceManager.GetString("Others_Resolution", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Rotation Notice 的本地化字符串。
+ ///
+ public static string Others_RotationNotice {
+ get {
+ return ResourceManager.GetString("Others_RotationNotice", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Scale 的本地化字符串。
+ ///
+ public static string Others_Scale {
+ get {
+ return ResourceManager.GetString("Others_Scale", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Set Scale: 的本地化字符串。
+ ///
+ public static string Others_SetScale {
+ get {
+ return ResourceManager.GetString("Others_SetScale", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Show Second 的本地化字符串。
+ ///
+ public static string Others_ShowSec {
+ get {
+ return ResourceManager.GetString("Others_ShowSec", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Signal 的本地化字符串。
+ ///
+ public static string Others_Signal {
+ get {
+ return ResourceManager.GetString("Others_Signal", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Simulate DC Charge 的本地化字符串。
+ ///
+ public static string Others_SimulateDCCharge {
+ get {
+ return ResourceManager.GetString("Others_SimulateDCCharge", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Simulate Uncharge 的本地化字符串。
+ ///
+ public static string Others_SimulateUncharge {
+ get {
+ return ResourceManager.GetString("Others_SimulateUncharge", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Simulate USB Charge 的本地化字符串。
+ ///
+ public static string Others_SimulateUSBCharge {
+ get {
+ return ResourceManager.GetString("Others_SimulateUSBCharge", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Simulate Wireless Charge 的本地化字符串。
+ ///
+ public static string Others_SimulateWirelessCharge {
+ get {
+ return ResourceManager.GetString("Others_SimulateWirelessCharge", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Sound 的本地化字符串。
+ ///
+ public static string Others_Sound {
+ get {
+ return ResourceManager.GetString("Others_Sound", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Temp(℃) 的本地化字符串。
+ ///
+ public static string Others_Temperature {
+ get {
+ return ResourceManager.GetString("Others_Temperature", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Time 的本地化字符串。
+ ///
+ public static string Others_Time {
+ get {
+ return ResourceManager.GetString("Others_Time", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Transition Scale 的本地化字符串。
+ ///
+ public static string Others_TransitionScale {
+ get {
+ return ResourceManager.GetString("Others_TransitionScale", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Vertical 的本地化字符串。
+ ///
+ public static string Others_Vertical {
+ get {
+ return ResourceManager.GetString("Others_Vertical", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Window Scale 的本地化字符串。
+ ///
+ public static string Others_WindowScale {
+ get {
+ return ResourceManager.GetString("Others_WindowScale", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 WLAN 的本地化字符串。
+ ///
+ public static string Others_WLAN {
+ get {
+ return ResourceManager.GetString("Others_WLAN", resourceCulture);
+ }
+ }
+
///
/// 查找类似 Bitrate 的本地化字符串。
///
diff --git a/UotanToolbox/Assets/Resources.resx b/UotanToolbox/Assets/Resources.resx
index 9fce39b7..c737e424 100644
--- a/UotanToolbox/Assets/Resources.resx
+++ b/UotanToolbox/Assets/Resources.resx
@@ -1038,4 +1038,121 @@
App is not selected
+
+ AirMode
+
+
+ Alarm
+
+
+ Animation Duration
+
+
+ Animation Speed
+
+
+ Battery
+
+
+ Battery Level(%)
+
+
+ Bluetooth
+
+
+ Current lockscreen time:
+
+
+ Current Scale:
+
+
+ Display Property
+
+
+ DP:
+
+
+ DPI:
+
+
+ Earphone
+
+
+ Font Adjust
+
+
+ Hide/Show
+
+
+ Horizontal
+
+
+ Icon hide
+
+
+ Location
+
+
+ Lockscreen Time
+
+
+ Modify
+
+
+ Modifying...
+
+
+ Recover
+
+
+ Resolution
+
+
+ Rotation Notice
+
+
+ Scale
+
+
+ Set Scale:
+
+
+ Signal
+
+
+ Simulate DC Charge
+
+
+ Simulate Uncharge
+
+
+ Simulate USB Charge
+
+
+ Simulate Wireless Charge
+
+
+ Sound
+
+
+ Temp(℃)
+
+
+ Time
+
+
+ Transition Scale
+
+
+ Vertical
+
+
+ Window Scale
+
+
+ WLAN
+
+
+ Show Second
+
\ No newline at end of file
diff --git a/UotanToolbox/Assets/Resources.zh-CN.resx b/UotanToolbox/Assets/Resources.zh-CN.resx
index 0c3b674a..c42d3760 100644
--- a/UotanToolbox/Assets/Resources.zh-CN.resx
+++ b/UotanToolbox/Assets/Resources.zh-CN.resx
@@ -1035,4 +1035,121 @@
文件未选择
+
+ 飞行
+
+
+ 闹钟
+
+
+ 动画时长
+
+
+ 动画速度
+
+
+ 电池
+
+
+ 电量(%)
+
+
+ 蓝牙
+
+
+ 当前锁屏时间:
+
+
+ 当前倍数:
+
+
+ 显示属性
+
+
+ 最小宽度(DP):
+
+
+ 显示密度(DPI):
+
+
+ 耳机
+
+
+ 字体调节
+
+
+ 隐藏/显示
+
+
+ 横向
+
+
+ 图标隐藏
+
+
+ 定位
+
+
+ 锁屏时间
+
+
+ 修改
+
+
+ 修改中...
+
+
+ 恢复
+
+
+ 分辨率:
+
+
+ 旋转提示
+
+
+ 缩放
+
+
+ 设置倍数:
+
+
+ 显秒
+
+
+ 信号
+
+
+ 模拟直流充电
+
+
+ 模拟非充电
+
+
+ 模拟USB充电
+
+
+ 模拟无线充电
+
+
+ 声音
+
+
+ 温度(℃)
+
+
+ 时间
+
+
+ 过渡缩放
+
+
+ 纵向
+
+
+ 窗口缩放
+
+
+ 无线
+
\ No newline at end of file
diff --git a/UotanToolbox/Features/Others/OthersView.axaml b/UotanToolbox/Features/Others/OthersView.axaml
index 8bd0136e..6907e957 100644
--- a/UotanToolbox/Features/Others/OthersView.axaml
+++ b/UotanToolbox/Features/Others/OthersView.axaml
@@ -19,17 +19,17 @@
Margin="15, 10"
VerticalAlignment="Top">
+ BusyText="{x:Static assets:Resources.Others_Modifying}">
+ Text="{x:Static assets:Resources.Others_DisplayProperty}" />
+ Text="{x:Static assets:Resources.Others_Resolution}" />
+ Text="{x:Static assets:Resources.Others_DPI}" />
+ Text="{x:Static assets:Resources.Others_DP}" />
-
-
+
-
-
+
+
@@ -81,13 +81,13 @@
Margin="15,10"
VerticalAlignment="Top">
+ BusyText="{x:Static assets:Resources.Others_Modifying}">
+ Text="{x:Static assets:Resources.Others_Battery}" />
@@ -96,26 +96,26 @@
Margin="5,10,5,0"
Padding="10,0,10,0"
Click="BuckBattery"
- Content="恢复">
+ Content="{x:Static assets:Resources.Others_Temperature}">
-
+
-
+
@@ -124,28 +124,28 @@
+ Text="{x:Static assets:Resources.Others_SimulateUncharge}" />
+ Text="{x:Static assets:Resources.Others_SimulateWirelessCharge}" />
+ Text="{x:Static assets:Resources.Others_SimulateUSBCharge}" />
+ Text="{x:Static assets:Resources.Others_SimulateDCCharge}" />
@@ -158,17 +158,17 @@
Margin="15,10"
VerticalAlignment="Top">
+ BusyText="{x:Static assets:Resources.Others_Modifying}">
+ Text="{x:Static assets:Resources.Others_LockscreenTime}" />
+ Text="{x:Static assets:Resources.Others_CurrentLockscreenTime}" />
-
+
@@ -196,28 +196,28 @@
VerticalAlignment="Top"
FontWeight="DemiBold"
Margin="0,15,0,0"
- Text="图标隐藏" />
+ Text="{x:Static assets:Resources.Others_IconHide}" />
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
+
+
-
+
@@ -231,13 +231,13 @@
+ Text="{x:Static assets:Resources.Others_FontAdjust}" />
+ Text="{x:Static assets:Resources.Others_Scale}" />
+ Text="{x:Static assets:Resources.Others_CurrentScale}" />
+ Text="{x:Static assets:Resources.Others_SetScale}" />
+ Content="{x:Static assets:Resources.Others_Modify}" />
@@ -304,7 +304,7 @@
+ Text="{x:Static assets:Resources.Others_AnimationSpeed}" />
@@ -312,7 +312,7 @@
Margin="8,0,0,0"
VerticalAlignment="Center"
FontSize="13"
- Text="窗口缩放" />
+ Text="{x:Static assets:Resources.Others_WindowScale}" />
+ Text="{x:Static assets:Resources.Others_SetScale}" />
+ Content="{x:Static assets:Resources.Others_Modify}" />
+ Text="{x:Static assets:Resources.Others_TransitionScale}" />
+ Text="{x:Static assets:Resources.Others_SetScale}" />
+ Content="{x:Static assets:Resources.Others_Modify}" />
+ Text="{x:Static assets:Resources.Others_AnimationDuration}" />
+ Text="{x:Static assets:Resources.Others_SetScale}" />
+ Content="{x:Static assets:Resources.Others_Modify}" />