[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:26 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=34bee76
The following commit has been merged in the master branch:
commit 34bee764e8664d7cc1304c0498b54dc43000cbd2
Author: Àlex Fiestas <afiestas at kde.org>
Date: Fri Feb 28 17:35:51 2014 +0100
Use i18n properly using arguments rather than replaces
i18n accepts extra arguments to properly perform the
replacements of %1 by the proper value, we have to use that
instead of calling .arg in the resulting QString so i18n can
do some magic for us.
---
kded/plugins/sftp/sftpplugin.cpp | 8 ++++----
plasmoid/package/contents/ui/Battery.qml | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/kded/plugins/sftp/sftpplugin.cpp b/kded/plugins/sftp/sftpplugin.cpp
index 3166d61..ae7ce04 100644
--- a/kded/plugins/sftp/sftpplugin.cpp
+++ b/kded/plugins/sftp/sftpplugin.cpp
@@ -165,8 +165,8 @@ void SftpPlugin::onMounted()
KNotification* notification = new KNotification("mounted", KNotification::CloseOnTimeout, this);
notification->setPixmap(KIconLoader::global()->loadIcon("drive-removable-media", KIconLoader::Desktop));
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
- notification->setTitle(i18n("Device %1").arg(device()->name()));
- notification->setText(i18n("Filesystem mounted at %1").arg(mountPoint()));
+ notification->setTitle(i18n("Device %1", device()->name()));
+ notification->setText(i18n("Filesystem mounted at %1", mountPoint()));
notification->sendEvent();
Q_EMIT mounted();
@@ -186,7 +186,7 @@ void SftpPlugin::onUnmounted(bool idleTimeout)
KNotification* notification = new KNotification("unmounted", KNotification::CloseOnTimeout, this);
notification->setPixmap(KIconLoader::global()->loadIcon("dialog-ok", KIconLoader::Desktop));
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
- notification->setTitle(i18n("Device %1").arg(device()->name()));
+ notification->setTitle(i18n("Device %1", device()->name()));
notification->setText(i18n("Filesystem unmounted"));
notification->sendEvent();
@@ -211,7 +211,7 @@ void SftpPlugin::onFailed(const QString& message)
void SftpPlugin::knotify(int type, const QString& text, const QPixmap& icon) const
{
KNotification::event(KNotification::StandardEvent(type)
- , i18n("Device %1").arg(device()->name()), text, icon, 0
+ , i18n("Device %1", device()->name()), text, icon, 0
, KNotification::CloseOnTimeout);
}
diff --git a/plasmoid/package/contents/ui/Battery.qml b/plasmoid/package/contents/ui/Battery.qml
index 5559f97..31c537c 100644
--- a/plasmoid/package/contents/ui/Battery.qml
+++ b/plasmoid/package/contents/ui/Battery.qml
@@ -33,7 +33,7 @@ QtObject {
property bool charging: false
property int charge: -1
- property string displayString: (available && charge > -1) ? ((charging) ? (i18n("Charging, %1").arg(charge)) : (i18n("Discharging, %1").arg(charge))) : i18n("No info")
+ property string displayString: (available && charge > -1) ? ((charging) ? (i18n("Charging: %1%", charge)) : (i18n("Discharging: %1%", charge))) : i18n("No info")
property variant battery: null
property variant nested1: DBusAsyncResponse {
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list