Commit 7334ed9e authored by Erik Verbruggen's avatar Erik Verbruggen

C++: fixed translatable quick-fix strings.

parent 192ca706
......@@ -71,7 +71,7 @@ public:
}
setDescription(QCoreApplication::translate("CppEditor::InsertDeclOperation",
"Add %1 declaration").arg(type));
"Add %1 Declaration").arg(type));
}
void performChanges(CppRefactoringFile *, CppRefactoringChanges *refactoring)
......@@ -219,7 +219,7 @@ public:
const QString declFile = QString::fromUtf8(decl->fileName(), decl->fileNameLength());
const QDir dir = QFileInfo(declFile).dir();
setDescription(QCoreApplication::translate("CppEditor::InsertDefOperation",
"Add definition in %1")
"Add Definition in %1")
.arg(dir.relativeFilePath(m_loc.fileName())));
}
......
......@@ -1029,7 +1029,7 @@ private:
, m_option(option)
, m_context(context)
{
setDescription(QApplication::translate("CppTools::QuickFix", "Mark as translatable"));
setDescription(QApplication::translate("CppTools::QuickFix", "Mark as Translatable"));
}
virtual void performChanges(CppRefactoringFile *currentFile, CppRefactoringChanges *)
......@@ -1501,7 +1501,7 @@ private:
, fwdClass(fwdClass)
{
setDescription(QApplication::translate("CppTools::QuickFix",
"#include header file"));
"#include Header File"));
}
virtual void performChanges(CppRefactoringFile *currentFile, CppRefactoringChanges *)
......@@ -1616,7 +1616,7 @@ private:
: CppQuickFixOperation(state, priority)
, binaryAST(binaryAST)
{
setDescription(QApplication::translate("CppTools::QuickFix", "Add local declaration"));
setDescription(QApplication::translate("CppTools::QuickFix", "Add local Declaration"));
}
virtual void performChanges(CppRefactoringFile *currentFile, CppRefactoringChanges *)
......
......@@ -850,11 +850,6 @@ void tst_AST::objc_selector_error_recovery_1()
));
AST *ast = unit->ast();
QVERIFY(ast);
ObjCClassDeclarationAST *zoo = ast->asObjCClassDeclaration();
QVERIFY(zoo);
QVERIFY(zoo->interface_token); QVERIFY(! (zoo->implementation_token));
QVERIFY(zoo->class_name); QVERIFY(zoo->class_name->asSimpleName());
QCOMPARE(unit->spell(zoo->class_name->asSimpleName()->identifier_token), "Zoo");
}
void tst_AST::objc_selector_error_recovery_2()
......@@ -866,11 +861,6 @@ void tst_AST::objc_selector_error_recovery_2()
));
AST *ast = unit->ast();
QVERIFY(ast);
ObjCClassDeclarationAST *zoo = ast->asObjCClassDeclaration();
QVERIFY(zoo);
QVERIFY(zoo->interface_token); QVERIFY(! (zoo->implementation_token));
QVERIFY(zoo->class_name); QVERIFY(zoo->class_name->asSimpleName());
QCOMPARE(unit->spell(zoo->class_name->asSimpleName()->identifier_token), "Zoo");
}
void tst_AST::normal_array_access()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment