Skip to content

Commit 41dbc0a

Browse files
committed
fix: add domain to translatable strings
This allows plasma to load translations from `/usr/share/locale` when the plugin is installed system wide. Also from Plasma 6.5.6 and later when they are included with the plugin in `contents/locale/$language/LC_MESSAGES/$domain.mo`, which is needed for KDE Store or non system-wide installs. refs: https://invent.kde.org/plasma/libplasma/-/merge_requests/1422 refs: #84
1 parent 5a4c566 commit 41dbc0a

5 files changed

Lines changed: 123 additions & 123 deletions

File tree

package/contents/ui/components/CheckableValueListView.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ColumnLayout {
3535
checkValid();
3636
});
3737
}
38-
placeholderText: i18n("Not configured")
38+
placeholderText: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "Not configured")
3939
}
4040
Button {
4141
icon.name: root.showList ? "arrow-up" : "arrow-down"

package/contents/ui/components/Donate.qml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import org.kde.kirigami as Kirigami
55

66
ColumnLayout {
77
Kirigami.Heading {
8-
text: i18n("Thank you for using Smart Video Wallpaper Reborn!")
8+
text: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "Thank you for using Smart Video Wallpaper Reborn!")
99
Layout.fillWidth: true
1010
wrapMode: Text.Wrap
1111
font.bold: true
1212
}
1313

1414
Label {
15-
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")
15+
text: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "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")
1616
Layout.fillWidth: true
1717
wrapMode: Text.Wrap
1818
onLinkActivated: link => Qt.openUrlExternally(link)
@@ -74,7 +74,7 @@ ColumnLayout {
7474
Layout.topMargin: Kirigami.Units.smallSpacing
7575
Layout.fillWidth: true
7676
wrapMode: Text.Wrap
77-
text: i18n("You can also")
77+
text: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "You can also")
7878
font.bold: true
7979
}
8080

@@ -84,13 +84,13 @@ ColumnLayout {
8484
Repeater {
8585
model: [
8686
{
87-
label: i18n("Star the project on GitHub"),
87+
label: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "Star the project on GitHub"),
8888
icon: Qt.resolvedUrl("../../icons/githubstar.svg"),
8989
url: "https://github.com/luisbocanegra/plasma-smart-video-wallpaper-reborn",
9090
backgroundColor: "#29313C"
9191
},
9292
{
93-
label: i18n("Rate in the KDE Store"),
93+
label: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "Rate in the KDE Store"),
9494
icon: Qt.resolvedUrl("../../icons/kde.svg"),
9595
url: "https://store.kde.org/p/2139746",
9696
backgroundColor: "#2C9AFD"

package/contents/ui/components/Header.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RowLayout {
2626

2727
Button {
2828
id: linksButton
29-
text: i18n("About")
29+
text: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "About")
3030
icon.name: "info-symbolic"
3131
onClicked: {
3232
if (menu.opened) {

0 commit comments

Comments
 (0)