From 68fa655dc4be2f6f9c48be1054a2a7d74976a6a7 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Mon, 4 Jan 2010 19:23:07 +0000 Subject: Make strings better translatable by allowing to change the position of the dynamic part. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24176 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilqt/base/uninstall.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rbutil/rbutilqt/base/uninstall.cpp b/rbutil/rbutilqt/base/uninstall.cpp index e28738b95b..15ada35c5e 100644 --- a/rbutil/rbutilqt/base/uninstall.cpp +++ b/rbutil/rbutilqt/base/uninstall.cpp @@ -49,7 +49,7 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp) for(int i=0; i< uninstallSections.size() ; i++) { - m_dp->addItem(tr("Uninstalling ") + uninstallSections.at(i) + "...",LOGINFO); + m_dp->addItem(tr("Uninstalling %1...").arg(uninstallSections.at(i)), LOGINFO); QCoreApplication::processEvents(); // create list of all other install sections QStringList sections = installlog.childGroups(); @@ -80,7 +80,8 @@ void Uninstaller::uninstall(ProgressloggerInterface* dp) if(toDelete.isFile()) // if it is a file remove it { if(deleteFile && !QFile::remove(toDelete.filePath())) - m_dp->addItem(tr("Could not delete: ")+ toDelete.filePath(),LOGWARNING); + m_dp->addItem(tr("Could not delete %1") + .arg(toDelete.filePath()),LOGWARNING); installlog.remove(toDeleteList.at(j)); qDebug() << "deleted: " << toDelete.filePath() ; } -- cgit v1.2.3