Commit 025ff8f9 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlDesigner: Translate some strings



Change-Id: Id2c045cf0947ce38698f82f43536f25252aa4160
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 91df9030
......@@ -65,7 +65,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
m_toolActionGroup = new QActionGroup(this);
m_transformToolAction = m_toolActionGroup->addAction("Transform Tool (Press Key Q)");
m_transformToolAction = m_toolActionGroup->addAction(tr("Transform Tool (Press Key Q)"));
m_transformToolAction->setShortcut(Qt::Key_Q);
m_transformToolAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
m_transformToolAction->setCheckable(true);
......@@ -83,7 +83,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
m_snappingAction->setChecked(true);
m_snappingAction->setIcon(QPixmap(":/icon/layout/snapping.png"));
m_snappingAndAnchoringAction = layoutActionGroup->addAction("Toogle Snapping And Anchoring (Press Key R)");
m_snappingAndAnchoringAction = layoutActionGroup->addAction(tr("Toogle Snapping And Anchoring (Press Key R)"));
m_snappingAndAnchoringAction->setShortcut(Qt::Key_R);
m_snappingAndAnchoringAction->setShortcutContext(Qt::WidgetWithChildrenShortcut);
m_snappingAndAnchoringAction->setCheckable(true);
......@@ -130,7 +130,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view)
addAction(m_rootHeightAction.data());
upperActions.append(m_rootHeightAction.data());
m_snappingAndAnchoringAction = layoutActionGroup->addAction("Toogle Snapping And Anchoring (Press Key R)");
m_snappingAndAnchoringAction = layoutActionGroup->addAction(tr("Toogle Snapping And Anchoring (Press Key R)"));
m_toolBox = new ToolBox(this);
fillLayout->addWidget(m_toolBox.data());
......
......@@ -198,17 +198,17 @@ QList<QToolButton *> ItemLibraryWidget::createToolBarWidgets()
return buttons; //import management gets disabled for now (TODO ###)
buttons << new QToolButton();
buttons.first()->setText("I ");
buttons.first()->setText(tr("I "));
buttons.first()->setIcon(QIcon(QLatin1String(Core::Constants::ICON_FILTER)));
buttons.first()->setToolTip("Manage imports for components");
buttons.first()->setToolTip(tr("Manage imports for components"));
buttons.first()->setPopupMode(QToolButton::InstantPopup);
QMenu * menu = new QMenu;
QAction * basicQtAction = new QAction(menu);
basicQtAction->setCheckable(true);
basicQtAction->setText("Basic Qt Quick only");
basicQtAction->setText(tr("Basic Qt Quick only"));
QAction * meegoAction= new QAction(menu);
meegoAction->setCheckable(true);
meegoAction->setText("Meego Components");
meegoAction->setText(tr("Meego Components"));
menu->addAction(basicQtAction);
menu->addAction(meegoAction);
buttons.first()->setMenu(menu);
......
......@@ -51,7 +51,7 @@ ResetWidget::ResetWidget(QWidget *parent) : QGroupBox(parent), m_backendObject(0
m_vlayout->setContentsMargins(2,2,2,2);
QPushButton *b = new QPushButton(this);
b->setText("reset all properties");
b->setText(tr("reset all properties"));
m_vlayout->addWidget(b);
setLayout(m_vlayout);
......
......@@ -97,7 +97,7 @@ DesignModeWidget *DesignModeWidget::s_instance = 0;
DocumentWarningWidget::DocumentWarningWidget(DesignModeWidget *parent) :
Utils::FakeToolTip(parent),
m_errorMessage(new QLabel("Placeholder", this)),
m_errorMessage(new QLabel(tr("Placeholder"), this)),
m_goToError(new QLabel(this)),
m_designModeWidget(parent)
{
......
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