summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-08-16 13:38:11 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2023-09-25 09:43:37 +0200
commit231f7b924a28c5c08e9b7ee9ddd60343589705f6 (patch)
treeb881a37f75681904609d9da348bb034457f65801
parent129594e5871ae0a045563a9f5b9a54eda413d1ad (diff)
Locales: Add a script to sync translations and use it
-rw-r--r--client/locales/da/messages.gotext.json45
-rw-r--r--client/locales/de/messages.gotext.json45
-rw-r--r--client/locales/en/messages.gotext.json51
-rw-r--r--client/locales/es/messages.gotext.json47
-rw-r--r--client/locales/fr/messages.gotext.json45
-rw-r--r--client/locales/it/messages.gotext.json45
-rw-r--r--client/locales/nl/messages.gotext.json45
-rw-r--r--client/locales/sl/messages.gotext.json47
-rw-r--r--client/locales/uk/messages.gotext.json45
-rwxr-xr-xsync_translations.sh11
10 files changed, 424 insertions, 2 deletions
diff --git a/client/locales/da/messages.gotext.json b/client/locales/da/messages.gotext.json
index 1e788ae..e20ee39 100644
--- a/client/locales/da/messages.gotext.json
+++ b/client/locales/da/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
diff --git a/client/locales/de/messages.gotext.json b/client/locales/de/messages.gotext.json
index 68119d3..3991db3 100644
--- a/client/locales/de/messages.gotext.json
+++ b/client/locales/de/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
diff --git a/client/locales/en/messages.gotext.json b/client/locales/en/messages.gotext.json
index 15502ba..f0c56c6 100644
--- a/client/locales/en/messages.gotext.json
+++ b/client/locales/en/messages.gotext.json
@@ -95,6 +95,23 @@
"fuzzy": true
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translatorComment": "Copied from source.",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ],
+ "fuzzy": true
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": "The secure internet location could not be set",
@@ -102,6 +119,23 @@
"fuzzy": true
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translatorComment": "Copied from source.",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ],
+ "fuzzy": true
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": "The authorization procedure failed to complete",
@@ -109,6 +143,23 @@
"fuzzy": true
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translatorComment": "Copied from source.",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ],
+ "fuzzy": true
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": "No suitable profiles could be found",
diff --git a/client/locales/es/messages.gotext.json b/client/locales/es/messages.gotext.json
index 720fc98..18713f0 100644
--- a/client/locales/es/messages.gotext.json
+++ b/client/locales/es/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
@@ -389,4 +434,4 @@
"translation": ""
}
]
-}
+} \ No newline at end of file
diff --git a/client/locales/fr/messages.gotext.json b/client/locales/fr/messages.gotext.json
index 0e793f1..a4de48c 100644
--- a/client/locales/fr/messages.gotext.json
+++ b/client/locales/fr/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
diff --git a/client/locales/it/messages.gotext.json b/client/locales/it/messages.gotext.json
index ca5bf05..454e6af 100644
--- a/client/locales/it/messages.gotext.json
+++ b/client/locales/it/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
diff --git a/client/locales/nl/messages.gotext.json b/client/locales/nl/messages.gotext.json
index 58411b9..d142639 100644
--- a/client/locales/nl/messages.gotext.json
+++ b/client/locales/nl/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
diff --git a/client/locales/sl/messages.gotext.json b/client/locales/sl/messages.gotext.json
index 5503709..e58a977 100644
--- a/client/locales/sl/messages.gotext.json
+++ b/client/locales/sl/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": "Ugotavljanje preteka ne more določiti izbranega strežnika"
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": "Napaka pri nastavljanju lokacije za varni splet"
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": "Napaka pri postopku avtorizacije"
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": "Ustreznih profilov ni bilo mogoče najti"
@@ -389,4 +434,4 @@
"translation": "; razlog:"
}
]
-}
+} \ No newline at end of file
diff --git a/client/locales/uk/messages.gotext.json b/client/locales/uk/messages.gotext.json
index 55cd77f..653c9c7 100644
--- a/client/locales/uk/messages.gotext.json
+++ b/client/locales/uk/messages.gotext.json
@@ -77,16 +77,61 @@
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no secure internet location is found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The secure internet location could not be set",
"message": "The secure internet location could not be set",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but you need to authorizate again. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "The authorization procedure failed to complete",
"message": "The authorization procedure failed to complete",
"translation": ""
},
{
+ "id": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "message": "The client tried to autoconnect to the VPN server: {Namesrv}, but no valid profiles were found. Please manually connect again",
+ "translation": "",
+ "placeholders": [
+ {
+ "id": "Namesrv",
+ "string": "%[1]s",
+ "type": "string",
+ "underlyingType": "string",
+ "argNum": 1,
+ "expr": "server.Name(srv)"
+ }
+ ]
+ },
+ {
"id": "No suitable profiles could be found",
"message": "No suitable profiles could be found",
"translation": ""
diff --git a/sync_translations.sh b/sync_translations.sh
new file mode 100755
index 0000000..ae61df1
--- /dev/null
+++ b/sync_translations.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# This should be run when the source code is updated
+
+go generate ./...
+files=$(find client/locales -iname "out.gotext.json")
+for f in $files
+do
+ dir=$(dirname $f)
+ cp "$f" "$dir"/messages.gotext.json
+done