summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <qt-info@nokia.com>2009-06-06 21:17:29 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-06-07 02:52:13 (GMT)
commit4f3e3b47c80c1efbb092d9d3f59cb88c6e367dfa (patch)
tree7c37c051ca937bd2e7c5e252e3889abf78bc0474
parent474e45e06b3dab3e16d8d03efcb6010d78ff5f90 (diff)
downloadQt-4f3e3b47c80c1efbb092d9d3f59cb88c6e367dfa.zip
Qt-4f3e3b47c80c1efbb092d9d3f59cb88c6e367dfa.tar.gz
Qt-4f3e3b47c80c1efbb092d9d3f59cb88c6e367dfa.tar.bz2
Add a comment for the translator so the placeholders are described
Reviewed-by: TrustMe (cherry picked from commit 8411fe233021f8609250b7cf47353e3128521406)
-rw-r--r--tools/assistant/lib/qhelpdbreader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/assistant/lib/qhelpdbreader.cpp b/tools/assistant/lib/qhelpdbreader.cpp
index c7c6a17..a24147b 100644
--- a/tools/assistant/lib/qhelpdbreader.cpp
+++ b/tools/assistant/lib/qhelpdbreader.cpp
@@ -92,6 +92,9 @@ bool QHelpDBReader::init()
QSqlDatabase db = QSqlDatabase::addDatabase(QLatin1String("QSQLITE"), m_uniqueId);
db.setDatabaseName(m_dbName);
if (!db.open()) {
+ /*: The placeholders are: %1 - The name of the database which cannot be opened
+ %2 - The unique id for the connection
+ %3 - The actual error string */
m_error = tr("Cannot open database '%1' '%2': %3").arg(m_dbName, m_uniqueId, db.lastError().text());
QSqlDatabase::removeDatabase(m_uniqueId);
return false;