Commit 37039394 authored by Pino Toscano's avatar Pino Toscano

i18n fixes

- spell "JavaScript", "OK", "UI", and "URL" correctly
- translate few untranslatable UI strings
- style fixes
parent 8a059d9a
......@@ -60,7 +60,7 @@ Kirigami.OverlaySheet {
}
Controls.Button {
text: i18n("Ok")
text: i18n("OK")
Layout.alignment: Qt.AlignRight
onClicked: accept()
}
......
......@@ -33,7 +33,7 @@ Kirigami.ScrollablePage {
id: settingsPage
Controls.CheckDelegate {
text: i18n("Enable javascript")
text: i18n("Enable JavaScript")
Layout.fillWidth: true
onCheckedChanged: {
var settings = currentWebView.settings;
......@@ -61,7 +61,7 @@ Kirigami.ScrollablePage {
InputSheet {
id: homePagePopup
title: i18n("Homepage")
description: i18n("website that should be loaded on startup")
description: i18n("Website that should be loaded on startup")
placeholderText: browserManager.homepage
onAccepted: {
if (homePagePopup.text !== "")
......@@ -72,7 +72,7 @@ Kirigami.ScrollablePage {
InputSheet {
id: searchEnginePopup
title: i18n("Search Engine")
description: i18n("Base url of your preferred search engine")
description: i18n("Base URL of your preferred search engine")
placeholderText: browserManager.searchBaseUrl
onAccepted: {
if (searchEnginePopup.text !== "")
......
......@@ -164,7 +164,7 @@ WebEngineView {
onNewViewRequested: {
if (request.userInitiated) {
newTab(request.requestedUrl.toString())
showPassiveNotification("Website was opened in a new tab")
showPassiveNotification(i18n("Website was opened in a new tab"))
} else {
newTabQuestion.url = request.requestedUrl
newTabQuestion.visible = true
......
......@@ -28,7 +28,7 @@ import org.kde.kirigami 2.4 as Kirigami
Kirigami.ApplicationWindow {
id: webBrowser
title: "Angelfish Webbrowser"
title: i18n("Angelfish Web Browser")
/** Pointer to the currently active view.
*
......
......@@ -23,6 +23,8 @@
#include <QCommandLineOption>
#include <QtWebEngine>
#include <KLocalizedString>
#include "browsermanager.h"
#include "urlfilterproxymodel.h"
......@@ -38,8 +40,8 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
// Command line parser
QCommandLineParser parser;
QCommandLineOption helpOption = parser.addHelpOption();
parser.addPositionalArgument("url", "An url to open", "[url]");
parser.addOption({"webapp-container", "Start without ui"});
parser.addPositionalArgument("url", i18n("URL to open"), "[url]");
parser.addOption({"webapp-container", i18n("Start without UI")});
parser.parse(QGuiApplication::arguments());
// QML loading
......
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