summaryrefslogtreecommitdiff
path: root/gui/qml/AboutDialog.qml
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-07-10 11:04:49 +0200
committerRuben Pollan <meskio@sindominio.net>2020-07-28 13:44:58 +0200
commitcf5ed56c943599c092a91933b45471c4c0e5d579 (patch)
treec2a4f1ce4cffff3dce4c207575d15aa2a43c365f /gui/qml/AboutDialog.qml
parentcdb42f0d6b47a60ceb647e3ac6a6ce66352dbae4 (diff)
Add support for internationalization
- Resolves: #243
Diffstat (limited to 'gui/qml/AboutDialog.qml')
-rw-r--r--gui/qml/AboutDialog.qml9
1 files changed, 8 insertions, 1 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
}
}