Commit 472e2502 authored by Friedemann Kleint's avatar Friedemann Kleint

Start on the German (prototypical) translation.

parent c9af7bba
......@@ -397,20 +397,20 @@ bool NewClassWidget::isValid(QString *error) const
if (!m_d->m_ui.headerFileLineEdit->isValid()) {
if (error)
*error = tr("Invalid header file name: %1").arg(m_d->m_ui.headerFileLineEdit->errorMessage());
*error = tr("Invalid header file name: '%1'").arg(m_d->m_ui.headerFileLineEdit->errorMessage());
return false;
}
if (!m_d->m_ui.sourceFileLineEdit->isValid()) {
if (error)
*error = tr("Invalid source file name: %1").arg(m_d->m_ui.sourceFileLineEdit->errorMessage());
*error = tr("Invalid source file name: '%1'").arg(m_d->m_ui.sourceFileLineEdit->errorMessage());
return false;
}
if (isFormInputVisible()) {
if (!m_d->m_ui.formFileLineEdit->isValid()) {
if (error)
*error = tr("Invalid form file name: %1").arg(m_d->m_ui.formFileLineEdit->errorMessage());
*error = tr("Invalid form file name: '%1'").arg(m_d->m_ui.formFileLineEdit->errorMessage());
return false;
}
}
......
......@@ -509,7 +509,7 @@ bool BaseFileWizard::postGenerateFiles(const GeneratedFiles &l, QString *errorMe
Core::EditorManager *em = Core::EditorManager::instance();
for (Core::GeneratedFiles::const_iterator it = l.constBegin(); it != cend; ++it) {
if (!em->openEditor(it->path(), it->editorKind())) {
*errorMessage = tr("Failed to open an editor for %1").arg(it->path());
*errorMessage = tr("Failed to open an editor for '%1'.").arg(it->path());
return false;
}
}
......
......@@ -43,6 +43,7 @@
#include <QtCore/QDir>
#include <QtCore/QSettings>
#include <QtCore/QProcess>
#include <QtCore/QCoreApplication>
#include <QtGui/QFormLayout>
#include <QtGui/QMainWindow>
......@@ -86,7 +87,7 @@ public:
{
if (role == Qt::DisplayRole || role == Qt::EditRole) {
if (index.row() == stringList().size())
return tr("<new>");
return QCoreApplication::translate("GenericProject", "<new>");
}
return QStringListModel::data(index, role);
......
......@@ -39,6 +39,7 @@
#include <QtGui/QHeaderView>
#include <QtGui/QMessageBox>
#include <QtGui/QPushButton>
#include <QtCore/QCoreApplication>
namespace ProjectExplorer {
namespace Internal {
......@@ -115,8 +116,8 @@ bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value,
emit dataChanged(index, index);
return true;
} else {
QMessageBox::warning(0, tr("Unable to add dependency"),
tr("This would create a circular dependency."));
QMessageBox::warning(0, QCoreApplication::translate("DependenciesModel", "Unable to add dependency"),
QCoreApplication::translate("DependenciesModel", "This would create a circular dependency."));
}
} else if (c == Qt::Unchecked) {
if (m_session->hasDependency(m_project, p)) {
......
......@@ -41,16 +41,16 @@ MainWindow::MainWindow() :
m_qrcEditor(new SharedTools::QrcEditor())
{
m_qrcEditor->setResourceDragEnabled(true);
setWindowTitle(tr("Test resource editor"));
QMenu* fMenu = menuBar()->addMenu(tr("File"));
setWindowTitle(QLatin1String("Test resource editor"));
QMenu* fMenu = menuBar()->addMenu(QLatin1String("File"));
QAction* oa = fMenu->addAction(tr("Open..."));
QAction* oa = fMenu->addAction(QLatin1String("Open..."));
connect(oa, SIGNAL(triggered()), this, SLOT(slotOpen()));
QAction* sa = fMenu->addAction(tr("Save"));
QAction* sa = fMenu->addAction(QLatin1String("Save"));
connect(sa, SIGNAL(triggered()), this, SLOT(slotSave()));
QAction* xa = fMenu->addAction(tr("Exit!"));
QAction* xa = fMenu->addAction(QLatin1String("Exit!"));
connect(xa, SIGNAL(triggered()), this, SLOT(close()));
......@@ -63,16 +63,16 @@ MainWindow::MainWindow() :
void MainWindow::slotOpen()
{
const QString fileName = QFileDialog::getOpenFileName(this, tr("Choose resource file"),
const QString fileName = QFileDialog::getOpenFileName(this, QLatin1String("Choose resource file"),
QString(),
tr("Resource files (*.qrc)"));
QLatin1String("Resource files (*.qrc)"));
if (fileName.isEmpty())
return;
if (m_qrcEditor->load(fileName))
statusBar()->showMessage(tr("%1 opened").arg(fileName));
statusBar()->showMessage(QString::fromLatin1("%1 opened").arg(fileName));
else
statusBar()->showMessage(tr("Unable to open %1!").arg(fileName));
statusBar()->showMessage(QString::fromLatin1("Unable to open %1!").arg(fileName));
}
void MainWindow::slotSave()
......@@ -81,18 +81,18 @@ void MainWindow::slotSave()
QString fileName = oldFileName;
if (fileName.isEmpty()) {
fileName = QFileDialog::getSaveFileName(this, tr("Save resource file"),
fileName = QFileDialog::getSaveFileName(this, QLatin1String("Save resource file"),
QString(),
tr("Resource files (*.qrc)"));
QLatin1String("Resource files (*.qrc)"));
if (fileName.isEmpty())
return;
}
m_qrcEditor->setFileName(fileName);
if (m_qrcEditor->save())
statusBar()->showMessage(tr("%1 written").arg(fileName));
statusBar()->showMessage(QString::fromLatin1("%1 written").arg(fileName));
else {
statusBar()->showMessage(tr("Unable to write %1!").arg(fileName));
statusBar()->showMessage(QString::fromLatin1("Unable to write %1!").arg(fileName));
m_qrcEditor->setFileName(oldFileName);
}
}
......@@ -41,7 +41,7 @@ NewClassCustomWidget::NewClassCustomWidget(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("Widget to enter classes and source files"))
QLatin1String("Widget to enter classes and source files"))
{
}
......@@ -52,7 +52,7 @@ ClassNameValidatingLineEdit_CW::ClassNameValidatingLineEdit_CW(QObject *parent)
false,
QLatin1String(groupC),
QIcon(),
tr("Line Edit that validates a class name"))
QLatin1String("Line Edit that validates a class name"))
{
}
......@@ -63,7 +63,7 @@ FileNameValidatingLineEdit_CW::FileNameValidatingLineEdit_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("Line Edit that validates a file name"))
QLatin1String("Line Edit that validates a file name"))
{
}
......@@ -74,7 +74,7 @@ ProjectNameValidatingLineEdit_CW::ProjectNameValidatingLineEdit_CW(QObject *pare
false,
QLatin1String(groupC),
QIcon(),
tr("Line Edit that validates a project name"))
QLatin1String("Line Edit that validates a project name"))
{
}
......@@ -85,7 +85,7 @@ LineColumnLabel_CW::LineColumnLabel_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("Label suited for displaying line numbers with a fixed with depending on the font size"),
QLatin1String("Label suited for displaying line numbers with a fixed with depending on the font size"),
QSize(100, 20))
{
}
......@@ -97,7 +97,7 @@ PathChooser_CW::PathChooser_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("Input widget for paths with a browse button"))
QLatin1String("Input widget for paths with a browse button"))
{
}
......@@ -108,7 +108,7 @@ FancyLineEdit_CW::FancyLineEdit_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("A Line edit with a clickable menu pixmap"))
QLatin1String("A Line edit with a clickable menu pixmap"))
{
}
......@@ -119,7 +119,7 @@ QtColorButton_CW::QtColorButton_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("A color button that spawns a QColorDialog on click"))
QLatin1String("A color button that spawns a QColorDialog on click"))
{
}
......@@ -139,7 +139,7 @@ SubmitEditorWidget_CW::SubmitEditorWidget_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("Submit editor showing message and file list"))
QLatin1String("Submit editor showing message and file list"))
{
}
......@@ -150,7 +150,7 @@ SubmitFieldWidget_CW::SubmitFieldWidget_CW(QObject *parent) :
false,
QLatin1String(groupC),
QIcon(),
tr("Show predefined fields of a submit message in a control based on mail address controls"))
QLatin1String("Show predefined fields of a submit message in a control based on mail address controls"))
{
}
......
This diff is collapsed.
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