From 231f7b924a28c5c08e9b7ee9ddd60343589705f6 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 16 Aug 2023 13:38:11 +0200 Subject: Locales: Add a script to sync translations and use it --- client/locales/da/messages.gotext.json | 45 ++++++++++++++++++++++++++++++ client/locales/de/messages.gotext.json | 45 ++++++++++++++++++++++++++++++ client/locales/en/messages.gotext.json | 51 ++++++++++++++++++++++++++++++++++ client/locales/es/messages.gotext.json | 47 ++++++++++++++++++++++++++++++- client/locales/fr/messages.gotext.json | 45 ++++++++++++++++++++++++++++++ client/locales/it/messages.gotext.json | 45 ++++++++++++++++++++++++++++++ client/locales/nl/messages.gotext.json | 45 ++++++++++++++++++++++++++++++ client/locales/sl/messages.gotext.json | 47 ++++++++++++++++++++++++++++++- client/locales/uk/messages.gotext.json | 45 ++++++++++++++++++++++++++++++ sync_translations.sh | 11 ++++++++ 10 files changed, 424 insertions(+), 2 deletions(-) create mode 100755 sync_translations.sh 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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", 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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", 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 @@ -94,6 +94,23 @@ "translatorComment": "Copied from source.", "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", @@ -101,6 +118,23 @@ "translatorComment": "Copied from source.", "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", @@ -108,6 +142,23 @@ "translatorComment": "Copied from source.", "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", 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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", @@ -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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", 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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", 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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", 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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", @@ -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 @@ -76,16 +76,61 @@ "message": "The current server could not be found when getting it for expiry", "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", 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 -- cgit v1.2.3