diff options
author | Victor Ostashevsky <ostash@ostash.kiev.ua> | 2010-09-01 09:47:35 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-09-01 09:47:46 (GMT) |
commit | dea941e773e297cab3a62391d21e4e1acdd93bb3 (patch) | |
tree | 6ca2a75c7ca5bdccb1a90dd578f2609d8febde09 /tools/linguist/lupdate/qdeclarative.cpp | |
parent | 6f143533666ff88c359cb7ad929e35b4decb556f (diff) | |
download | Qt-dea941e773e297cab3a62391d21e4e1acdd93bb3.zip Qt-dea941e773e297cab3a62391d21e4e1acdd93bb3.tar.gz Qt-dea941e773e297cab3a62391d21e4e1acdd93bb3.tar.bz2 |
Wrap translatable messages with tr() in assistant, designer and linguist
Merge-request: 2456
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'tools/linguist/lupdate/qdeclarative.cpp')
-rw-r--r-- | tools/linguist/lupdate/qdeclarative.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/linguist/lupdate/qdeclarative.cpp b/tools/linguist/lupdate/qdeclarative.cpp index 2377416..ffcbf20 100644 --- a/tools/linguist/lupdate/qdeclarative.cpp +++ b/tools/linguist/lupdate/qdeclarative.cpp @@ -65,6 +65,10 @@ QT_BEGIN_NAMESPACE +class LU { + Q_DECLARE_TR_FUNCTIONS(LUpdate) +}; + using namespace QDeclarativeJS; class FindTrCalls: protected AST::Visitor @@ -241,8 +245,7 @@ bool loadQml(Translator &translator, const QString &filename, ConversionData &cd cd.m_sourceFileName = filename; QFile file(filename); if (!file.open(QIODevice::ReadOnly)) { - cd.appendError(QString::fromLatin1("Cannot open %1: %2") - .arg(filename, file.errorString())); + cd.appendError(LU::tr("Cannot open %1: %2").arg(filename, file.errorString())); return false; } |