From 7f788077d1ce2a98dbf3b4afb67fc5e90ef92aaf Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 22 Jul 2023 19:58:18 +0200 Subject: [PATCH] Improve/change "Pair" i18n messages (cherry picked from commit 4fa2e9324623f42235755f841068109807b4665a) --- app/qml/DevicePage.qml | 2 +- app/qml/FindDevicesPage.qml | 2 +- indicator/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml index f7e796852..0a09ee7e3 100644 --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -125,7 +125,7 @@ Kirigami.ScrollablePage { anchors.centerIn: parent visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer && !root.currentDevice.isPairRequested helpfulAction: Kirigami.Action { - text: i18nd("kdeconnect-app", "Pair") + text: i18ndc("kdeconnect-app", "Request pairing with a given device", "Pair") icon.name:"network-connect" onTriggered: root.currentDevice.requestPairing() } diff --git a/app/qml/FindDevicesPage.qml b/app/qml/FindDevicesPage.qml index 018d07401..57eb69dc7 100644 --- a/app/qml/FindDevicesPage.qml +++ b/app/qml/FindDevicesPage.qml @@ -20,7 +20,7 @@ Kirigami.ScrollablePage } objectName: "FindDevices" - title: i18nd("kdeconnect-app", "Pair") + title: i18ndc("kdeconnect-app", "Title of the page listing the devices", "Devices") supportsRefreshing: true onRefreshingChanged: { diff --git a/indicator/main.cpp b/indicator/main.cpp index eedd20a3f..053e7dd6f 100644 --- a/indicator/main.cpp +++ b/indicator/main.cpp @@ -116,7 +116,7 @@ int main(int argc, char **argv) for (const auto &req : requests) { DeviceDbusInterface *dev = new DeviceDbusInterface(req, menu); auto pairMenu = menu->addMenu(dev->name()); - pairMenu->addAction(i18n("Pair"), dev, &DeviceDbusInterface::acceptPairing); + pairMenu->addAction(i18nc("Accept a pairing request", "Pair"), dev, &DeviceDbusInterface::acceptPairing); pairMenu->addAction(i18n("Reject"), dev, &DeviceDbusInterface::cancelPairing); } }