forked from qt-creator/qt-creator
ProjectExplorer: Tr::tr clean-up
Tr::tr a string that was missed, and some extra qualifications to help
lupdate.
Amends: c5f7f5ab0a
Change-Id: I65b98d20ed3c1f8781823c4ee6677052d1cf0fa3
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -111,7 +111,7 @@ Core::GeneratedFile JsonWizardFileGenerator::generateFile(const File &file,
|
|||||||
gf.setContents(Utils::TemplateEngine::processText(&nested, QString::fromUtf8(reader.data()),
|
gf.setContents(Utils::TemplateEngine::processText(&nested, QString::fromUtf8(reader.data()),
|
||||||
errorMessage));
|
errorMessage));
|
||||||
if (!errorMessage->isEmpty()) {
|
if (!errorMessage->isEmpty()) {
|
||||||
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizard", "When processing \"%1\":<br>%2")
|
*errorMessage = Tr::tr("When processing \"%1\":<br>%2")
|
||||||
.arg(file.source.toUserOutput(), *errorMessage);
|
.arg(file.source.toUserOutput(), *errorMessage);
|
||||||
return Core::GeneratedFile();
|
return Core::GeneratedFile();
|
||||||
}
|
}
|
||||||
|
@@ -30,9 +30,9 @@ static TextEditor::TextMarkCategory categoryForType(Task::TaskType type)
|
|||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case Task::Error:
|
case Task::Error:
|
||||||
return {Tr::tr("Taskhub Error"), TASK_MARK_ERROR};
|
return {::ProjectExplorer::Tr::tr("Taskhub Error"), TASK_MARK_ERROR};
|
||||||
case Task::Warning:
|
case Task::Warning:
|
||||||
return {Tr::tr("Taskhub Warning"), TASK_MARK_WARNING};
|
return {::ProjectExplorer::Tr::tr("Taskhub Warning"), TASK_MARK_WARNING};
|
||||||
default:
|
default:
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user