summaryrefslogtreecommitdiff
path: root/gui/qml
diff options
context:
space:
mode:
Diffstat (limited to 'gui/qml')
-rw-r--r--gui/qml/AboutDialog.qml9
-rw-r--r--gui/qml/DonateDialog.qml2
-rw-r--r--gui/qml/LoginConfirmation.qml4
-rw-r--r--gui/qml/LoginDialog.qml8
-rw-r--r--gui/qml/main.qml16
5 files changed, 26 insertions, 13 deletions
diff --git a/gui/qml/AboutDialog.qml b/gui/qml/AboutDialog.qml
index 98cacdc..68e76d3 100644
--- a/gui/qml/AboutDialog.qml
+++ b/gui/qml/AboutDialog.qml
@@ -11,6 +11,11 @@ MessageDialog {
var _provider = ctx ? ctx.provider : "unknown"
var _donateURL= ctx ? ctx.donateURL : "..."
var _tosURL = ctx ? ctx.tosURL : "..."
+ //: about dialog
+ //: %1 -> application name
+ //: %2 -> provider name
+ //: %3 -> donation URL
+ //: %4 -> TOS URL
var _txt = qsTr(
"<p>%1 is an easy, fast, and secure VPN service from %2. %1 does not require a user account, keep logs, or track you in any way.</p> <p>This service is paid for entirely by donations from users like you. <a href=\"%3\">Please donate</a>.</p> <p>By using this application, you agree to the <a href=\"%4\">Terms of Service</a>. This service is provided as-is, without any warranty, and is intended for people who work to make the world a better place.</p>").arg(_name).arg(_provider).arg(_donateURL).arg(_tosURL)
return _txt
@@ -19,7 +24,9 @@ MessageDialog {
function getVersion() {
var _name = ctx ? ctx.appName : "vpn"
var _ver = ctx ? ctx.version : "unknown"
- var _txt = "%1 version: %2".arg(_name).arg(_ver)
+ //: %1 -> application name
+ //: %2 -> version string
+ var _txt = qsTr("%1 version: %2").arg(_name).arg(_ver)
return _txt
}
}
diff --git a/gui/qml/DonateDialog.qml b/gui/qml/DonateDialog.qml
index de7ab5b..afbd57b 100644
--- a/gui/qml/DonateDialog.qml
+++ b/gui/qml/DonateDialog.qml
@@ -9,6 +9,8 @@ MessageDialog {
function getText() {
var _name = ctx ? ctx.appName : "vpn"
+ //: donate dialog
+ //: %1 -> application name
var _txt = qsTr(
"The %1 service is expensive to run. Because we don't want to store personal information about you, there are no accounts or billing for this service. But if you want the service to continue, donate at least $5 each month.\n\nDo you want to donate now?").arg(_name)
return _txt
diff --git a/gui/qml/LoginConfirmation.qml b/gui/qml/LoginConfirmation.qml
index 476cdad..618b870 100644
--- a/gui/qml/LoginConfirmation.qml
+++ b/gui/qml/LoginConfirmation.qml
@@ -4,8 +4,8 @@ import QtQuick.Controls 1.4
Dialog {
standardButtons: StandardButton.Ok
- title: "Login Success"
- text: "You are now logged in, connecting now"
+ title: qsTr("Login Success")
+ text: qsTr("You are now logged in, connecting now")
visible: ctxSystray.loginConfirmationDialog == true
}
diff --git a/gui/qml/LoginDialog.qml b/gui/qml/LoginDialog.qml
index fbe5ce1..0c0f18e 100644
--- a/gui/qml/LoginDialog.qml
+++ b/gui/qml/LoginDialog.qml
@@ -4,19 +4,19 @@ import QtQuick.Controls 1.4
Dialog {
standardButtons: StandardButton.Ok
- title: "Login"
+ title: qsTr("Login")
Column {
anchors.fill: parent
Text {
- text: "Log in with your library credentials"
+ text: qsTr("Log in with your library credentials")
}
TextField {
id: username
- placeholderText: "patron id"
+ placeholderText: qsTr("patron id")
}
TextField {
id: password
- placeholderText: "password"
+ placeholderText: qsTr("password")
echoMode: TextInput.PasswordEchoOnEdit
}
}
diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index 4aab7f1..2ac9398 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -52,16 +52,20 @@ ApplicationWindow {
function toHuman(st) {
switch(st) {
case "off":
- // TODO improve string interpolation, give context to translators etc
- return qsTr(ctx.appName + " off");
+ //: %1 -> application name
+ return qsTr("%1 off").arg(ctx.appName);
case "on":
- return qsTr(ctx.appName + " on");
+ //: %1 -> application name
+ return qsTr("%1 on").arg(ctx.appName);
case "connecting":
- return qsTr("Connecting to " + ctx.appName);
+ //: %1 -> application name
+ return qsTr("Connecting to %1").arg(ctx.appName);
case "stopping":
- return qsTr("Stopping " + ctx.appName);
+ //: %1 -> application name
+ return qsTr("Stopping %1").arg(ctx.appName);
case "failed":
- return qsTr(ctx.appName + " blocking internet"); // TODO failed is not handed yet
+ //: %1 -> application name
+ return qsTr("%1 blocking internet").arg(ctx.appName); // TODO failed is not handed yet
}
}