Plugin screen: i18n

This commit is contained in:
MM20 2024-02-18 23:55:41 +01:00
parent 314c4c1e43
commit 226219c1e6
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
2 changed files with 5 additions and 4 deletions

View File

@ -252,8 +252,8 @@ fun PluginSettingsScreen(pluginId: String) {
)
Text(
when (type) {
PluginType.FileSearch -> "File search"
PluginType.Weather -> "Weather provider"
PluginType.FileSearch -> stringResource(R.string.plugin_type_filesearch)
PluginType.Weather -> stringResource(R.string.plugin_type_weather)
},
modifier = Modifier.padding(horizontal = 4.dp),
style = MaterialTheme.typography.labelMedium,
@ -280,7 +280,7 @@ fun PluginSettingsScreen(pluginId: String) {
SwitchPreference(
enabled = pluginPackage != null && hasPermission != null,
iconPadding = false,
title = "Enable plugin",
title = stringResource(R.string.preference_plugin_enable),
value = pluginPackage?.enabled == true && hasPermission == true,
onValueChanged = {
if (hasPermission == true) {
@ -317,7 +317,7 @@ fun PluginSettingsScreen(pluginId: String) {
CrashReporter.logException(e)
}
}) {
Text("Set up")
Text(stringResource(R.string.plugin_action_setup))
}
}
)

View File

@ -852,6 +852,7 @@
<string name="shortcut_label_unavailable">Unavailable</string>
<!-- %1$s: app name -->
<string name="shortcut_unavailable_description">This shortcut is unavailable because %1$s isn\'t the default launcher</string>
<string name="preference_plugin_enable">Enable plugin</string>
<string name="plugin_state_error">This plugin isn\'t working correctly</string>
<string name="plugin_state_setup_required">You need to setup this plugin first</string>
<string name="plugin_action_setup">Set up</string>