diff --git a/app/src/main/java/dev/bluehouse/enablevolte/Components.kt b/app/src/main/java/dev/bluehouse/enablevolte/Components.kt
index 02dd011..411545e 100644
--- a/app/src/main/java/dev/bluehouse/enablevolte/Components.kt
+++ b/app/src/main/java/dev/bluehouse/enablevolte/Components.kt
@@ -516,12 +516,12 @@ fun FiniteLoadingDialog(current: Int, total: Int) {
) {
Box(modifier = Modifier.padding(16.dp)) {
Column {
- Text("Loading...", fontWeight = FontWeight.Bold, fontSize = 24.sp)
+ Text(stringResource(R.string.loading), fontWeight = FontWeight.Bold, fontSize = 24.sp)
LinearProgressIndicator(
modifier = Modifier.semantics(mergeDescendants = true) {}.padding(top = 24.dp, bottom = 4.dp).fillMaxWidth(),
progress = current.toFloat() / total,
)
- Text(text = "Loaded $current of $total")
+ Text(stringResource(R.string.loaded, current, total))
}
}
}
diff --git a/app/src/main/java/dev/bluehouse/enablevolte/pages/Config.kt b/app/src/main/java/dev/bluehouse/enablevolte/pages/Config.kt
index 0e39fe7..66d5a14 100644
--- a/app/src/main/java/dev/bluehouse/enablevolte/pages/Config.kt
+++ b/app/src/main/java/dev/bluehouse/enablevolte/pages/Config.kt
@@ -374,7 +374,7 @@ fun Config(navController: NavController, subId: Int) {
}
}
ClickablePropertyView(
- label = "Expert Mode",
+ label = stringResource(R.string.expert_mode),
value = "",
) {
navController.navigate("config$subId/edit")
diff --git a/app/src/main/java/dev/bluehouse/enablevolte/pages/Editor.kt b/app/src/main/java/dev/bluehouse/enablevolte/pages/Editor.kt
index c387734..815393d 100644
--- a/app/src/main/java/dev/bluehouse/enablevolte/pages/Editor.kt
+++ b/app/src/main/java/dev/bluehouse/enablevolte/pages/Editor.kt
@@ -352,7 +352,7 @@ fun Editor(subId: Int) {
IconButton({ showFieldNameInsteadOfKey = !showFieldNameInsteadOfKey }) {
if (showFieldNameInsteadOfKey) { Text("a") } else { Text("A") }
}
- TextField(searchKeyword, modifier = Modifier.fillMaxWidth().weight(1f), label = { Text("Search") }, onValueChange = { searchKeyword = it }, singleLine = true, trailingIcon = {
+ TextField(searchKeyword, modifier = Modifier.fillMaxWidth().weight(1f), label = { Text(stringResource(R.string.search)) }, onValueChange = { searchKeyword = it }, singleLine = true, trailingIcon = {
if (searchKeyword.isNotEmpty()) {
IconButton({ searchKeyword = "" }) {
Icon(Icons.Filled.Clear, contentDescription = "Localized description")
@@ -437,7 +437,7 @@ fun Editor(subId: Int) {
Column {
Row(modifier = Modifier.padding(16.dp)) {
Column {
- Text("Edit Value", fontWeight = FontWeight.Medium, fontSize = 24.sp)
+ Text(stringResource(R.string.edit_value), fontWeight = FontWeight.Medium, fontSize = 24.sp)
Text("${data.key} (${data.fieldName})", modifier = Modifier.padding(top = 6.dp), fontFamily = FontFamily.Monospace)
}
}
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 84b3cbf..8cdeddd 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -61,5 +61,10 @@
是
否
重新注册IMS
- Working on it…
+ 请稍后…
+ 专家模式
+ 加载中...
+ 已加载 %1$s 共 %2$s
+ 更改值
+ 搜索
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index ecde2cf..bcedb1d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -61,4 +61,9 @@
No
Restart IMS registration
Working on it…
+ Expert Mode
+ Loading...
+ Loaded %1$s of %2$s
+ Edit Value
+ Search