diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-04-08 12:03:47 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-04-28 07:21:49 +0200 |
commit | 25926f66c6cae81ebe97145616568aad54597246 (patch) | |
tree | 41c5ae5849e7b6fffed587480b2155674425ef6a /src/tdebluezauth/authorize.cpp | |
parent | 9cffe7eae8861d861218452941851b1d9c9b51c1 (diff) | |
download | tdebluez-25926f66.tar.gz tdebluez-25926f66.zip |
Change the text of the action for authorization so that it is not joined
from multiple strings and therefore translation could be clearer.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 331e531dec9f72e45abedb2a5c71828a9c7d4a78)
Diffstat (limited to 'src/tdebluezauth/authorize.cpp')
-rw-r--r-- | src/tdebluezauth/authorize.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tdebluezauth/authorize.cpp b/src/tdebluezauth/authorize.cpp index 26aa813..739c344 100644 --- a/src/tdebluezauth/authorize.cpp +++ b/src/tdebluezauth/authorize.cpp @@ -32,13 +32,15 @@ AuthorizeDialog::AuthorizeDialog(const TQString &addr, const TQString &devName, KGuiItem(i18n("Accept"), "accept"), KGuiItem(i18n("Reject"), "reject")) { - TQString action(i18n("wants to act as Input Device")); + TQString action; - if (!service.isEmpty()) - action.append(" for " + service); + action = (service.isEmpty() + ? i18n("<b>%1</b> (device address <b>%2</b>) wants to act as Input Device.") + : i18n("<b>%1</b> (device address <b>%2</b>) wants to act as Input Device for %3.")). + arg(devName).arg(addr).arg(service); authDlg = new AuthDialog(this); - authDlg->messageLabel->setText(authDlg->messageLabel->text().arg(devName).arg(addr).arg(action)); + authDlg->messageLabel->setText(authDlg->messageLabel->text().arg(action)); connect(this, SIGNAL(okClicked()), SLOT(close())); setMainWidget(authDlg); |