Commit ad9036da authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlDesigner: Add more stuff to the list of strings to be translated

parent 66de48d3
......@@ -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"/>
......
......@@ -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());
......
......@@ -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);
......
......@@ -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;
......
......@@ -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;
}
......
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