Skip to content

Commit

Permalink
Sync with latest TrebleDroid source
Browse files Browse the repository at this point in the history
  • Loading branch information
KoysX committed Sep 12, 2023
1 parent b2022b0 commit 2b76946
Show file tree
Hide file tree
Showing 21 changed files with 448 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
From d243ce7d8837429b3a5a49030bd5b2903c5c083a Mon Sep 17 00:00:00 2001
From: KoysX <2685697179b@gmail.com>
Date: Tue, 12 Sep 2023 12:53:24 +0800
Subject: [PATCH] add-Chinese-translation

---
app/src/main/res/values-zh-rCN/strings.xml | 72 +++++++++++++++++-----
1 file changed, 57 insertions(+), 15 deletions(-)

diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 565a856..961e132 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -17,19 +17,17 @@
<resources>
<string name="settings_title">游戏空间</string>
<string name="settings_summary">管理您的游戏设置</string>
- <string name="app_selector_label">选择您的游戏</string>
+
+ <!-- Game options -->
<string name="auto_brightness_disabled_title">禁用自动亮度</string>
- <string name="auto_brightness_disabled_summary">在游戏中保持亮度稳定</string>
- <string name="heads_up_disabled_title">禁用悬浮通知</string>
- <string name="heads_up_disabled_summary">在游戏中禁用悬浮通知</string>
- <string name="game_list_title">游戏库</string>
- <string name="game_remove_message">确定从你的游戏库中删除 %1$s 吗?</string>
- <string name="app_search_title">搜索</string>
- <string name="three_screenshot_disabled_summary">游戏中临时禁用三指截图手势</string>
- <string name="three_screenshot_disabled_title">禁用三指截图</string>
+ <string name="auto_brightness_disabled_summary">游戏中保持亮度稳定</string>
+ <string name="in_game_preferences_title">游戏内选项</string>
+ <string name="three_screenshot_disabled_summary">游戏中暂时禁用三指滑动截图手势</string>
+ <string name="three_screenshot_disabled_title">禁用滑动屏幕截图</string>
<string name="chaldea">chaldeaprjkt</string>
- <string name="state_enabled">已启用</string>
+ <string name="state_enabled">启用</string>
<string name="state_disabled">禁用</string>
+
<!-- Game Mode Name - sorted by GameManager's enum, do not modify the sequence! -->
<string name="game_mode_title">游戏模式</string>
<string-array name="game_mode_names">
@@ -38,13 +36,57 @@
<item>性能</item>
<item>省电</item>
</string-array>
- <string name="heads_up_title">警告</string>
- <string name="fps_Info_title">帧率信息</string>
+ <string name="fps_Info_title">帧数信息</string>
+ <string name="notifications_title">通知</string>
+ <string name="notifications_hide">隐藏</string>
+ <string name="notifications_headsup">抬头</string>
+ <string name="notifications_reticker">reTicker</string>
+ <string name="notifications_danmaku">弹幕</string>
<string name="stay_awake_title">永不息屏</string>
- <string name="stay_awake_summary">在游戏中保持亮屏</string>
+ <string name="stay_awake_summary">游戏中保持屏幕常亮</string>

- <string name="ringer_mode_title">游戏内铃声</string>
+ <string name="ringer_mode_title">游戏内铃声模式</string>
+ <string-array name="ringer_mode_entries">
+ <item>静音</item>
+ <item>振动</item>
+ <item>正常</item>
+ <item>保持原样</item>
+ </string-array>

<string name="suppress_fullscreen_intent_title">阻止全屏事件</string>
- <string name="suppress_fullscreen_intent_summary">防止游戏中出现诸如来电之类的全屏事件</string>
+ <string name="suppress_fullscreen_intent_summary">防止在游戏中出现全屏事件,例如来电</string>
+
+ <!-- Game picker -->
+ <string name="game_list_title">图书馆</string>
+ <string name="game_list_add_title">添加</string>
+ <string name="app_selector_label">选择你的游戏</string>
+ <string name="app_search_title">搜索</string>
+ <string name="game_remove_message">您确定要从游戏列表中删除 %1$s 吗?</string>
+
+ <!-- Configure game -->
+ <string name="per_app_title">配置游戏</string>
+ <string name="per_app_mode_title">首选模式</string>
+ <string-array name="per_app_preferred_mode_entries">
+ <item>均衡</item>
+ <item>性能</item>
+ <item>省电</item>
+ </string-array>
+ <string name="per_app_angle_title">使用 ANGLE(实验)</string>
+ <string name="per_app_angle_summary">如果设备支持,请使用 ANGLE 渲染器而不是本机 GLES 驱动程序。\n警告!! 可能会破坏游戏画面,请谨慎使用!</string>
+ <string name="cant_find_angle_pkg">ANGLE 在您的系统上不可用</string>
+ <string name="per_app_unregister">从库中删除 %1$s</string>
+
+ <string name="gamespace_menu_opacity_title">覆盖菜单不透明度级别</string>
+
+ <string name="in_game_calls_title">游戏内通话</string>
+ <string name="in_game_calls_no_action">无动作</string>
+ <string name="in_game_calls_auto_answer">自动接听</string>
+ <string name="in_game_calls_auto_reject">自动拒绝</string>
+ <string name="in_game_calls_received_number">接到%1$s打来的电话</string>
+ <string name="in_game_calls_rejected_number">已拒绝 %1$s 的来电</string>
+ <string name="in_game_notifications_title">游戏内通知</string>
+ <string name="in_game_notifications_hide">不显示</string>
+ <string name="in_game_notifications_headsup">显示为抬头</string>
+ <string name="in_game_notifications_reticker">显示为 reTicker</string>
+ <string name="in_game_notifications_danmaku">显示为弹幕</string>
</resources>
--
2.34.1

51 changes: 51 additions & 0 deletions patches/pre/platform_packages_apps_Settings/0004-add-zh-rcn.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
From 11fce2d24b4147df6a37efc8be7627509cd8b4a3 Mon Sep 17 00:00:00 2001
From: KoysX <2685697179b@gmail.com>
Date: Tue, 12 Sep 2023 12:25:29 +0800
Subject: [PATCH] add-zh-rcn

---
res/values-zh-rCN/derp_strings.xml | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/res/values-zh-rCN/derp_strings.xml b/res/values-zh-rCN/derp_strings.xml
index a311d30..67dcc85 100644
--- a/res/values-zh-rCN/derp_strings.xml
+++ b/res/values-zh-rCN/derp_strings.xml
@@ -876,5 +876,34 @@
<string name="volume_separate_notification_summary">允许单独控制铃声音量与通知音量</string>
<!-- In-call notifications -->
<string name="in_call_notifications_title">通话中通知</string>
+
+ <!-- LTE only [CHAR LIMIT=100] -->
+ <string name="preferred_network_mode_lte_only_summary">Preferred network mode: LTE only</string>
+ <!-- Text for Network lte only [CHAR LIMIT=NONE] -->
+ <string name="network_lte_only">LTE only</string>
+ <!-- Text for Network 4g only [CHAR LIMIT=NONE] -->
+ <string name="network_4G_only">4G only</string>
+
+ <!-- Doze on double tap -->
+ <string name="double_tap_title">双击</string>
+ <string name="doze_double_tap_title">双击查看手机</string>
+ <string name="doze_double_tap_summary">通过双击脉冲通知</string>
+
+ <!-- Per-app data restrictions -->
+ <string name="data_usage_app_restrict_all">允许网络访问</string>
+ <string name="data_usage_app_restrict_all_summary">启用网络使用</string>
+ <string name="data_usage_app_restrict_mobile">移动数据</string>
+ <string name="data_usage_app_restrict_mobile_summary">启用移动数据的使用</string>
+ <string name="data_usage_app_restrict_vpn">VPN数据</string>
+ <string name="data_usage_app_restrict_vpn_summary">启用 VPN 数据的使用</string>
+ <string name="data_usage_app_restrict_wifi">Wi\u2011Fi数据</string>
+ <string name="data_usage_app_restrict_wifi_summary">启用 Wi\u2011Fi 数据的使用</string>
+ <string name="data_usage_app_restrict_bluetooth_ethernet">Bluetooth \u0026 Ethernet data</string>
+ <string name="data_usage_app_restrict_bluetooth_ethernet_summary">启用蓝牙互联网和以太网数据的使用</string>
+
+ <!-- Checkbox label that restricts network internet access of a specific application. [CHAR LIMIT=40] -->
+ <string name="data_usage_app_restrict_background_all">后台网络访问</string>
+ <!-- Summary message for checkbox that restricts background network access of a specific application. [CHAR LIMIT=NONE] -->
+ <string name="data_usage_app_restrict_background_all_summary">在后台启用网络使用</string>
</resources>

--
2.34.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
From a735161d6f95ec341752cfd720c3abdbdcef0d74 Mon Sep 17 00:00:00 2001
From: KoysX <2685697179b@gmail.com>
Date: Tue, 12 Sep 2023 12:36:33 +0800
Subject: [PATCH] add-Charging-control-Chinese-translation

---
res/values-zh-rCN/derp_strings.xml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

diff --git a/res/values-zh-rCN/derp_strings.xml b/res/values-zh-rCN/derp_strings.xml
index 67dcc85..ebc0d48 100644
--- a/res/values-zh-rCN/derp_strings.xml
+++ b/res/values-zh-rCN/derp_strings.xml
@@ -348,6 +348,23 @@
<string name="light_brightness_normal">正常</string>
<string name="light_brightness_zen">请勿打扰</string>

+ <!-- Charging control settings -->
+ <string name="charging_control_title">充电控制</string>
+ <string name="charging_control_summary">为您的设备自定义充电时间表和限制</string>
+ <string name="charging_control_enable_title">启用充电控制</string>
+ <string name="charging_control_mode_title">充电方式</string>
+ <string name="charging_control_mode_auto_title">自动排程</string>
+ <string name="charging_control_mode_auto_summary">根据设置的警报自动确定何时开始充电</string>
+ <string name="charging_control_mode_custom_title">定制时间表</string>
+ <string name="charging_control_mode_custom_summary">设置充满电的目标时间</string>
+ <string name="charging_control_mode_limit_title">限制充电</string>
+ <string name="charging_control_mode_limit_summary">将充电限制在一定百分比</string>
+ <string name="charging_control_start_time_title">开始时间</string>
+ <string name="charging_control_start_time_summary">当您在 %s 之后开始充电时,充电控制将激活</string>
+ <string name="charging_control_target_time_title">充满电的目标时间</string>
+ <string name="charging_control_target_time_summary">电池将在 %s 之前充满电</string>
+ <string name="charging_control_limit_title">限制</string>
+
<!-- Battery light settings -->
<string name="battery_light_title">电池灯</string>
<string name="battery_light_summary">自定义电池灯行为</string>
--
2.34.1

Loading

0 comments on commit 2b76946

Please sign in to comment.