From d775974a90b941666a0229359d837e4a0da53053 Mon Sep 17 00:00:00 2001 From: Jhannes Reimann <75742343+jhannesreimann@users.noreply.github.com> Date: Mon, 9 Feb 2026 01:18:17 +0100 Subject: [PATCH] i18n: wrap missing user-facing strings in I18n.tr() (#1624) * fix: reverse rotation direction of sync icon in plugin browser * i18n: wrap missing user-facing strings in I18n.tr() --- quickshell/Modules/DankDash/WallpaperTab.qml | 2 +- quickshell/Modules/Settings/LauncherTab.qml | 2 +- quickshell/Modules/Settings/PluginBrowser.qml | 2 +- quickshell/Modules/Settings/PluginListItem.qml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/quickshell/Modules/DankDash/WallpaperTab.qml b/quickshell/Modules/DankDash/WallpaperTab.qml index bf14ccdd..7eca04e8 100644 --- a/quickshell/Modules/DankDash/WallpaperTab.qml +++ b/quickshell/Modules/DankDash/WallpaperTab.qml @@ -495,7 +495,7 @@ Item { StyledText { anchors.centerIn: parent visible: wallpaperFolderModel.count === 0 - text: "No wallpapers found\n\nClick the folder icon below to browse" + text: I18n.tr("No wallpapers found\n\nClick the folder icon below to browse") font.pixelSize: 14 color: Theme.outline horizontalAlignment: Text.AlignHCenter diff --git a/quickshell/Modules/Settings/LauncherTab.qml b/quickshell/Modules/Settings/LauncherTab.qml index 59ff0290..0539f5b3 100644 --- a/quickshell/Modules/Settings/LauncherTab.qml +++ b/quickshell/Modules/Settings/LauncherTab.qml @@ -1209,7 +1209,7 @@ Item { StyledText { width: parent.width - text: "No apps have been launched yet." + text: I18n.tr("No apps have been launched yet.") font.pixelSize: Theme.fontSizeMedium color: Theme.surfaceVariantText horizontalAlignment: Text.AlignHCenter diff --git a/quickshell/Modules/Settings/PluginBrowser.qml b/quickshell/Modules/Settings/PluginBrowser.qml index 2c2004cc..3b9ba27e 100644 --- a/quickshell/Modules/Settings/PluginBrowser.qml +++ b/quickshell/Modules/Settings/PluginBrowser.qml @@ -270,7 +270,7 @@ FloatingWindow { DankButton { id: thirdPartyButton - text: SessionData.showThirdPartyPlugins ? "Hide 3rd Party" : "Show 3rd Party" + text: SessionData.showThirdPartyPlugins ? I18n.tr("Hide 3rd Party") : I18n.tr("Show 3rd Party") iconName: SessionData.showThirdPartyPlugins ? "visibility_off" : "visibility" height: 28 onClicked: { diff --git a/quickshell/Modules/Settings/PluginListItem.qml b/quickshell/Modules/Settings/PluginListItem.qml index c783ad3f..39a5d1e2 100644 --- a/quickshell/Modules/Settings/PluginListItem.qml +++ b/quickshell/Modules/Settings/PluginListItem.qml @@ -166,7 +166,7 @@ StyledRect { } StyledText { - text: "v" + root.pluginVersion + " by " + root.pluginAuthor + text: I18n.tr("v%1 by %2").arg(root.pluginVersion).arg(root.pluginAuthor) font.pixelSize: Theme.fontSizeSmall color: Theme.surfaceVariantText width: parent.width