Commit 025387c9 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Load localization catalog for slideshow config window

Summary: It was reported by Victor Ryzhykh that this patch fixes localization of the wallpaper slideshow config window.

Test Plan:
1. Open the config window in some ~100%-translated locale (ca, pt, sv, uk).
2. All messages should be translated.

Reviewers: #plasma, #localization, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26584
parent ae7a05e1
......@@ -216,7 +216,7 @@ ColumnLayout {
onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value
textFromValue: function(value, locale) {
return i18np("%1 hour", "%1 hours", value)
return i18ndp("plasma_wallpaper_org.kde.image","%1 hour", "%1 hours", value)
}
valueFromText: function(text, locale) {
return parseInt(text);
......@@ -231,7 +231,7 @@ ColumnLayout {
onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value
textFromValue: function(value, locale) {
return i18np("%1 minute", "%1 minutes", value)
return i18ndp("plasma_wallpaper_org.kde.image","%1 minute", "%1 minutes", value)
}
valueFromText: function(text, locale) {
return parseInt(text);
......@@ -246,7 +246,7 @@ ColumnLayout {
onValueChanged: cfg_SlideInterval = hoursInterval.value * 3600 + minutesInterval.value * 60 + secondsInterval.value
textFromValue: function(value, locale) {
return i18np("%1 second", "%1 seconds", value)
return i18ndp("plasma_wallpaper_org.kde.image","%1 second", "%1 seconds", value)
}
valueFromText: function(text, locale) {
return parseInt(text);
......@@ -327,7 +327,7 @@ ColumnLayout {
wrapMode: Text.WordWrap
visible: slidePathsView.count === 0
level: 2
text: i18n("There are no wallpaper locations configured")
text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpaper locations configured")
opacity: 0.3
}
}
......@@ -399,7 +399,7 @@ ColumnLayout {
wrapMode: Text.WordWrap
visible: wallpapersGrid.view.count === 0
level: 2
text: i18n("There are no wallpapers in this slideshow")
text: i18nd("plasma_wallpaper_org.kde.image", "There are no wallpapers in this slideshow")
opacity: 0.3
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment