Skip to content

Commit

Permalink
[app] i18n & layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed May 22, 2022
1 parent 892125f commit 987fdf0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ fun HeaderContent(state: HeaderState, onHeaderClick: () -> Unit) {
onHeaderClick()
}) {
Text(
text = "${headerInfo.runningAppsCount}${stringResource(id = R.string.boost_status_running_apps)}",
modifier = Modifier.alignByBaseline(),
text = "${headerInfo.runningAppsCount}",
style = MaterialTheme.typography.titleLarge,
color = Color(onSurfaceColor)
)
Text(
modifier = Modifier.alignByBaseline(),
text = stringResource(id = R.string.boost_status_running_apps),
style = MaterialTheme.typography.titleMedium,
color = Color(onSurfaceColor)
)
Expand Down Expand Up @@ -95,13 +102,14 @@ fun HeaderContent(state: HeaderState, onHeaderClick: () -> Unit) {
startAngle = 90f,
centerContent = {
Text(
text = "Memory",
text = stringResource(id = R.string.boost_status_system_memory),
style = productSansBoldTypography().caption,
color = Color(onSurfaceColor)
)
}
)

StandardSpacer()
StandardSpacer()

Column {
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<string name="secure_privacy_enabled_apps">个应用受限</string>
<string name="secure_privacy_request_count">已处理%s次身份信息请求</string>

<string name="boost_status_system_memory">系统内存</string>
<string name="boost_status_system_memory">内存</string>
<string name="boost_status_system_storage">存储空间</string>

<string name="feature_category_start_manage">启动</string>
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values-zh-rTW/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<string name="secure_privacy_enabled_apps">個應用受限</string>
<string name="secure_privacy_request_count">已處理%s次身份信息請求</string>

<string name="boost_status_system_memory">系統內存</string>
<string name="boost_status_system_memory">內存</string>
<string name="boost_status_system_storage">存儲空間</string>

<string name="feature_category_start_manage">啟動</string>
Expand Down

0 comments on commit 987fdf0

Please sign in to comment.