From ad9036da0c71e58aa7bda9f88566432dd1239e47 Mon Sep 17 00:00:00 2001 From: Kai Koehne <kai.koehne@nokia.com> Date: Thu, 8 Apr 2010 10:30:58 +0200 Subject: [PATCH] QmlDesigner: Add more stuff to the list of strings to be translated --- share/qtcreator/translations/qtcreator_de.ts | 2 +- .../components/formeditor/formeditorwidget.cpp | 16 ++++++++-------- .../components/integration/componentview.cpp | 2 +- .../stateseditor/stateseditormodel.cpp | 2 +- .../stateseditor/stateseditorwidget.cpp | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/share/qtcreator/translations/qtcreator_de.ts b/share/qtcreator/translations/qtcreator_de.ts index 3f4f385b3b8..7f507b65a6d 100644 --- a/share/qtcreator/translations/qtcreator_de.ts +++ b/share/qtcreator/translations/qtcreator_de.ts @@ -16457,7 +16457,7 @@ Sie können die Änderungen in einem Stash ablegen oder rücksetzen.</translatio <location line="+1"/> <source>Resources</source> <comment>Title of library resources view</comment> - <translation>Ressourcendateien</translation> + <translation>Ressourcen</translation> </message> <message> <location line="+5"/> diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp index 732a3baaf3e..eb43b07aa7b 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp @@ -165,19 +165,19 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view) QActionGroup *layoutMarginActionGroup = new QActionGroup(this); m_snappingMarginAction = new NumberSeriesAction(layoutMarginActionGroup); - m_snappingMarginAction->addEntry("no margins (0)", 0); - m_snappingMarginAction->addEntry("small margin (2)", 2); - m_snappingMarginAction->addEntry("medium margin (6)", 6); - m_snappingMarginAction->addEntry("large margin (10)", 10); + m_snappingMarginAction->addEntry(tr("no margins (0)"), 0); + m_snappingMarginAction->addEntry(tr("small margin (2)"), 2); + m_snappingMarginAction->addEntry(tr("medium margin (6)"), 6); + m_snappingMarginAction->addEntry(tr("large margin (10)"), 10); m_snappingMarginAction->setCurrentEntryIndex(2); layoutMarginActionGroup->addAction(m_snappingMarginAction.data()); m_snappingSpacingAction = new NumberSeriesAction(layoutMarginActionGroup); - m_snappingSpacingAction->addEntry("no spacing (0)", 0); - m_snappingSpacingAction->addEntry("small spacing (2)", 2); - m_snappingSpacingAction->addEntry("medium spacing (4)", 4); - m_snappingSpacingAction->addEntry("large spacing (6)", 6); + m_snappingSpacingAction->addEntry(tr("no spacing (0)"), 0); + m_snappingSpacingAction->addEntry(tr("small spacing (2)"), 2); + m_snappingSpacingAction->addEntry(tr("medium spacing (4)"), 4); + m_snappingSpacingAction->addEntry(tr("large spacing (6)"), 6); m_snappingSpacingAction->setCurrentEntryIndex(1); layoutMarginActionGroup->addAction(m_snappingSpacingAction.data()); diff --git a/src/plugins/qmldesigner/components/integration/componentview.cpp b/src/plugins/qmldesigner/components/integration/componentview.cpp index 2d5f6b18996..943895b01a4 100644 --- a/src/plugins/qmldesigner/components/integration/componentview.cpp +++ b/src/plugins/qmldesigner/components/integration/componentview.cpp @@ -72,7 +72,7 @@ ModelNode ComponentView::modelNode(int index) const void ComponentView::appendWholeDocumentAsComponent() { - QStandardItem *item = new QStandardItem("Whole Document"); + QStandardItem *item = new QStandardItem(tr("whole document")); item->setData(QVariant::fromValue(rootModelNode()), ModelNodeRole); item->setEditable(false); m_standardItemModel->appendRow(item); diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp index 5fef38fd6a6..8c5b5ac4767 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp @@ -73,7 +73,7 @@ QVariant StatesEditorModel::data(const QModelIndex &index, int role) const switch (role) { case StateNameRole: { if (index.row()==0) - result = QString("base state"); + result = QString(tr("base state", "Implicit default state")); else result = m_stateNames.at(index.row()); break; diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorwidget.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorwidget.cpp index faeb4fd21b4..937af6e900a 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorwidget.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorwidget.cpp @@ -130,7 +130,7 @@ void StatesEditorWidgetPrivate::addState() QString newStateName; int index = 1; while (1) { - newStateName = tr("State%1").arg(index++); + newStateName = tr("State%1", "Default name for newly created states").arg(index++); if (!modelStateNames.contains(newStateName)) break; } -- GitLab