Сейчас без спешки ещё раз попытался сделать себе перевод более аккуратно.
Вначале на скорую руку сделал, и очень грубо.
Сейчас разобрался повнимательнее.
Там четыре вида вызовов.

i18n(
i18np(
i18nc(
i18ncp(

заменил их соответственно на

i18nd("plasma_applet_org.kde.plasma.notifications",
i18ndp("plasma_applet_org.kde.plasma.notifications",
i18ndc("plasma_applet_org.kde.plasma.notifications",
i18ndcp("plasma_applet_org.kde.plasma.notifications",

В таком виде даже нет необходимости перегенерировать файлы локализации.
Наложил при сборке пакета этот патч.
Всё прекрасно работает, включая строки с множественными значениями.
 
17.05.2019, 17:26, "Yuri Chornoivan" <yurc...@ukr.net>:

Добрый день,

пʼятниця, 17 травня 2019 р. 12:53:45 EEST Виктор написано:

 Добрый день!
 Вчера собирал plasma-5.15.90, и столкнулся с проблемой локализации в пакете
 plasma-workspace. В нём прилично переработаны системные уведомления, и
 теперь строки всплывающих уведомлений, которые находятся в QML файлах, в
 папке plasma-workspace-5.15.90/applets/notifications/package/contents/ui/
 отображаются без перевода.
 Вот картинка для примера https://imgur.com/a/0sJDLva
 В этих файлах довольно много текста.
 https://cgit.kde.org/plasma-workspace.git/tree/applets/notifications/package
 /contents/ui Для проверки поправил файлы через костыли, и перевод начал
 отображаться. Но вариант грубый и неправильный.
 Не соображу, куда бы сообщить об этой проблема, так что написал сюда, как
 всегда, в надежде на помощь Юрия.


Самому найти ничего особенного не удалось. Возможно, надо было назвать каталог
org.kde.plasma.private.notifications, но я не уверен. Написал в kde-18n-doc.
 

 И ещё.
 В файле
 plasma-workspace-5.15.90/applets/notifications/package/contents/ui/main.qml
 https://cgit.kde.org/plasma-workspace.git/tree/applets/notifications/packag
 e/contents/ui/main.qml пропущен вызов локализации в 66 строке
 «lines.push("No unread notificatons");»


Исправил. Спасибо.

С уважением,
Юрий
_______________________________________________
kde-russian mailing list
kde-russian@lists.kde.ru
https://lists.kde.ru/mailman/listinfo/kde-russian

 
 
-- 
С Уважением,
Виктор
 
victorr2...@yandex.ru
 
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/EditContextMenu.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/EditContextMenu.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/EditContextMenu.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/EditContextMenu.qml	2019-05-19 01:09:09.903323514 +0300
@@ -44,7 +44,7 @@
     }
 
     PlasmaComponents.MenuItem {
-        text: i18n("Copy Link Address")
+        text: i18nd("plasma_applet_org.kde.plasma.notifications", "Copy Link Address")
         onClicked: __clipboard.content = contextMenu.link
         visible: contextMenu.link !== ""
     }
@@ -55,7 +55,7 @@
     }
 
     PlasmaComponents.MenuItem {
-        text: i18n("Copy")
+        text: i18nd("plasma_applet_org.kde.plasma.notifications", "Copy")
         icon: "edit-copy"
         enabled: typeof target.selectionStart !== "undefined"
         ? target.selectionStart !== target.selectionEnd
@@ -71,7 +71,7 @@
 
     PlasmaComponents.MenuItem {
         id: selectAllAction
-        text: i18n("Select All")
+        text: i18nd("plasma_applet_org.kde.plasma.notifications", "Select All")
         onClicked: target.selectAll()
         visible: typeof target.selectAll === "function"
     }
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/FullRepresentation.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/FullRepresentation.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/FullRepresentation.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/FullRepresentation.qml	2019-05-19 01:10:51.869990936 +0300
@@ -78,7 +78,7 @@
 
                 PlasmaComponents3.CheckBox {
                     id: dndCheck
-                    text: i18n("Do not disturb")
+                    text: i18nd("plasma_applet_org.kde.plasma.notifications", "Do not disturb")
                     spacing: units.smallSpacing
                     checkable: true
                     checked: Globals.inhibited
@@ -114,7 +114,7 @@
                         }
 
                         PlasmaComponents.Label {
-                            text: i18n("Do not disturb")
+                            text: i18nd("plasma_applet_org.kde.plasma.notifications", "Do not disturb")
                         }
                     }
 
@@ -135,12 +135,12 @@
                             var d = dndMenu.date;
                             d.setHours(d.getHours() + 1);
                             d.setSeconds(0);
-                            model.push({date: d, text: i18n("For 1 hour")});
+                            model.push({date: d, text: i18nd("plasma_applet_org.kde.plasma.notifications", "For 1 hour")});
 
                             d = dndMenu.date;
                             d.setHours(d.getHours() + 4);
                             d.setSeconds(0);
-                            model.push({date: d, text: i18n("For 4 hours")});
+                            model.push({date: d, text: i18nd("plasma_applet_org.kde.plasma.notifications", "For 4 hours")});
 
                             // Until this evening
                             if (dndMenu.date.getHours() < dndEveningHour) {
@@ -149,7 +149,7 @@
                                 d.setHours(dndEveningHour);
                                 d.setMinutes(0);
                                 d.setSeconds(0);
-                                model.push({date: d, text: i18n("Until this evening")});
+                                model.push({date: d, text: i18nd("plasma_applet_org.kde.plasma.notifications", "Until this evening")});
                             }
 
                             // Until next morning
@@ -159,7 +159,7 @@
                                 d.setHours(dndMorningHour);
                                 d.setMinutes(0);
                                 d.setSeconds(0);
-                                model.push({date: d, text: i18n("Until tomorrow morning")});
+                                model.push({date: d, text: i18nd("plasma_applet_org.kde.plasma.notifications", "Until tomorrow morning")});
                             }
 
                             // Until Monday
@@ -171,14 +171,14 @@
                                 d.setDate(d.getDate() + (7 - d.getDay() + 1));
                                 d.setMinutes(0);
                                 d.setSeconds(0);
-                                model.push({date: d, text: i18n("Until Monday")});
+                                model.push({date: d, text: i18nd("plasma_applet_org.kde.plasma.notifications", "Until Monday")});
                             }
 
                             // Until "turned off"
                             d = dndMenu.date;
                             // Just set it to one year in the future so we don't need yet another "do not disturb enabled" property
                             d.setFullYear(d.getFullYear() + 1);
-                            model.push({date: d, text: i18n("Until turned off")});
+                            model.push({date: d, text: i18nd("plasma_applet_org.kde.plasma.notifications", "Until turned off")});
 
                             return model;
                         }
@@ -216,7 +216,7 @@
 
                 // Show until time if valid but not if too far int he future
                 if (!isNaN(inhibitedUntil.getTime()) && inhibitedUntil.getTime() - new Date().getTime() < 365 * 24 * 60 * 60 * 1000 /* 1 year*/) {
-                    sections.push(i18nc("Do not disturb until date", "Until %1",
+                    sections.push(i18ndc("plasma_applet_org.kde.plasma.notifications", "Do not disturb until date", "Until %1",
                                         KCoreAddons.Format.formatRelativeDateTime(inhibitedUntil, Locale.ShortFormat)));
                 }
 
@@ -229,9 +229,9 @@
                         var reason = inhibitionAppReasons[i];
 
                         if (reason) {
-                            sections.push(i18nc("Do not disturb until app has finished (reason)", "While %1 is active (%2)", name, reason));
+                            sections.push(i18ndc("plasma_applet_org.kde.plasma.notifications", "Do not disturb until app has finished (reason)", "While %1 is active (%2)", name, reason));
                         } else {
-                            sections.push(i18nc("Do not disturb until app has finished", "While %1 is active", name));
+                            sections.push(i18ndc("plasma_applet_org.kde.plasma.notifications", "Do not disturb until app has finished", "While %1 is active", name));
                         }
                     }
                 }
@@ -344,12 +344,12 @@
                     Layout.fillWidth: true
                     level: 3
                     opacity: 0.6
-                    text: list.count === 0 ? i18n("No unread notifications.") : i18n("Notifications")
+                    text: list.count === 0 ? i18nd("plasma_applet_org.kde.plasma.notifications", "No unread notifications.") : i18nd("plasma_applet_org.kde.plasma.notifications", "Notifications")
                 }
 
                 PlasmaComponents.ToolButton {
                     iconName: "edit-clear-history"
-                    tooltip: i18n("Clear History")
+                    tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "Clear History")
                     visible: plasmoid.action("clearHistory").visible
                     onClicked: action_clearHistory()
                 }
@@ -402,7 +402,7 @@
 
                         configurable: model.configurable
                         closable: model.closable
-                        closeButtonTooltip: i18n("Close Group")
+                        closeButtonTooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "Close Group")
 
                         onCloseClicked: {
                             historyModel.close(historyModel.index(index, 0))
@@ -533,8 +533,8 @@
                         PlasmaComponents.ToolButton {
                             Layout.preferredWidth: minimumWidth
                             iconName: model.isGroupExpanded ? "arrow-up" : "arrow-down"
-                            text: model.isGroupExpanded ? i18n("Show Fewer")
-                                                        : i18nc("Expand to show n more notifications",
+                            text: model.isGroupExpanded ? i18nd("plasma_applet_org.kde.plasma.notifications", "Show Fewer")
+                                                        : i18ndc("plasma_applet_org.kde.plasma.notifications", "Expand to show n more notifications",
                                                                 "Show %1 More", (model.groupChildrenCount - model.expandedGroupChildrenCount))
                             visible: (model.groupChildrenCount > model.expandedGroupChildrenCount || model.isGroupExpanded)
                                 && delegateLoader.ListView.nextSection !== delegateLoader.ListView.section
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/JobDetails.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/JobDetails.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/JobDetails.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/JobDetails.qml	2019-05-19 01:26:40.996664635 +0300
@@ -46,7 +46,7 @@
             Layout.row: index
             Layout.alignment: Qt.AlignTop | Qt.AlignRight
             text: jobDetails["descriptionLabel" + modelData] && jobDetails["descriptionValue" + modelData]
-                ? i18nc("Row description, e.g. Source", "%1:", jobDetails["descriptionLabel" + modelData]) : ""
+                ? i18ndc("plasma_applet_org.kde.plasma.notifications", "Row description, e.g. Source", "%1:", jobDetails["descriptionLabel" + modelData]) : ""
             font: theme.smallestFont
             textFormat: Text.PlainText
             visible: text !== ""
@@ -110,14 +110,14 @@
                     if (processed > 0 && total > 0 && processed <= total) {
                         switch(modelData) {
                         case "Bytes":
-                            return i18nc("How many bytes have been copied", "%2 of %1",
+                            return i18ndc("plasma_applet_org.kde.plasma.notifications", "How many bytes have been copied", "%2 of %1",
                                 KCoreAddons.Format.formatByteSize(total),
                                 KCoreAddons.Format.formatByteSize(processed))
                         case "Files":
-                            return i18ncp("How many files have been copied", "%2 of %1 file", "%2 of %1 files",
+                            return i18ndcp("plasma_applet_org.kde.plasma.notifications", "How many files have been copied", "%2 of %1 file", "%2 of %1 files",
                                           total, processed);
                         case "Directories":
-                            return i18ncp("How many dirs have been copied", "%2 of %1 folder", "%2 of %1 folders",
+                            return i18ndcp("plasma_applet_org.kde.plasma.notifications", "How many dirs have been copied", "%2 of %1 folder", "%2 of %1 folders",
                                          total, processed);
                         }
                     } else {
@@ -125,9 +125,9 @@
                         case "Bytes":
                             return KCoreAddons.Format.formatByteSize(processed || total)
                         case "Files":
-                            return i18np("%1 file", "%1 files", (processed || total));
+                            return i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 file", "%1 files", (processed || total));
                         case "Directories":
-                            return i18np("%1 folder", "%1 folders", (processed || total));
+                            return i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 folder", "%1 folders", (processed || total));
                         }
                     }
                 }
@@ -144,7 +144,7 @@
         Layout.column: 1
         Layout.row: 2 + 3
         Layout.fillWidth: true
-        text: jobDetails.speed > 0 ? i18nc("Bytes per second", "%1/s",
+        text: jobDetails.speed > 0 ? i18ndc("plasma_applet_org.kde.plasma.notifications", "Bytes per second", "%1/s",
                                            KCoreAddons.Format.formatByteSize(jobDetails.speed)) : ""
         font: theme.smallestFont
         textFormat: Text.PlainText
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/JobItem.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/JobItem.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/JobItem.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/JobItem.qml	2019-05-19 01:15:31.069993005 +0300
@@ -79,7 +79,7 @@
 
             PlasmaComponents.ToolButton {
                 id: suspendButton
-                tooltip: i18nc("Pause running job", "Pause")
+                tooltip: i18ndc("plasma_applet_org.kde.plasma.notifications", "Pause running job", "Pause")
                 iconSource: "media-playback-pause"
                 onClicked: jobItem.jobState === NotificationManager.Notifications.JobStateSuspended ? jobItem.resumeJobClicked()
                                                                                                     : jobItem.suspendJobClicked()
@@ -87,7 +87,7 @@
 
             PlasmaComponents.ToolButton {
                 id: killButton
-                tooltip: i18nc("Cancel running job", "Cancel")
+                tooltip: i18ndc("plasma_applet_org.kde.plasma.notifications", "Cancel running job", "Cancel")
                 iconSource: "media-playback-stop"
                 onClicked: jobItem.killJobClicked()
             }
@@ -96,8 +96,8 @@
                 id: expandButton
                 Layout.leftMargin: units.smallSpacing
                 iconSource: checked ? "arrow-down" : (LayoutMirroring.enabled ? "arrow-left" : "arrow-right")
-                tooltip: checked ? i18nc("A button tooltip; hides item details", "Hide Details")
-                                 : i18nc("A button tooltip; expands the item to show details", "Show Details")
+                tooltip: checked ? i18ndc("plasma_applet_org.kde.plasma.notifications", "A button tooltip; hides item details", "Hide Details")
+                                 : i18ndc("plasma_applet_org.kde.plasma.notifications", "A button tooltip; expands the item to show details", "Show Details")
                 checkable: true
                 enabled: jobItem.jobDetails && jobItem.jobDetails.hasDetails
             }
@@ -142,7 +142,7 @@
         PlasmaComponents.Button {
             id: otherFileActionsButton
             iconName: "application-menu"
-            tooltip: i18n("More Options...")
+            tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "More Options...")
             checkable: true
             onPressedChanged: {
                 if (pressed) {
@@ -163,7 +163,7 @@
 
         PlasmaComponents.Button {
             // would be nice to have the file icon here?
-            text: jobItem.jobDetails && jobItem.jobDetails.totalFiles > 1 ? i18n("Open Containing Folder") : i18n("Open")
+            text: jobItem.jobDetails && jobItem.jobDetails.totalFiles > 1 ? i18nd("plasma_applet_org.kde.plasma.notifications", "Open Containing Folder") : i18nd("plasma_applet_org.kde.plasma.notifications", "Open")
             onClicked: jobItem.openUrl(jobDoneActions.url)
             width: minimumWidth
         }
@@ -174,7 +174,7 @@
             when: jobItem.jobState === NotificationManager.Notifications.JobStateSuspended
             PropertyChanges {
                 target: suspendButton
-                tooltip: i18nc("Resume paused job", "Resume")
+                tooltip: i18ndc("plasma_applet_org.kde.plasma.notifications", "Resume paused job", "Resume")
                 iconSource: "media-playback-start"
             }
             PropertyChanges {
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/main.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/main.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/main.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/main.qml	2019-05-19 01:18:35.139994368 +0300
@@ -43,14 +43,14 @@
         var lines = [];
 
         if (historyModel.activeJobsCount > 0) {
-            lines.push(i18np("%1 running job", "%1 running jobs", historyModel.activeJobsCount));
+            lines.push(i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 running job", "%1 running jobs", historyModel.activeJobsCount));
         }
 
         // Any notification that is newer than "lastRead" is "unread"
         // since it doesn't know the popup is on screen which makes the user see it
         var actualUnread = historyModel.unreadNotificationsCount - Globals.popupNotificationsModel.activeNotificationsCount;
         if (actualUnread > 0) {
-            lines.push(i18np("%1 unread notification", "%1 unread notifications", actualUnread));
+            lines.push(i18ndp("plasma_applet_org.kde.plasma.notifications", "%1 unread notification", "%1 unread notifications", actualUnread));
         }
 
         if (Globals.inhibited) {
@@ -59,11 +59,11 @@
 
             // TODO check app inhibition, too
             if (inhibitedUntilValid) {
-                lines.push(i18n("Do not disturb until %1",
+                lines.push(i18nd("plasma_applet_org.kde.plasma.notifications", "Do not disturb until %1",
                              KCoreAddons.Format.formatRelativeDateTime(inhibitedUntil, Locale.ShortFormat)));
             }
         } else if (lines.length === 0) {
-            lines.push("No unread notificatons");
+            lines.push(i18nd("plasma_applet_org.kde.plasma.notifications", "No unread notificatons"));
         }
 
         return lines.join("\n");
@@ -138,14 +138,14 @@
     Component.onCompleted: {
         Globals.adopt(plasmoid);
 
-        plasmoid.setAction("clearHistory", i18n("Clear History"), "edit-clear-history");
+        plasmoid.setAction("clearHistory", i18nd("plasma_applet_org.kde.plasma.notifications", "Clear History"), "edit-clear-history");
         var clearAction = plasmoid.action("clearHistory");
         clearAction.visible = Qt.binding(function() {
             return historyModel.expiredNotificationsCount > 0;
         });
 
         // FIXME only while Multi-page KCMs are broken when embedded in plasmoid config
-        plasmoid.setAction("openKcm", i18n("&Configure Event Notifications and Actions..."), "preferences-desktop-notification-bell");
+        plasmoid.setAction("openKcm", i18nd("plasma_applet_org.kde.plasma.notifications", "&Configure Event Notifications and Actions..."), "preferences-desktop-notification-bell");
         plasmoid.action("openKcm").visible = (KQCAddons.KCMShell.authorize("kcm_notifications.desktop").length > 0);
     }
 }
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/NotificationHeader.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/NotificationHeader.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/NotificationHeader.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/NotificationHeader.qml	2019-05-19 01:07:05.000000000 +0300
@@ -114,7 +114,7 @@
 
             // Received less than an hour ago, show relative minutes
             if (deltaMinutes < 60) {
-                return i18ncp("Notification was added minutes ago, keep short", "%1 min ago", "%1 min ago", deltaMinutes);
+                return i18ndcp("plasma_applet_org.kde.plasma.notifications", "Notification was added minutes ago, keep short", "%1 min ago", "%1 min ago", deltaMinutes);
             }
             // Received less than a day ago, show time, 22 hours so the time isn't as ambiguous between today and yesterday
             if (deltaMinutes < 60 * 22) {
@@ -147,16 +147,16 @@
             }
 
             if (eta < 60) { // 1 minute
-                return i18ncp("seconds remaining, keep short",
+                return i18ndcp("plasma_applet_org.kde.plasma.notifications", "seconds remaining, keep short",
                               "%1 s remaining", "%1 s remaining", Math.round(eta));
             }
             if (eta < 60 * 60) {// 1 hour
-                return i18ncp("minutes remaining, keep short",
+                return i18ndcp("plasma_applet_org.kde.plasma.notifications", "minutes remaining, keep short",
                               "%1 min remaining", "%1 min remaining",
                               Math.round(eta / 60));
             }
             if (eta < 60 * 60 * 5) { // 5 hours max, if it takes even longer there's no real point in shoing that
-                return i18ncp("hours remaining, keep short",
+                return i18ndcp("plasma_applet_org.kde.plasma.notifications", "hours remaining, keep short",
                               "%1 h remaining", "%1 h remaining",
                               Math.round(eta / 60 / 60));
             }
@@ -177,7 +177,7 @@
 
         PlasmaComponents.ToolButton {
             id: configureButton
-            tooltip: notificationHeading.configureActionLabel || i18n("Configure")
+            tooltip: notificationHeading.configureActionLabel || i18nd("plasma_applet_org.kde.plasma.notifications", "Configure")
             iconSource: "configure"
             visible: false
             onClicked: notificationHeading.configureClicked()
@@ -185,7 +185,7 @@
 
         PlasmaComponents.ToolButton {
             id: dismissButton
-            tooltip: notificationHeading.dismissed ? i18nc("Opposite of minimize", "Restore") : i18n("Minimize")
+            tooltip: notificationHeading.dismissed ? i18ndc("plasma_applet_org.kde.plasma.notifications", "Opposite of minimize", "Restore") : i18nd("plasma_applet_org.kde.plasma.notifications", "Minimize")
             iconSource: notificationHeading.dismissed ? "window-restore" : "window-minimize"
             visible: false
             onClicked: notificationHeading.dismissClicked()
@@ -193,7 +193,7 @@
 
         PlasmaComponents.ToolButton {
             id: closeButton
-            tooltip: i18n("Close")
+            tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "Close")
             iconSource: "window-close"
             visible: false
             onClicked: notificationHeading.closeClicked()
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/NotificationItem.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/NotificationItem.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/NotificationItem.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/NotificationItem.qml	2019-05-19 01:20:34.116661917 +0300
@@ -148,20 +148,20 @@
                         if (notificationItem.notificationType === NotificationManager.Notifications.JobType) {
                             if (notificationItem.jobState === NotificationManager.Notifications.JobStateSuspended) {
                                 if (notificationItem.summary) {
-                                    return i18nc("Job name, e.g. Copying is paused", "%1 (Paused)", notificationItem.summary);
+                                    return i18ndc("plasma_applet_org.kde.plasma.notifications", "Job name, e.g. Copying is paused", "%1 (Paused)", notificationItem.summary);
                                 }
                             } else if (notificationItem.jobState === NotificationManager.Notifications.JobStateStopped) {
                                 if (notificationItem.jobError) {
                                     if (notificationItem.summary) {
-                                        return i18nc("Job name, e.g. Copying has failed", "%1 (Failed)", notificationItem.summary);
+                                        return i18ndc("plasma_applet_org.kde.plasma.notifications", "Job name, e.g. Copying has failed", "%1 (Failed)", notificationItem.summary);
                                     } else {
-                                        return i18n("Job Failed");
+                                        return i18nd("plasma_applet_org.kde.plasma.notifications", "Job Failed");
                                     }
                                 } else {
                                     if (notificationItem.summary) {
-                                        return i18nc("Job name, e.g. Copying has finished", "%1 (Finished)", notificationItem.summary);
+                                        return i18ndc("plasma_applet_org.kde.plasma.notifications", "Job name, e.g. Copying has finished", "%1 (Finished)", notificationItem.summary);
                                     } else {
-                                        return i18n("Job Finished");
+                                        return i18nd("plasma_applet_org.kde.plasma.notifications", "Job Finished");
                                     }
                                 }
                             }
diff -urN plasma-workspace-5.15.90/applets/notifications/package/contents/ui/ThumbnailStrip.qml plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/ThumbnailStrip.qml
--- plasma-workspace-5.15.90/applets/notifications/package/contents/ui/ThumbnailStrip.qml	2019-05-16 14:13:15.000000000 +0300
+++ plasma-workspace-5.15.90-patched/applets/notifications/package/contents/ui/ThumbnailStrip.qml	2019-05-19 01:21:37.099995716 +0300
@@ -165,7 +165,7 @@
                 right: parent.right
                 margins: units.smallSpacing
             }
-            tooltip: i18n("More Options...")
+            tooltip: i18nd("plasma_applet_org.kde.plasma.notifications", "More Options...")
             Accessible.name: tooltip
             iconName: "application-menu"
             checkable: true
_______________________________________________
kde-russian mailing list
kde-russian@lists.kde.ru
https://lists.kde.ru/mailman/listinfo/kde-russian

Ответить