From 7849a363ff045b886d636c2c341b0fbef85dc54f Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 8 Oct 2013 17:20:05 +0200 Subject: [PATCH] QmlDesigner.PropertyEditor: adding missing qsTr() Change-Id: Ifcda7118cce9858af4670d60d902868c9e45e90a Reviewed-by: Thomas Hartmann --- .../QtQuick/AdvancedSection.qml | 6 ++--- .../QtQuick/GeometrySection.qml | 6 ++--- .../QtQuick/ItemPane.qml | 22 +++++++++---------- .../QtQuick/LayoutSection.qml | 18 +++++++-------- .../QtQuick/RectangleSpecifics.qml | 4 ++-- 5 files changed, 28 insertions(+), 28 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml index d90957ecef..2784bb7fa0 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/AdvancedSection.qml @@ -34,13 +34,13 @@ import QtQuick.Layouts 1.0 Section { anchors.left: parent.left anchors.right: parent.right - caption: "Advanced" + caption: qsTr("Advanced") SectionLayout { rows: 3 Label { - text: "Scale" + text: qsTr("Scale") } SecondColumnLayout { @@ -57,7 +57,7 @@ Section { } } Label { - text: "Rotation" + text: qsTr("Rotation") } SecondColumnLayout { SpinBox { diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml index 15636eddfe..d174be3bdc 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/GeometrySection.qml @@ -43,7 +43,7 @@ import HelperWidgets 2.0 import QtQuick.Layouts 1.0 Section { - caption: "Geometry" + caption: qsTr("Geometry") SectionLayout { columnSpacing: 6 @@ -51,7 +51,7 @@ Section { rows: 2 Label { - text: "Position" + text: qsTr("Position") } SecondColumnLayout { @@ -81,7 +81,7 @@ Section { ExpandingSpacer{} } Label { - text: "Size" + text: qsTr("Size") } SecondColumnLayout { diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml index c2a353dfce..f201ebf8fb 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml @@ -43,14 +43,14 @@ Rectangle { Column { width: itemPane.width Section { - caption: "Type" + caption: qsTr("Type") anchors.left: parent.left anchors.right: parent.right SectionLayout { Label { - text: "Type" + text: qsTr("Type") } @@ -60,7 +60,7 @@ Rectangle { } Label { - text: "id" + text: qsTr("id") } @@ -69,7 +69,7 @@ Rectangle { id: lineEdit enabled: isBaseState backendValue: backendValues.id - placeholderText: "id" + placeholderText: qsTr("id") text: backendValues.id.value Layout.fillWidth: true Layout.maximumWidth: 320 @@ -93,18 +93,18 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right - caption: "Visibilty" + caption: qsTr("Visibilty") SectionLayout { rows: 2 Label { - text: "Visibilty" + text: qsTr("Visibilty") } SecondColumnLayout { CheckBox { - text: "Is Visible" + text: qsTr("Is Visible") backendValue: backendValues.visible } @@ -115,7 +115,7 @@ Rectangle { } CheckBox { - text: "Clip" + text: qsTr("Clip") backendValue: backendValues.clip } Item { @@ -124,7 +124,7 @@ Rectangle { } Label { - text: "Opacity" + text: qsTr("Opacity") } SecondColumnLayout { @@ -171,7 +171,7 @@ Rectangle { } Tab { - title: "Layout" + title: qsTr("Layout") component: Column { anchors.left: parent.left anchors.right: parent.right @@ -183,7 +183,7 @@ Rectangle { Tab { anchors.fill: parent - title: "Advanced" + title: qsTr("Advanced") component: Column { anchors.left: parent.left anchors.right: parent.right diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml index c18b721ea8..55bc3e1368 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/LayoutSection.qml @@ -45,12 +45,12 @@ import QtQuick.Layouts 1.0 Section { anchors.left: parent.left anchors.right: parent.right - caption: "Layout" + caption: qsTr("Layout") ColumnLayout { width: parent.width Label { - text: "Anchors" + text: qsTr("Anchors") } AnchorButtons { @@ -74,7 +74,7 @@ Section { Text { - text: "Target" + text: qsTr("Target") } ComboBox { @@ -128,7 +128,7 @@ Section { Text { - text: "Target" + text: qsTr("Target") } ComboBox { @@ -137,7 +137,7 @@ Section { Text { - text: "Margin" + text: qsTr("Margin") } RowLayout { @@ -182,7 +182,7 @@ Section { Text { - text: "Target" + text: qsTr("Target") } ComboBox { @@ -191,7 +191,7 @@ Section { Text { - text: "Margin" + text: qsTr("Margin") } RowLayout { @@ -236,7 +236,7 @@ Section { Text { - text: "Target" + text: qsTr("Target") } ComboBox { @@ -245,7 +245,7 @@ Section { Text { - text: "Margin" + text: qsTr("Margin") } RowLayout { diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml index 7ac6bdbbf9..04e89619ec 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/RectangleSpecifics.qml @@ -71,7 +71,7 @@ Column { SectionLayout { rows: 2 Label { - text: "Border" + text: qsTr("Border") } SecondColumnLayout { SpinBox { @@ -84,7 +84,7 @@ Column { } } Label { - text: "Radius" + text: qsTr("Radius") } SecondColumnLayout { SpinBox { -- GitLab