Skip to content

Commit

Permalink
Complete translation to chinese (#9)
Browse files Browse the repository at this point in the history
* Optimize Simplified Chinese translations

Make them more authentic.

* Correct a typo in `strings.xml`

~winder~ winter

* Replace a hardcoded string in `fragment_home.xml`

* Replace hardcoded strings related to updating in `HomeFragment.java`

* Update `strings.xml`

* Distinguish `true``false` strings at 2 different place in `HomeFragment.java` for some languages' need

* Update `strings.xml`

* Update Simplified Chinese `strings.xml`

* Replace a hardcoded string in `root_preferences.xml`

* Update `strings.xml`

* Update Simplified Chinese `strings.xml`

* Fix Simplified Chinese `strings.xml`
  • Loading branch information
kxob authored Jan 17, 2025
1 parent 683fe77 commit 5d16eff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
<string name="description_abnormal">检测到对环境的修改。</string>
<string name="settings">设置</string>
<string name="title_activity_settings">SettingsActivity</string>


<!-- 设置相关 -->
​<string name="title_general">通用设置</string>
<string name="pref_telemetry">禁用遥测功能</string>
<string name="pref_telemetry_on">遥测已关闭</string>
<string name="pref_telemetry_off">不再收集和发送匿名统计数据</string>
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string name="false_a">False</string>
<string name="true_b">True</string>
<string name="false_b">False</string>
<string name="sysinfo">System :</string>
<string name="sysinfo">System Informations</string>
<string name="sysinfo_device">Device: %s</string>
<string name="sysinfo_android_version">Android Version: %s</string>
<string name="sysinfo_kernel_version">Kernel Version: %s</string>
Expand All @@ -25,6 +25,8 @@
<string name="settings">Settings</string>
<string name="title_activity_settings">SettingsActivity</string>

<!-- Preference Strings -->
<string name="title_general">General</string>
<string name="pref_telemetry">Disable Telemetry</string>
<string name="pref_telemetry_on">Sentry telemetry is disabled</string>
<string name="pref_telemetry_off">This will disable Sentry telemetry</string>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/root_preferences.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory app:title="General">
<PreferenceCategory app:title="@string/title_general">
<CheckBoxPreference
app:key="disable_telemetry"
app:title="@string/pref_telemetry"
Expand Down

0 comments on commit 5d16eff

Please sign in to comment.