forked from qt-creator/qt-creator
Tr()-fixes.
This commit is contained in:
@@ -108,6 +108,7 @@ StashDialog::StashDialog(QWidget *parent) :
|
|||||||
m_deleteSelectionButton(new QPushButton(tr("Delete..."))),
|
m_deleteSelectionButton(new QPushButton(tr("Delete..."))),
|
||||||
m_showCurrentButton(new QPushButton(tr("Show"))),
|
m_showCurrentButton(new QPushButton(tr("Show"))),
|
||||||
m_restoreCurrentButton(new QPushButton(tr("Restore..."))),
|
m_restoreCurrentButton(new QPushButton(tr("Restore..."))),
|
||||||
|
//: Restore a git stash to new branch to be created
|
||||||
m_restoreCurrentInBranchButton(new QPushButton(tr("Restore to branch..."))),
|
m_restoreCurrentInBranchButton(new QPushButton(tr("Restore to branch..."))),
|
||||||
m_refreshButton(new QPushButton(tr("Refresh")))
|
m_refreshButton(new QPushButton(tr("Refresh")))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="showLogEntriesLabel">
|
<widget class="QLabel" name="showLogEntriesLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Show log entries:</string>
|
<string>Log count:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QRadioButton" name="defaultButton">
|
<widget class="QRadioButton" name="defaultButton">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Default Location:</string>
|
<string>Default Location</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ void PerforceChecker::parseOutput(const QString &response)
|
|||||||
}
|
}
|
||||||
const QString repositoryRoot = clientRootFromOutput(response);
|
const QString repositoryRoot = clientRootFromOutput(response);
|
||||||
if (repositoryRoot.isEmpty()) {
|
if (repositoryRoot.isEmpty()) {
|
||||||
|
//: Unable to determine root of the p4 client installation
|
||||||
emitFailed(tr("Unable to determine the client root."));
|
emitFailed(tr("Unable to determine the client root."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ void AbstractMaemoRunControl::deployProcessFinished()
|
|||||||
if (success) {
|
if (success) {
|
||||||
emit addToOutputWindow(this, tr("Deployment finished."));
|
emit addToOutputWindow(this, tr("Deployment finished."));
|
||||||
} else {
|
} else {
|
||||||
emit error(this, tr("Deployment failed: ") % sshDeployer->error());
|
emit error(this, tr("Deployment failed: %1").arg(sshDeployer->error()));
|
||||||
m_progress.reportCanceled();
|
m_progress.reportCanceled();
|
||||||
}
|
}
|
||||||
m_progress.reportFinished();
|
m_progress.reportFinished();
|
||||||
@@ -244,8 +244,7 @@ void MaemoRunControl::executionFinished()
|
|||||||
if (stoppedByUser) {
|
if (stoppedByUser) {
|
||||||
emit addToOutputWindow(this, tr("Remote process stopped by user."));
|
emit addToOutputWindow(this, tr("Remote process stopped by user."));
|
||||||
} else if (sshRunner->hasError()) {
|
} else if (sshRunner->hasError()) {
|
||||||
emit addToOutputWindow(this, tr("Remote process exited with error: ")
|
emit addToOutputWindow(this, tr("Remote process exited with error: %1").arg(sshRunner->error()));
|
||||||
% sshRunner->error());
|
|
||||||
} else {
|
} else {
|
||||||
emit addToOutputWindow(this, tr("Remote process finished successfully."));
|
emit addToOutputWindow(this, tr("Remote process finished successfully."));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -348,8 +348,7 @@ void MaemoSettingsWidget::handleTestThreadFinished()
|
|||||||
|
|
||||||
QString output;
|
QString output;
|
||||||
if (m_deviceTester->hasError()) {
|
if (m_deviceTester->hasError()) {
|
||||||
output = tr("Device configuration test failed:\n");
|
output = tr("Device configuration test failed:\n%1").arg(m_deviceTester->error());
|
||||||
output.append(m_deviceTester->error());
|
|
||||||
if (currentConfig().type == MaemoDeviceConfig::Simulator)
|
if (currentConfig().type == MaemoDeviceConfig::Simulator)
|
||||||
output.append(tr("\nDid you start Qemu?"));
|
output.append(tr("\nDid you start Qemu?"));
|
||||||
} else {
|
} else {
|
||||||
@@ -382,8 +381,7 @@ QString MaemoSettingsWidget::parseTestOutput()
|
|||||||
const QRegExp unamePattern(QLatin1String("Linux (\\S+)\\s(\\S+)"));
|
const QRegExp unamePattern(QLatin1String("Linux (\\S+)\\s(\\S+)"));
|
||||||
int index = unamePattern.indexIn(m_deviceTestOutput);
|
int index = unamePattern.indexIn(m_deviceTestOutput);
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
output = tr("Device configuration test failed: Unexpected output:\n");
|
output = tr("Device configuration test failed: Unexpected output:\n%1").arg(m_deviceTestOutput);
|
||||||
output.append(m_deviceTestOutput);
|
|
||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -438,8 +436,7 @@ void MaemoSettingsWidget::handleDeployThreadFinished()
|
|||||||
|
|
||||||
QString output;
|
QString output;
|
||||||
if (m_keyDeployer->hasError()) {
|
if (m_keyDeployer->hasError()) {
|
||||||
output = tr("Key deployment failed: ");
|
output = tr("Key deployment failed: %1").arg(m_keyDeployer->error());
|
||||||
output.append(m_keyDeployer->error());
|
|
||||||
} else {
|
} else {
|
||||||
output = tr("Key was successfully deployed.");
|
output = tr("Key was successfully deployed.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -178,7 +178,7 @@
|
|||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<widget class="QLabel" name="gdbServerPortLabel">
|
<widget class="QLabel" name="gdbServerPortLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Gdbserver Port:</string>
|
<string>Gdb-server port:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -66,8 +66,7 @@ void MaemoSshThread::run()
|
|||||||
m_error = e.error();
|
m_error = e.error();
|
||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
// Should in theory not be necessary, but Net7 leaks Botan exceptions.
|
// Should in theory not be necessary, but Net7 leaks Botan exceptions.
|
||||||
m_error = tr("Error in cryptography backend: ")
|
m_error = tr("Error in cryptography backend: %1").arg(QLatin1String(e.what()));
|
||||||
+ QLatin1String(e.what());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1392,11 +1392,12 @@ QString QtVersion::invalidReason() const
|
|||||||
if (qmakeCommand().isEmpty())
|
if (qmakeCommand().isEmpty())
|
||||||
return QCoreApplication::translate("QtVersion", "No qmake path set");
|
return QCoreApplication::translate("QtVersion", "No qmake path set");
|
||||||
if (displayName().isEmpty())
|
if (displayName().isEmpty())
|
||||||
return QCoreApplication::translate("QtVersion", "Qt Version has no name");
|
return QCoreApplication::translate("QtVersion", "Qt version has no name");
|
||||||
if (m_notInstalled)
|
if (m_notInstalled)
|
||||||
return QCoreApplication::translate("QtVersion", "Qt Version is not installed, please run make install");
|
return QCoreApplication::translate("QtVersion", "Qt version is not properly installed, please run make install");
|
||||||
if (!m_versionInfo.contains("QT_INSTALL_BINS"))
|
if (!m_versionInfo.contains("QT_INSTALL_BINS"))
|
||||||
return QCoreApplication::translate("QtVersion", "Could not determine qt install binary, maybe the qmake path is wrong?");
|
return QCoreApplication::translate("QtVersion",
|
||||||
|
"Could not determine the path to the binaries of the Qt installation, maybe the qmake path is wrong?");
|
||||||
return QString();
|
return QString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,8 +54,8 @@ TestWizardDialog::TestWizardDialog(const QString &templateName,
|
|||||||
BaseQt4ProjectWizardDialog(true, parent),
|
BaseQt4ProjectWizardDialog(true, parent),
|
||||||
m_testPage(new TestWizardPage)
|
m_testPage(new TestWizardPage)
|
||||||
{
|
{
|
||||||
setIntroDescription(tr("This wizard generates a Qt4 unit test "
|
setIntroDescription(tr("This wizard generates a Qt unit test "
|
||||||
"consisting of a single source file with a test object."));
|
"consisting of a single source file with a test class."));
|
||||||
setWindowIcon(icon);
|
setWindowIcon(icon);
|
||||||
setWindowTitle(templateName);
|
setWindowTitle(templateName);
|
||||||
setSelectedModules(QLatin1String("core testlib"), true);
|
setSelectedModules(QLatin1String("core testlib"), true);
|
||||||
|
|||||||
Reference in New Issue
Block a user