From 5e4584253a61bb5211c34e43d54152029d725361 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Fri, 27 Jul 2012 19:21:03 +0200 Subject: [PATCH] I18n: Fixed plurals of bytes Change-Id: I620e9338087d9cdc08b440b7417a9c22497b6abc Reviewed-by: Oswald Buddenhagen --- src/plugins/debugger/watchdata.cpp | 2 +- .../remotelinux/remotelinuxcheckforfreediskspaceservice.cpp | 4 ++-- src/plugins/vcsbase/cleandialog.cpp | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/plugins/debugger/watchdata.cpp b/src/plugins/debugger/watchdata.cpp index eace00a0072..e2cd90b40c5 100644 --- a/src/plugins/debugger/watchdata.cpp +++ b/src/plugins/debugger/watchdata.cpp @@ -394,7 +394,7 @@ QString WatchData::toToolTip() const formatToolTipRow(str, tr("Referencing Address"), QString::fromLatin1(hexReferencingAddress())); if (size) - formatToolTipRow(str, tr("Static Object Size"), tr("%1 bytes").arg(size)); + formatToolTipRow(str, tr("Static Object Size"), tr("%n bytes", 0, size)); formatToolTipRow(str, tr("Internal ID"), QLatin1String(iname)); str << ""; return res; diff --git a/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp b/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp index 1c9a59fff27..7837accc367 100644 --- a/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp +++ b/src/plugins/remotelinux/remotelinuxcheckforfreediskspaceservice.cpp @@ -110,8 +110,8 @@ void RemoteLinuxCheckForFreeDiskSpaceService::handleProcessFinished() return; } - emit progressMessage(tr("The remote file system has %1 bytes of free space, going ahead.") - .arg(freeSpace)); + emit progressMessage(tr("The remote file system has %n bytes of free space, going ahead.", + 0, freeSpace)); stopDeployment(); } diff --git a/src/plugins/vcsbase/cleandialog.cpp b/src/plugins/vcsbase/cleandialog.cpp index 7dae41714a8..afcb79249f5 100644 --- a/src/plugins/vcsbase/cleandialog.cpp +++ b/src/plugins/vcsbase/cleandialog.cpp @@ -219,8 +219,7 @@ void CleanDialog::addFile(const QString &workingDirectory, QString fileName, boo // Tooltip with size information if (fi.isFile()) { const QString lastModified = fi.lastModified().toString(Qt::DefaultLocaleShortDate); - nameItem->setToolTip(tr("%1 bytes, last modified %2") - .arg(fi.size()).arg(lastModified)); + nameItem->setToolTip(tr("%n bytes, last modified %1", 0, fi.size()).arg(lastModified)); } d->m_filesModel->appendRow(nameItem); }