From ee9740be8d73b91c0a7ef29cab88c35baa85e558 Mon Sep 17 00:00:00 2001
From: chinosk <2248589280@qq.com>
Date: Tue, 11 Jun 2024 14:13:31 +0800
Subject: [PATCH] add English UI text

---
 app/src/main/res/layout/activity_main.xml | 16 +++++++-------
 app/src/main/res/values/strings.xml       | 26 +++++++++++++++--------
 2 files changed, 25 insertions(+), 17 deletions(-)

diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index f9b35fd..287abf5 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -80,7 +80,7 @@
                             android:layout_height="48dp"
                             android:checked="@={config.textTest}"
                             android:onCheckedChanged="@{(view, value) -> listener.onTextTestChanged(value)}"
-                            android:text="文本 hook 测试模式" />
+                            android:text="@string/text_hook_test_mode" />
                     </TableRow>
 
                     <TableRow
@@ -93,7 +93,7 @@
                             android:layout_height="48dp"
                             android:checked="@={config.dumpText}"
                             android:onCheckedChanged="@{(view, value) -> listener.onDumpTextChanged(value)}"
-                            android:text="导出文本" />
+                            android:text="@string/export_text" />
                     </TableRow>
 
                     <TableRow
@@ -106,7 +106,7 @@
                             android:layout_height="48dp"
                             android:checked="@={config.forceExportResource}"
                             android:onCheckedChanged="@{(view, value) -> listener.onForceExportResourceChanged(value)}"
-                            android:text="启动后强制导出资源" />
+                            android:text="@string/force_export_resource" />
                     </TableRow>
 
 
@@ -294,7 +294,7 @@
                                         android:layout_weight="1"
                                         android:minWidth="1sp"
                                         android:onClick="@{() -> listener.onChangePresetQuality(4)}"
-                                        android:text="极高" />
+                                        android:text="@string/max_high" />
 
                                     <com.google.android.material.button.MaterialButton
                                         android:id="@+id/qualityVeryHighButton"
@@ -304,7 +304,7 @@
                                         android:layout_weight="1"
                                         android:minWidth="1sp"
                                         android:onClick="@{() -> listener.onChangePresetQuality(3)}"
-                                        android:text="超高" />
+                                        android:text="@string/very_high" />
 
                                     <com.google.android.material.button.MaterialButton
                                         android:id="@+id/qualityHighButton"
@@ -314,7 +314,7 @@
                                         android:layout_weight="1"
                                         android:minWidth="1sp"
                                         android:onClick="@{() -> listener.onChangePresetQuality(2)}"
-                                        android:text="高" />
+                                        android:text="@string/hign" />
 
                                     <com.google.android.material.button.MaterialButton
                                         android:id="@+id/qualityMidButton"
@@ -324,7 +324,7 @@
                                         android:layout_weight="1"
                                         android:minWidth="1sp"
                                         android:onClick="@{() -> listener.onChangePresetQuality(1)}"
-                                        android:text="中" />
+                                        android:text="@string/middle" />
 
                                     <com.google.android.material.button.MaterialButton
                                         android:id="@+id/qualityLowButton"
@@ -333,7 +333,7 @@
                                         android:layout_weight="1"
                                         android:minWidth="1sp"
                                         android:onClick="@{() -> listener.onChangePresetQuality(0)}"
-                                        android:text="低" />
+                                        android:text="@string/low" />
 
                                 </LinearLayout>
 
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 093b278..736fc51 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1,14 +1,22 @@
 <resources>
     <string name="app_name">Gakumas Localify</string>
     <string name="gakumas_localify">Gakumas Localify</string>
-    <string name="enable_plugin">启用插件 (不可热重载)</string>
-    <string name="enable_free_camera">启用自由视角(可热重载; 需使用实体键盘)</string>
-    <string name="start_game">以上述配置启动游戏/重载配置</string>
-    <string name="setFpsTitle">最大 FPS (0 为保持游戏原设置)</string>
-    <string name="unlockAllLive">解锁所有 Live</string>
-    <string name="liveUseCustomeDress">Live 使用自定义角色</string>
-    <string name="live_costume_head_id">Live 自定义头部 ID (例: costume_head_hski-cstm-0002)</string>
-    <string name="live_custome_dress_id">Live 自定义服装 ID (例: hski-cstm-0002)</string>
-    <string name="useCustomeGraphicSettings">使用自定义画质设置</string>
+    <string name="enable_plugin">Enable Plugin (Can\'t Hot Reloading)</string>
+    <string name="enable_free_camera">Enable Free Camera</string>
+    <string name="start_game">Start Game / Hot Reload Config</string>
+    <string name="setFpsTitle">Max FPS (0 is Not Change)</string>
+    <string name="unlockAllLive">Unlock All Live</string>
+    <string name="liveUseCustomeDress">Live Custom Character</string>
+    <string name="live_costume_head_id">Live Custom Head ID (eg. costume_head_hski-cstm-0002)</string>
+    <string name="live_custome_dress_id">Live Custom Costume ID (eg. hski-cstm-0002)</string>
+    <string name="useCustomeGraphicSettings">Use Custom Graphics Settings</string>
     <string name="renderscale">RenderScale (0.5/0.59/0.67/0.77/1.0)</string>
+    <string name="text_hook_test_mode">Text Hook Test Mode</string>
+    <string name="export_text">Export Text</string>
+    <string name="force_export_resource">Force Update Resource</string>
+    <string name="max_high">Ex High</string>
+    <string name="very_high">Very High</string>
+    <string name="hign">High</string>
+    <string name="middle">Mid</string>
+    <string name="low">Low</string>
 </resources>
\ No newline at end of file