Commit 19a12103 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

L10n: tr()-fixes.

parent 5e74a3aa
......@@ -1023,6 +1023,7 @@ void CdbEngine::assignValueInDebugger(const WatchData *w, const QString &expr, c
const QString iname = QLatin1String(w->iname);
const QString type = QLatin1String(w->type);
const QString newValue = valueV.toString();
//: Arguments: New value, name, (type)
showMessage(tr("Assigning '%1' to '%2' (%3)...").arg(newValue, iname, type), LogMisc);
do {
// Value must be scalar
......@@ -1030,7 +1031,7 @@ void CdbEngine::assignValueInDebugger(const WatchData *w, const QString &expr, c
if (type != QVariant::Double && type != QVariant::Bool
&& type != QVariant::Int && type != QVariant::LongLong
&& type != QVariant::UInt&& type != QVariant::ULongLong) {
errorMessage = tr("Cannot assign only scalar values.");
errorMessage = tr("Can assign only scalar values.");
break;
}
// Check the assigneable type
......@@ -1066,6 +1067,7 @@ void CdbEngine::assignValueInDebugger(const WatchData *w, const QString &expr, c
} while (false);
QApplication::restoreOverrideCursor();
if (!success) {
//: Arguments: New value, name, (type): Error
const QString msg = tr("Unable to assign the value '%1' to '%2' (%3): %4").
arg(newValue, expr, type, errorMessage);
warning(msg);
......
......@@ -132,7 +132,7 @@ name in different directories.</string>
<item row="8" column="0" colspan="2">
<widget class="QCheckBox" name="checkBoxAdjustBreakpointLocations">
<property name="text">
<string>Adjust Breakpoint Locationss</string>
<string>Adjust Breakpoint Locations</string>
</property>
</widget>
</item>
......
......@@ -368,7 +368,7 @@
<string>Switch to editor context after last help page is closed.</string>
</property>
<property name="text">
<string>Return to editor on close last page</string>
<string>Return to editor on closing the last page</string>
</property>
</widget>
</item>
......
......@@ -151,7 +151,8 @@ bool QmlJSEditorPlugin::initialize(const QStringList & /*arguments*/, QString *e
Core::ActionContainer *contextMenu = am->createMenu(QmlJSEditor::Constants::M_CONTEXT);
Core::ActionContainer *qmlToolsMenu = am->createMenu(Core::Id(Constants::M_TOOLS_QML));
QMenu *menu = qmlToolsMenu->menu();
menu->setTitle(tr("QML")); //: QML sub-menu in the Tools menu
//: QML sub-menu in the Tools menu
menu->setTitle(tr("QML"));
menu->setEnabled(true);
am->actionContainer(Core::Constants::M_TOOLS)->addMenu(qmlToolsMenu);
......
......@@ -182,7 +182,7 @@ QByteArray AbstractMobileApp::generateDesktopFile(QString *errorMessage) const
{
QFile desktopTemplate(path(DesktopOrigin));
if (!desktopTemplate.open(QIODevice::ReadOnly)) {
*errorMessage = QCoreApplication::translate("AbstractMobileApp",
*errorMessage = QCoreApplication::translate("Qt4ProjectManager::AbstractMobileApp",
"Could not open desktop file template");
return QByteArray();
}
......@@ -194,7 +194,8 @@ QByteArray AbstractMobileApp::generateMainCpp(QString *errorMessage) const
{
QFile sourceFile(path(MainCppOrigin));
if (!sourceFile.open(QIODevice::ReadOnly)) {
*errorMessage = tr("Could not open main.cpp template '%1'.")
*errorMessage = QCoreApplication::translate("Qt4ProjectManager::AbstractMobileApp",
"Could not open main.cpp template '%1'.")
.arg(sourceFile.fileName());
return QByteArray();
}
......@@ -240,7 +241,8 @@ QByteArray AbstractMobileApp::generateProFile(QString *errorMessage) const
const QChar comment = QLatin1Char('#');
QFile proFile(path(AppProOrigin));
if (!proFile.open(QIODevice::ReadOnly)) {
*errorMessage = tr("Could not open project file template '%1'.")
*errorMessage = QCoreApplication::translate("Qt4ProjectManager::AbstractMobileApp",
"Could not open project file template '%1'.")
.arg(proFile.fileName());
return QByteArray();
}
......@@ -332,7 +334,7 @@ QByteArray AbstractMobileApp::readBlob(const QString &filePath,
{
QFile sourceFile(filePath);
if (!sourceFile.open(QIODevice::ReadOnly)) {
*errorMsg = QCoreApplication::translate("AbstractMobileApp",
*errorMsg = QCoreApplication::translate("Qt4ProjectManager::AbstractMobileApp",
"Could not open template file '%1'.").arg(filePath);
return QByteArray();
}
......
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