diff --git a/app/ui/src/main/java/de/mm20/launcher2/ui/settings/plugins/PluginSettingsScreen.kt b/app/ui/src/main/java/de/mm20/launcher2/ui/settings/plugins/PluginSettingsScreen.kt index 0f49875e..b4871d6c 100644 --- a/app/ui/src/main/java/de/mm20/launcher2/ui/settings/plugins/PluginSettingsScreen.kt +++ b/app/ui/src/main/java/de/mm20/launcher2/ui/settings/plugins/PluginSettingsScreen.kt @@ -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)) } } ) diff --git a/core/i18n/src/main/res/values/strings.xml b/core/i18n/src/main/res/values/strings.xml index b9a46d3c..2fd955be 100644 --- a/core/i18n/src/main/res/values/strings.xml +++ b/core/i18n/src/main/res/values/strings.xml @@ -852,6 +852,7 @@ Unavailable This shortcut is unavailable because %1$s isn\'t the default launcher + Enable plugin This plugin isn\'t working correctly You need to setup this plugin first Set up