Improve/change "Pair" i18n messages

(cherry picked from commit 4fa2e93246)
This commit is contained in:
Albert Astals Cid 2023-07-22 19:58:18 +02:00
parent 775b72fd4a
commit 7f788077d1
3 changed files with 3 additions and 3 deletions

View file

@ -125,7 +125,7 @@ Kirigami.ScrollablePage {
anchors.centerIn: parent anchors.centerIn: parent
visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer && !root.currentDevice.isPairRequested visible: root.currentDevice && root.currentDevice.isReachable && !root.currentDevice.isPaired && !root.currentDevice.isPairRequestedByPeer && !root.currentDevice.isPairRequested
helpfulAction: Kirigami.Action { helpfulAction: Kirigami.Action {
text: i18nd("kdeconnect-app", "Pair") text: i18ndc("kdeconnect-app", "Request pairing with a given device", "Pair")
icon.name:"network-connect" icon.name:"network-connect"
onTriggered: root.currentDevice.requestPairing() onTriggered: root.currentDevice.requestPairing()
} }

View file

@ -20,7 +20,7 @@ Kirigami.ScrollablePage
} }
objectName: "FindDevices" objectName: "FindDevices"
title: i18nd("kdeconnect-app", "Pair") title: i18ndc("kdeconnect-app", "Title of the page listing the devices", "Devices")
supportsRefreshing: true supportsRefreshing: true
onRefreshingChanged: { onRefreshingChanged: {

View file

@ -116,7 +116,7 @@ int main(int argc, char **argv)
for (const auto &req : requests) { for (const auto &req : requests) {
DeviceDbusInterface *dev = new DeviceDbusInterface(req, menu); DeviceDbusInterface *dev = new DeviceDbusInterface(req, menu);
auto pairMenu = menu->addMenu(dev->name()); 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); pairMenu->addAction(i18n("Reject"), dev, &DeviceDbusInterface::cancelPairing);
} }
} }