Skip to content

Commit b0dd556

Browse files
committed
chore: make more strings translatable and remove embedded URLs
1 parent 50ebfde commit b0dd556

8 files changed

Lines changed: 17 additions & 18 deletions

package/contents/ui/components/FontFamilyChooser.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ColumnLayout {
3333

3434
Kirigami.SearchField {
3535
id: searchField
36-
placeholderText: "Search fonts"
36+
placeholderText: i18n("Search fonts")
3737
Layout.fillWidth: true
3838
onTextChanged: fontsFilteredModel.setFilterFixedString(text)
3939
}

package/contents/ui/components/FormBorder.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Kirigami.FormLayout {
6161
}
6262
Label {
6363
visible: root.elementName === "widgets" && !Number.isInteger(borderWidth.value / 100)
64-
text: i18n("Use an integer when using <strong>Widget Islands</strong> to avoid rendering issues! <a href=\"https://github.com/luisbocanegra/plasma-panel-colorizer/issues/64\">See #64</a>")
64+
text: i18n("Use an integer when using <strong>Widget Islands</strong> to avoid rendering issues! See <a href=\"%1\">#64</a>.", "https://github.com/luisbocanegra/plasma-panel-colorizer/issues/64")
6565
onLinkActivated: link => Qt.openUrlExternally(link)
6666
font: Kirigami.Theme.smallFont
6767
Layout.maximumWidth: 400

package/contents/ui/components/SupportMe.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ColumnLayout {
1414
}
1515

1616
Label {
17-
text: i18n("If you enjoy using the plugin please consider sponsoring or donating so I can dedicate more time to maintain and improve this and <a href=\"https://github.com/luisbocanegra?tab=repositories&q=&type=source&language=&sort=stargazers\">my other projects</a>.")
17+
text: i18n("If you enjoy using the plugin please consider sponsoring or donating so I can dedicate more time to maintain and improve this and <a href=\"%1\">my other projects</a>.", "https://github.com/luisbocanegra?tab=repositories&q=&type=source&language=&sort=stargazers")
1818
Layout.fillWidth: true
1919
wrapMode: Text.Wrap
2020
onLinkActivated: link => Qt.openUrlExternally(link)

package/contents/ui/components/WidgetCardConfig.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Kirigami.AbstractCard {
114114
onClicked: {
115115
clearOverrides();
116116
}
117-
text: "Clear"
117+
text: i18n("Clear")
118118
visible: currentOverrides.length !== 0
119119
}
120120

package/contents/ui/configAppearance.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ KCM.SimpleKCM {
6666

6767
Kirigami.InlineMessage {
6868
Layout.fillWidth: true
69-
text: i18n("Not getting the expected result? Make sure you're editing the correct element.<br>Custom blur not working? Try reinstalling/rebuilding the C++ plugin using the latest source, <a href=\"https://github.com/luisbocanegra/plasma-panel-colorizer#build-from-source-with-c-plugin\">see instructions</a>.")
69+
text: i18n("Not getting the expected result? Make sure you're editing the correct element.<br>Custom blur not working? Try reinstalling/rebuilding the C++ plugin using the latest source, <a href=\"%1\">see instructions</a>.", "https://github.com/luisbocanegra/plasma-panel-colorizer#build-from-source-with-c-plugin")
7070
visible: true
7171
type: Kirigami.MessageType.Information
7272
onLinkActivated: Qt.openUrlExternally(link)

package/contents/ui/configStockPanelSettings.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ KCM.SimpleKCM {
441441
actions: [
442442
Kirigami.Action {
443443
icon.name: "view-readermode-symbolic"
444-
text: "D-Bus usage"
444+
text: i18n("D-Bus usage")
445445
onTriggered: {
446446
Qt.openUrlExternally("https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#advanced-commandline-usage-with-d-bus-version-200-or-later");
447447
}

package/contents/ui/configTrayIconsReplacer.qml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import QtQuick.Layouts
66
import org.kde.iconthemes as KIconThemes
77
import org.kde.kcmutils as KCM
88
import org.kde.kirigami as Kirigami
9-
import org.kde.plasma.plasmoid
109
import "components" as Components
1110
import "code/statusNotifierItemIconRules.js" as SNIIconRules
1211

@@ -111,23 +110,23 @@ KCM.ScrollViewKCM {
111110
}
112111
Kirigami.InlineMessage {
113112
Layout.fillWidth: true
114-
text: i18n("Replace System Tray icons with icons from the current icon theme or a local file. The built-in rules icons are part of <a href=\"https://github.com/PapirusDevelopmentTeam/papirus-icon-theme\">Papirus icon theme</a>.")
113+
text: i18n("Replace System Tray icons with icons from the current icon theme or a local file. The built-in rules icons are part of <a href=\"%1\">Papirus icon theme</a>.", "https://github.com/PapirusDevelopmentTeam/papirus-icon-theme")
115114
visible: true
116115
type: Kirigami.MessageType.Information
117116
spacing: 0
118117
Layout.margins: Kirigami.Units.mediumSpacing
119118
}
120119
Kirigami.InlineMessage {
121120
Layout.fillWidth: true
122-
text: i18n("C++ plugin not found, this feature will not work. Install the plugin and reboot or restart plasmashell to be able to use it <a href=\"https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#manually\">Install instructions</a>.")
121+
text: i18n("C++ plugin not found, this feature will not work. Install the plugin and reboot or restart plasmashell to be able to use it <a href=\"%1\">Install instructions</a>.", "https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#manually")
123122
visible: root.panelColorizer === null
124123
type: Kirigami.MessageType.Error
125124
spacing: 0
126125
Layout.margins: Kirigami.Units.mediumSpacing
127126
}
128127
Kirigami.InlineMessage {
129128
Layout.fillWidth: true
130-
text: i18n("The installed version of the C++ plugin doesn't support this feature, update the plugin and reboot or restart plasmashell to be able to use it <a href=\"https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#manually\">Install instructions</a>.")
129+
text: i18n("The installed version of the C++ plugin doesn't support this feature, update the plugin and reboot or restart plasmashell to be able to use it <a href=\"%1\">Install instructions</a>.", "https://github.com/luisbocanegra/plasma-panel-colorizer?tab=readme-ov-file#manually")
131130
visible: root.panelColorizer && (typeof root.panelColorizer?.getIconHash !== "function")
132131
type: Kirigami.MessageType.Error
133132
spacing: 0
@@ -173,7 +172,7 @@ KCM.ScrollViewKCM {
173172
Layout.margins: Kirigami.Units.mediumSpacing
174173
}
175174
Label {
176-
text: "1. Enable <b>Log icon changes</b> above<br>2. Run <b>journalctl -f</b> from terminal<br>3. Hover the System tray entry or trigger an icon change<br>4. Copy any of the properties: icon SHA1/name, title or name <br>5. Add a new rule with the SHA1/icon name/title/name you choose and specify the custom icon name or file"
175+
text: i18n("1. Enable <b>Log icon changes</b> above<br>2. Run <b>journalctl -f</b> from terminal<br>3. Hover the System tray entry or trigger an icon change<br>4. Copy any of the properties: icon SHA1/name, title or name <br>5. Add a new rule with the SHA1/icon name/title/name you choose and specify the custom icon name or file")
177176
wrapMode: Label.WordWrap
178177
font.features: {
179178
"tnum": 1
@@ -183,28 +182,28 @@ KCM.ScrollViewKCM {
183182
Layout.fillWidth: true
184183
}
185184
Label {
186-
text: "<b>Note</b>: There are some rules without icon as there was no matching one in Papirus, you can override those with your own icons by copying the rule to <b>User Replacements</b>"
185+
text: i18n("<b>Note</b>: There are some rules without icon as there was no matching one in Papirus, you can override those with your own icons by copying the rule to <b>User Replacements</b>")
187186
wrapMode: Label.WordWrap
188187
visible: showHowToLabel.checked
189188
Layout.margins: Kirigami.Units.mediumSpacing
190189
Layout.fillWidth: true
191190
}
192191
Label {
193-
text: "<b>Note</b>: Some applications like Signal are missing accumulated notification icons, contribution of missing icons via GitHub pull request or issue is very welcome, please do so by providing the the description + SHA1/title/name + icon-name from Papirus (panel/status icons only if no matching icon exists, otherwise it can be omitted)"
192+
text: i18n("<b>Note</b>: Some applications like Signal are missing accumulated notification icons, contribution of missing icons via GitHub pull request or issue is very welcome, please do so by providing the the description + SHA1/title/name + icon-name from Papirus (panel/status icons only if no matching icon exists, otherwise it can be omitted)")
194193
wrapMode: Label.WordWrap
195194
visible: showHowToLabel.checked
196195
Layout.margins: Kirigami.Units.mediumSpacing
197196
Layout.fillWidth: true
198197
}
199198
Label {
200-
text: "<b>Note</b>: Matching properties (especially the SHA1) may change when applications get updated, rules will need to be updated when that happens."
199+
text: i18n("<b>Note</b>: Matching properties (especially the SHA1) may change when applications get updated, rules will need to be updated when that happens.")
201200
wrapMode: Label.WordWrap
202201
visible: showHowToLabel.checked
203202
Layout.margins: Kirigami.Units.mediumSpacing
204203
Layout.fillWidth: true
205204
}
206205
Label {
207-
text: "<b>Note</b>: Plasma widgets in the system tray are not supported by this feature as widgets provide their own visual content and logic."
206+
text: i18n("<b>Note</b>: Plasma widgets in the system tray are not supported by this feature as widgets provide their own visual content and logic.")
208207
wrapMode: Label.WordWrap
209208
visible: showHowToLabel.checked
210209
Layout.margins: Kirigami.Units.mediumSpacing
@@ -407,7 +406,7 @@ KCM.ScrollViewKCM {
407406
}
408407
hoverEnabled: true
409408
ToolTip.delay: Kirigami.Units.toolTipDelay
410-
ToolTip.text: showBuiltInRules.checked ? i18n("Copy to User Rules") : i18n("Copy rule")
409+
ToolTip.text: showBuiltInRules.checked ? i18n("Copy to User Rules") : i18n("Duplicate rule")
411410
ToolTip.visible: copyRuleButton.hovered
412411
}
413412

package/contents/ui/configWidgetIslands.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ KCM.SimpleKCM {
7070

7171
RowLayout {
7272
Kirigami.FormData.label: i18n("Separator widget:")
73-
Layout.preferredWidth: 300
73+
Layout.preferredWidth: 400
7474
TextField {
7575
id: islandSeparatorWidget
7676
Layout.fillWidth: true
77-
placeholderText: "auto"
77+
placeholderText: "org.kde.plasma.panelspacer"
7878
}
7979
Button {
8080
icon.name: widgetsCard.visible ? "arrow-up" : "arrow-down"

0 commit comments

Comments
 (0)