L10n: Tr-fixes for build configurations.

Remove duplicate code, proper messages, linguist comments.

Task-number: QTCREATORBUG-3821
This commit is contained in:
Friedemann Kleint
2011-02-18 09:59:49 +01:00
parent fe5a7ed242
commit 7bd3bba6ee
7 changed files with 31 additions and 36 deletions

View File

@@ -73,6 +73,17 @@ Qt4BaseTargetFactory *Qt4BaseTargetFactory::qt4BaseTargetFactoryForId(const QStr
return 0;
}
// Return name of a build configuration.
QString Qt4BaseTargetFactory::msgBuildConfigurationName(const BuildConfigurationInfo &info)
{
const QString qtVersionName = info.version->displayName();
return (info.buildConfig & QtVersion::DebugBuild) ?
//: Name of a debug build configuration to created by a project wizard, %1 being the Qt version name. We recommend not translating it.
tr("%1 Debug").arg(qtVersionName) :
//: Name of a release build configuration to created by a project wizard, %1 being the Qt version name. We recommend not translating it.
tr("%1 Release").arg(qtVersionName);
}
// -------------------------------------------------------------------------
// Qt4BaseTarget
// -------------------------------------------------------------------------