manager: Make more strings translatable (#622)

Co-authored-by: weishu <twsxtd@gmail.com>
This commit is contained in:
Hikari-no-Tenshi
2023-06-13 07:51:03 +03:00
committed by GitHub
parent ee548d513a
commit b5291077a9
3 changed files with 12 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ fun RootProfileConfig(
val keyboardController = LocalSoftwareKeyboardController.current
OutlinedTextField(
modifier = Modifier.fillMaxWidth(),
label = { Text("SELinux context") },
label = { Text(text = stringResource(R.string.profile_selinux_context)) },
value = profile.context,
keyboardOptions = KeyboardOptions(
keyboardType = KeyboardType.Ascii,
@@ -219,7 +219,7 @@ fun GroupsPanel(selected: List<Groups>, closeSelection: (selection: Set<Groups>)
showDialog = false
}),
header = Header.Default(
title = "Groups",
title = stringResource(R.string.profile_groups),
),
selection = ListSelection.Multiple(
showCheckBoxes = true,
@@ -244,7 +244,7 @@ fun GroupsPanel(selected: List<Groups>, closeSelection: (selection: Set<Groups>)
}) {
Column(modifier = Modifier.padding(16.dp)) {
Text("groups")
Text(stringResource(R.string.profile_groups))
FlowRow {
selected.forEach { group ->
AssistChip(
@@ -285,7 +285,7 @@ fun CapsPanel(
showDialog = false
}),
header = Header.Default(
title = "Capabilities",
title = stringResource(R.string.profile_capabilities),
),
selection = ListSelection.Multiple(
showCheckBoxes = true,
@@ -309,7 +309,7 @@ fun CapsPanel(
}) {
Column(modifier = Modifier.padding(16.dp)) {
Text("Capabilities")
Text(stringResource(R.string.profile_capabilities))
FlowRow {
selected.forEach { group ->
AssistChip(

View File

@@ -65,6 +65,9 @@
<string name="profile_namespace_inherited">Наслідуваний</string>
<string name="profile_namespace_global">Глобальний</string>
<string name="profile_namespace_individual">Індивідуальний</string>
<string name="profile_groups">Групи</string>
<string name="profile_capabilities">Можливості</string>
<string name="profile_selinux_context">Контекст SELinux</string>
<string name="profile_umount_modules">Розмонтувати модулі</string>
<string name="failed_to_update_app_profile">Не вдалося оновити профіль додатка для %s</string>
<string name="require_kernel_version">Поточна версія ядра %d занизька для належної роботи менджера. Будь ласка, оновіть до версії %d або вище!</string>

View File

@@ -65,6 +65,9 @@
<string name="profile_namespace_inherited">Inherited</string>
<string name="profile_namespace_global">Global</string>
<string name="profile_namespace_individual">Individual</string>
<string name="profile_groups">Groups</string>
<string name="profile_capabilities">Capabilities</string>
<string name="profile_selinux_context">SELinux context</string>
<string name="profile_umount_modules">Umount modules</string>
<string name="failed_to_update_app_profile">Failed to update App Profile for %s</string>
<string name="require_kernel_version">The current kernel version %d is too low for the manager to function properly. Please upgrade to version %d or higher!</string>