diff --git a/share/qtcreator/translations/translations.pro b/share/qtcreator/translations/translations.pro index 51343d4d76f..e84cb51e8f1 100644 --- a/share/qtcreator/translations/translations.pro +++ b/share/qtcreator/translations/translations.pro @@ -40,7 +40,8 @@ plugin_sources -= src/plugins/plugins.pro \ src/plugins/qtestlib \ src/plugins/snippets \ src/plugins/regexp -sources = src/app src/libs $$plugin_sources src/shared share/qtcreator/qmldesigner +sources = src/app src/libs $$plugin_sources src/shared share/qtcreator/qmldesigner \ + share/qtcreator/welcomescreen share/qtcreator/welcomescreen/widgets files = $$files($$PWD/*_??.ts) $$PWD/qtcreator_untranslated.ts for(file, files) { diff --git a/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml b/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml index 327af9daa7a..94700c409db 100644 --- a/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml +++ b/share/qtcreator/welcomescreen/widgets/ExampleBrowser.qml @@ -49,7 +49,7 @@ Item { anchors.left: checkBox.right anchors.verticalCenter: lineEdit.verticalCenter visible: !examplesModel.showTutorialsOnly - text: tag === "" ? qsTr("Filter by Tag") : qsTr("Tag Filter: ") + tag + text: tag === "" ? qsTr("Filter by Tag") : qsTr("Tag Filter: %1").arg(tag) onClicked: tagChooser.visible = !tagChooser.visible } } diff --git a/share/qtcreator/welcomescreen/widgets/FeaturedAndNewsListing.qml b/share/qtcreator/welcomescreen/widgets/FeaturedAndNewsListing.qml index c545b7af910..f9a37d425b7 100644 --- a/share/qtcreator/welcomescreen/widgets/FeaturedAndNewsListing.qml +++ b/share/qtcreator/welcomescreen/widgets/FeaturedAndNewsListing.qml @@ -7,7 +7,7 @@ Item { anchors.top: parent.top anchors.margins: 10 horizontalAlignment: Text.AlignHCenter - text: "Featured News" + text: qsTr("Featured News") // mainColor: "#44A51C" mainColor: "#074C1C" font.bold: true diff --git a/share/qtcreator/welcomescreen/widgets/Feedback.qml b/share/qtcreator/welcomescreen/widgets/Feedback.qml index 71fc1e70dc1..64a3904341a 100644 --- a/share/qtcreator/welcomescreen/widgets/Feedback.qml +++ b/share/qtcreator/welcomescreen/widgets/Feedback.qml @@ -13,7 +13,7 @@ BorderImage { Components.Button { id: openProjectButton - text: "Open Project" + text: qsTr("Open Project...") iconSource: "image://desktoptheme/document-open" onClicked: welcomeMode.openProject(); height: 32 @@ -24,7 +24,7 @@ BorderImage { Components.Button { id: createProjectButton - text: "Create Project" + text: qsTr("Create Project...") iconSource: "image://desktoptheme/document-new" onClicked: welcomeMode.newProject(); height: 32 @@ -36,7 +36,7 @@ BorderImage { Components.Button { id: feedbackButton - text: "Feedback" + text: qsTr("Feedback") iconSource: "qrc:welcome/images/feedback_arrow.png" height: 32 anchors.verticalCenter: parent.verticalCenter @@ -51,6 +51,6 @@ BorderImage { anchors.right: parent.right anchors.leftMargin: 10 anchors.margins: 5 - text: "Help us make Qt Creator even better" + text: qsTr("Help us make Qt Creator even better") } } diff --git a/share/qtcreator/welcomescreen/widgets/LineEdit.qml b/share/qtcreator/welcomescreen/widgets/LineEdit.qml index 9d3654d2766..bea80a85080 100644 --- a/share/qtcreator/welcomescreen/widgets/LineEdit.qml +++ b/share/qtcreator/welcomescreen/widgets/LineEdit.qml @@ -12,12 +12,12 @@ FocusScope { border.right: 5; border.bottom: 5 TextInput { id: input + property string defaultText anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.right: parent.right anchors.leftMargin: 4 anchors.rightMargin: 4 - property string defaultText: "Click here to search the tutorials and howtos" color: "grey" text: defaultText font.pointSize: 12 diff --git a/share/qtcreator/welcomescreen/widgets/RecentSessions.qml b/share/qtcreator/welcomescreen/widgets/RecentSessions.qml index 3f10805ff97..68fb74cf33e 100644 --- a/share/qtcreator/welcomescreen/widgets/RecentSessions.qml +++ b/share/qtcreator/welcomescreen/widgets/RecentSessions.qml @@ -13,7 +13,7 @@ HeaderItemView { { var newSessionName = sessionName if (model.currentSession) - newSessionName += qsTr(" (current session)"); + newSessionName = qsTr("%1 (current session)").arg(newSessionName); return newSessionName; } diff --git a/src/plugins/qmlprofiler/qml/TimeDisplay.qml b/src/plugins/qmlprofiler/qml/TimeDisplay.qml index 026846f900e..44efa2879db 100644 --- a/src/plugins/qmlprofiler/qml/TimeDisplay.qml +++ b/src/plugins/qmlprofiler/qml/TimeDisplay.qml @@ -126,7 +126,7 @@ TiledCanvas { var timeDisplayBeginTime = Math.min(bt, et); var timeDisplayEndTime = Math.max(bt, et); - timeDisplayText.text = qsTr("length:")+detailedPrintTime(timeDisplayEndTime-timeDisplayBeginTime); + timeDisplayText.text = qsTr("length: %1").arg(detailedPrintTime(timeDisplayEndTime-timeDisplayBeginTime)); timeDisplayEnd.visible = true; timeDisplayEnd.x = xpos + flick.x }