String improvements

Change-Id: I45778c9562ba530a36ddaf201f0c61d380d701cf
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This commit is contained in:
Robert Loehning
2015-01-05 14:21:59 +01:00
parent 0d9fa1c714
commit 18aa49e7c2
11 changed files with 12 additions and 12 deletions

View File

@@ -231,7 +231,7 @@ Item {
implicitHeight: txt.height - 1 implicitHeight: txt.height - 1
enabled: expanded || (model && !model.empty) enabled: expanded || (model && !model.empty)
iconSource: expanded ? "arrow_down.png" : "arrow_right.png" iconSource: expanded ? "arrow_down.png" : "arrow_right.png"
tooltip: expanded ? qsTr("Collapse category") : qsTr("Expand category.") tooltip: expanded ? qsTr("Collapse category") : qsTr("Expand category")
onClicked: model.expanded = !expanded onClicked: model.expanded = !expanded
} }

View File

@@ -154,7 +154,7 @@
</property> </property>
<property name="text"> <property name="text">
<string>Signing an APK that uses &quot;Deploy local Qt libraries&quot; is not allowed. <string>Signing an APK that uses &quot;Deploy local Qt libraries&quot; is not allowed.
Deploying local Qt libraries is incompatible with Android 5</string> Deploying local Qt libraries is incompatible with Android 5.</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@@ -361,7 +361,7 @@ void AndroidDeployQtStep::runCommand(const QString &program, const QStringList &
if (!buildProc.waitForFinished(2 * 60 * 1000) if (!buildProc.waitForFinished(2 * 60 * 1000)
|| buildProc.error() != QProcess::UnknownError || buildProc.error() != QProcess::UnknownError
|| buildProc.exitCode() != 0) { || buildProc.exitCode() != 0) {
QString mainMessage = tr("Packaging Error: Command \"%1 %2\" failed.") QString mainMessage = tr("Packaging error: Command \"%1 %2\" failed.")
.arg(program).arg(arguments.join(QLatin1Char(' '))); .arg(program).arg(arguments.join(QLatin1Char(' ')));
if (buildProc.error() != QProcess::UnknownError) if (buildProc.error() != QProcess::UnknownError)
mainMessage += QLatin1Char(' ') + tr("Reason: %1").arg(buildProc.errorString()); mainMessage += QLatin1Char(' ') + tr("Reason: %1").arg(buildProc.errorString());

View File

@@ -1209,7 +1209,7 @@ IEditor *PerforcePlugin::showOutputInEditor(const QString &title,
const int maxSize = EditorManager::maxTextFileSize() / 2 - 1000; // ~25 MB, 600000 lines const int maxSize = EditorManager::maxTextFileSize() / 2 - 1000; // ~25 MB, 600000 lines
if (content.size() >= maxSize) { if (content.size() >= maxSize) {
content = content.left(maxSize); content = content.left(maxSize);
content += QLatin1Char('\n') + tr("[Only %1 MB of output shown]").arg(maxSize / 1024 / 1024); content += QLatin1Char('\n') + tr("[Only %n MB of output shown]", 0, maxSize / 1024 / 1024);
} }
IEditor *editor = EditorManager::openEditorWithContents(id, &s, content.toUtf8()); IEditor *editor = EditorManager::openEditorWithContents(id, &s, content.toUtf8());
QTC_ASSERT(editor, return 0); QTC_ASSERT(editor, return 0);

View File

@@ -153,7 +153,7 @@ static JsonWizardFactory::Page parsePage(const QVariant &value, QString *errorMe
JsonWizardFactory::Page p; JsonWizardFactory::Page p;
if (value.type() != QVariant::Map) { if (value.type() != QVariant::Map) {
*errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Page is not a object."); *errorMessage = QCoreApplication::translate("ProjectExplorer::JsonWizardFactory", "Page is not an object.");
return p; return p;
} }
@@ -612,7 +612,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const QDir &baseDir,
m_options.insert(key, value); m_options.insert(key, value);
} }
} else if (optionValue.isValid()) { } else if (optionValue.isValid()) {
*errorMessage = tr("Value for \"options\" is not a list"); *errorMessage = tr("Value for \"options\" is not a list.");
return false; return false;
} }

View File

@@ -106,7 +106,7 @@ public:
[kit] { return kit->displayName(); }, [kit] { return kit->displayName(); },
false); false);
m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME, m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME,
tr("The name of the currently active kit in a filesystem friendly version."), tr("The name of the currently active kit in a filesystem-friendly version."),
[kit] { return kit->fileSystemFriendlyName(); }, [kit] { return kit->fileSystemFriendlyName(); },
false); false);
m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_ID, m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_ID,

View File

@@ -1149,7 +1149,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
}); });
expander->registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME, expander->registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME,
tr("The name of the currently active kit in a filesystem friendly version."), tr("The name of the currently active kit in a filesystem-friendly version."),
[]() -> QString { []() -> QString {
Kit *kit = currentKit(); Kit *kit = currentKit();
return kit ? kit->fileSystemFriendlyName() : QString(); return kit ? kit->fileSystemFriendlyName() : QString();

View File

@@ -164,7 +164,7 @@ ChooseDirectoryPage::ChooseDirectoryPage(CreateAndroidManifestWizard *wizard)
checkBox->setChecked(true); checkBox->setChecked(true);
connect(checkBox, &QCheckBox::toggled, wizard, &CreateAndroidManifestWizard::setCopyGradle); connect(checkBox, &QCheckBox::toggled, wizard, &CreateAndroidManifestWizard::setCopyGradle);
checkBox->setText(tr("Copy the Gradle files to Android directory")); checkBox->setText(tr("Copy the Gradle files to Android directory"));
checkBox->setToolTip(tr("It is highly recommended if you are plannig to extend the Java part of your Qt application.")); checkBox->setToolTip(tr("It is highly recommended if you are planning to extend the Java part of your Qt application."));
fl->addRow(checkBox); fl->addRow(checkBox);
} }
} }

View File

@@ -156,7 +156,7 @@
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="qtQuickCompilerLabel"> <widget class="QLabel" name="qtQuickCompilerLabel">
<property name="text"> <property name="text">
<string>Use QML compiler</string> <string>Use QML compiler:</string>
</property> </property>
</widget> </widget>
</item> </item>