diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2012-11-24 21:06:36 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2012-11-26 09:47:14 +0100 |
commit | f8645bb6c76667fdd85fc92891ded74faf396927 (patch) | |
tree | 64ef68be2c93d6a939c50c368d3149cd77784ae9 /src/plugins/cpptools | |
parent | 9820278a708024cc1ae01372dfafabe4ff295b88 (diff) | |
download | qt-creator-f8645bb6c76667fdd85fc92891ded74faf396927.tar.gz |
Translate some strings
Change-Id: I5eab1edbca591cc36813cd862d6ad93875b51a3c
Reviewed-by: hjk <qthjk@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
Diffstat (limited to 'src/plugins/cpptools')
-rw-r--r-- | src/plugins/cpptools/cppchecksymbols.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/cpptools/cppchecksymbols.cpp b/src/plugins/cpptools/cppchecksymbols.cpp index dcd1358b94..6e32d6e83a 100644 --- a/src/plugins/cpptools/cppchecksymbols.cpp +++ b/src/plugins/cpptools/cppchecksymbols.cpp @@ -509,9 +509,11 @@ bool CheckSymbols::visit(SimpleDeclarationAST *ast) // Add a diagnostic message if non-virtual function has override/final marker if ((_usages.back().kind != SemanticInfo::VirtualMethodUse)) { if (funTy->isOverride()) - warning(declrIdNameAST, "Only virtual methods can be marked `override'"); + warning(declrIdNameAST, QCoreApplication::translate( + "CPlusplus::CheckSymbols", "Only virtual methods can be marked `override'")); else if (funTy->isFinal()) - warning(declrIdNameAST, "Only virtual methods can be marked `final'"); + warning(declrIdNameAST, QCoreApplication::translate( + "CPlusplus::CheckSymbols", "Only virtual methods can be marked `final'")); } } } @@ -712,7 +714,7 @@ void CheckSymbols::checkNamespace(NameAST *name) } const unsigned length = tokenAt(name->lastToken() - 1).end() - tokenAt(name->firstToken()).begin(); - warning(line, column, QCoreApplication::translate("CheckUndefinedSymbols", "Expected a namespace-name"), length); + warning(line, column, QCoreApplication::translate("CPlusPlus::CheckSymbols", "Expected a namespace-name"), length); } bool CheckSymbols::hasVirtualDestructor(Class *klass) const @@ -1280,9 +1282,9 @@ bool CheckSymbols::maybeAddFunction(const QList<LookupItem> &candidates, NameAST // Add a diagnostic message if argument count does not match if (matchType == Match_TooFewArgs) - warning(line, column, "Too few arguments", length); + warning(line, column, QCoreApplication::translate("CPlusplus::CheckSymbols", "Too few arguments", length); else if (matchType == Match_TooManyArgs) - warning(line, column, "Too many arguments", length); + warning(line, column, QCoreApplication::translate("CPlusplus::CheckSymbols", "Too many arguments", length); const Use use(line, column, length, kind); addUse(use); |