summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-04 19:23:07 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2010-01-04 19:23:07 +0000
commit68fa655dc4be2f6f9c48be1054a2a7d74976a6a7 (patch)
treee818f9f0e5c1800367a74694fddda557e91451e9
parent2f2fa0ffa6a494aae96c1c8ce1ed61c382859973 (diff)
downloadrockbox-68fa655dc4be2f6f9c48be1054a2a7d74976a6a7.tar.gz
rockbox-68fa655dc4be2f6f9c48be1054a2a7d74976a6a7.tar.bz2
rockbox-68fa655dc4be2f6f9c48be1054a2a7d74976a6a7.zip
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
-rw-r--r--rbutil/rbutilqt/base/uninstall.cpp5
1 files 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() ;
}