Improve/change "Pair" i18n messages

This commit is contained in:
Albert Astals Cid 2023-07-22 19:58:18 +02:00 committed by Albert Vaca Cintora
parent 46cac0bf61
commit 4fa2e93246
3 changed files with 3 additions and 3 deletions

View file

@ -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()
}

View file

@ -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: {

View file

@ -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);
}
}