diff --git a/plugins/welcomepage/Messages.sh b/plugins/welcomepage/Messages.sh index a5e177430..ede13d8cd 100644 --- a/plugins/welcomepage/Messages.sh +++ b/plugins/welcomepage/Messages.sh @@ -1,3 +1,3 @@ #!/bin/sh -$XGETTEXT `find . -name \*.qml -o -name \*.cpp` -o $podir/kdevwelcomepage.pot +$XGETTEXT `find . -name \*.qml` --language JavaScript --kde -o $podir/kdevwelcomepage.pot rm -f rc.cpp diff --git a/plugins/welcomepage/qml/Develop.qml b/plugins/welcomepage/qml/Develop.qml index e96589ec2..0f4362726 100644 --- a/plugins/welcomepage/qml/Develop.qml +++ b/plugins/welcomepage/qml/Develop.qml @@ -1,140 +1,140 @@ /* KDevelop * * Copyright 2011 Aleix Pol * Copyright 2016 Kevin Funk * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. */ import QtQuick 2.0 import QtQuick.Layouts 1.2 import QtQuick.Controls 1.3 import org.kdevelop.welcomepage 4.3 StandardPage { id: root ColumnLayout { anchors.fill: parent anchors.margins: 20 spacing: 20 RowLayout { id: toolBar width: parent.width Button { iconName: "project-development-new-template" text: i18n("New Project") onClicked: kdev.retrieveMenuAction("project/project_new").trigger() } Button { text: i18n("Open Project") iconName: "project-development-open" onClicked: ICore.projectController().openProject() } Button { text: i18n("Fetch Project") iconName: "download" onClicked: kdev.retrieveMenuAction("project/project_fetch").trigger() } Button { iconName: "document-open-recent" text: i18n("Recent Projects") onClicked: kdev.showMenu("project/project_open_recent") } Item { Layout.fillWidth: true } } Label { id: greetingLabel visible: !sessionsView.visible Layout.fillWidth: true Layout.fillHeight: true - text: i18n("

Welcome to KDevelop!

-

You can start working on a project by opening an existing or creating a new one via the above buttons.

-

If you need help, please check out the User Manual.

") + + text: i18n("

Welcome to KDevelop!

\n" + + "

You can start working on a project by opening an existing or creating a new one via the above buttons.

\n" + + "

If you need help, please check out the User Manual.

") + (Qt.platform.os === "windows" ? - i18n("
-

Note for Windows users

-

Note that KDevelop does NOT ship a C/C++ compiler on Windows!

-

You need to install either GCC via MinGW or install a recent version of the Microsoft Visual Studio IDE and make sure the environment is setup correctly before starting KDevelop.

-

If you need further assistance, please check out the KDevelop under Windows instructions.

") : + i18n("
\n" + + "

Note for Windows users

\n" + + "

Note that KDevelop does NOT ship a C/C++ compiler on Windows!

\n" + + "

You need to install either GCC via MinGW or install a recent version of the Microsoft Visual Studio IDE and make sure the environment is setup correctly before starting KDevelop.

\n" + + "

If you need further assistance, please check out the KDevelop under Windows instructions.

") : "") wrapMode: Text.WordWrap onLinkActivated: Qt.openUrlExternally(link) MouseArea { anchors.fill: parent acceptedButtons: Qt.NoButton // we don't want to eat clicks on the Text cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor } } ScrollView { Layout.fillHeight: true Layout.fillWidth: true visible: sessionsView.count > 1 // we always have at least one active session ListView { id: sessionsView anchors.fill: parent delegate: MouseArea { width: sessionsView.width height: visible ? 30 : 0 visible: projects.length > 0 hoverEnabled: true cursorShape: Qt.PointingHandCursor onClicked: sessionsModel.loadSession(uuid) Label { readonly property string projectNamesString: projectNames.join(", ").replace(/.kdev4/g, "") width: parent.width text: display == "" ? projectNamesString : i18n("%1: %2", display, projectNamesString) elide: Text.ElideRight opacity: parent.containsMouse ? 0.8 : 1 } } model: SessionsModel { id: sessionsModel } header: Heading { text: i18n("Sessions") } } } } }