Skip to content

Commit f4a89c2

Browse files
authored
i18n: Simplified Chinese Localization Update (#218)
* Update strings.xml * Update strings.xml * Update PlayerPreferencesScreen.kt * Update strings.xml * Update strings.xml
1 parent 5a9e420 commit f4a89c2

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

app/src/main/java/live/mehiz/mpvkt/ui/preferences/PlayerPreferencesScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ object PlayerPreferencesScreen : Screen() {
134134
SwitchPreference(
135135
value = showSeekIcon,
136136
onValueChange = preferences.showSeekIcon::set,
137-
title = { Text("Show seek icon") },
137+
title = { Text(stringResource(R.string.show_icon_on_double_tap_to_seek)) },
138138
)
139139
val showSeekTimeWhileSeeking by preferences.showSeekTimeWhileSeeking.collectAsState()
140140
SwitchPreference(
141141
value = showSeekTimeWhileSeeking,
142142
onValueChange = preferences.showSeekTimeWhileSeeking::set,
143-
title = { Text("Show seek time") },
143+
title = { Text(stringResource(R.string.show_time_on_double_tap_to_seek)) },
144144
)
145145
PreferenceCategory(
146146
title = { Text(stringResource(R.string.pref_player_gestures)) },

app/src/main/res/values-zh-rCN/strings.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,8 @@
209209
<string name="pref_custom_button_edit_button_id">(ID:%d)</string>
210210
<string name="pref_custom_button_delete_button">删除按钮</string>
211211
<string name="timer_title">休眠计时器</string>
212-
</resources>
212+
<string name="show_splash_ovals_on_double_tap_to_seek">双击跳转时显示涟漪效果</string>
213+
<string name="show_icon_on_double_tap_to_seek">显示跳转时间</string>
214+
<string name="show_time_on_double_tap_to_seek">显示跳转图标</string>
215+
216+
</resources>

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@
258258
<string name="pref_player_display_reduce_player_animation">Reduce player animation</string>
259259
<string name="pref_player_display_hide_player_control_time">Hide player control time</string>
260260
<string name="show_splash_ovals_on_double_tap_to_seek">Show ripple when double tap seeking</string>
261+
<string name="show_time_on_double_tap_to_seek">Show seek time</string>
262+
<string name="show_icon_on_double_tap_to_seek">Show seek icon</string>
261263

262264
<plurals name="plural_items">
263265
<item quantity="one">%1$d item</item>

0 commit comments

Comments
 (0)