forked from qt-creator/qt-creator
QML l10n fixes
- qsTr(): don't use + for visible strings. - add welcomescreen to translation.pro Change-Id: I361ef4a74bd0098cd7a7ee6b596b2b281661d50b Reviewed-on: http://codereview.qt.nokia.com/920 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
committed by
Friedemann Kleint
parent
3f70190965
commit
5e2f3f0d5e
@@ -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) {
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -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")
|
||||
}
|
||||
}
|
||||
|
@@ -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
|
||||
|
@@ -13,7 +13,7 @@ HeaderItemView {
|
||||
{
|
||||
var newSessionName = sessionName
|
||||
if (model.currentSession)
|
||||
newSessionName += qsTr(" (current session)");
|
||||
newSessionName = qsTr("%1 (current session)").arg(newSessionName);
|
||||
return newSessionName;
|
||||
}
|
||||
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user