diff options
author | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-11-22 09:57:27 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2011-11-22 14:56:23 +0100 |
commit | f6e166e504961ada05441c47f14f08fef6a73117 (patch) | |
tree | 7192b6aa18032ea4ec046199950cd0bedb41088b | |
parent | 63007d2ba059f6db45052a30f02c8d913ec20f3c (diff) | |
download | qt-creator-f6e166e504961ada05441c47f14f08fef6a73117.tar.gz |
Make "Clean" and "Build" translated in "Add %1 Step"
Do the same as in case of "Deploy" string: after
restoring overwrite it with proper translated string.
Side note: tr("Build") and tr("Clean") have already
been used inside buildconfiguration.cpp so it will
not produce a new record in .ts file, i.e. this
change is not introducing a new message in string freeze
period.
Task-number: QTCREATORBUG-6595
Change-Id: I05040bba5066cbe0b55085cb2acbe43df34becd7
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
-rw-r--r-- | src/plugins/projectexplorer/buildconfiguration.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/buildconfiguration.cpp b/src/plugins/projectexplorer/buildconfiguration.cpp index 0841ec719b..3f94a892d0 100644 --- a/src/plugins/projectexplorer/buildconfiguration.cpp +++ b/src/plugins/projectexplorer/buildconfiguration.cpp @@ -187,6 +187,10 @@ bool BuildConfiguration::fromMap(const QVariantMap &map) delete list; return false; } + if (list->id() == QLatin1String(Constants::BUILDSTEPS_BUILD)) + list->setDefaultDisplayName(tr("Build")); + else if (list->id() == QLatin1String(Constants::BUILDSTEPS_CLEAN)) + list->setDefaultDisplayName(tr("Clean")); m_stepLists.append(list); } |