diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-10-30 16:50:12 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-10-30 16:50:29 +0100 |
| commit | d47796499fb847c0a03bdca100b10d52fadfe71a (patch) | |
| tree | 5662370908461c3a3201a1322ec860d60102f7e3 /client | |
| parent | b189a197a1a7e9503ffc5a9cdde258cc93e2974b (diff) | |
Locale: Add cs template
Diffstat (limited to 'client')
| -rw-r--r-- | client/client.go | 2 | ||||
| -rw-r--r-- | client/locales/cs/messages.gotext.json | 178 | ||||
| -rw-r--r-- | client/locales/da/messages.gotext.json | 2 | ||||
| -rw-r--r-- | client/locales/de/messages.gotext.json | 2 | ||||
| -rw-r--r-- | client/locales/fr/messages.gotext.json | 2 | ||||
| -rw-r--r-- | client/zgotext.go | 12 |
6 files changed, 193 insertions, 5 deletions
diff --git a/client/client.go b/client/client.go index e8fc02c..8c8f338 100644 --- a/client/client.go +++ b/client/client.go @@ -1,4 +1,4 @@ -//go:generate go run golang.org/x/text/cmd/gotext -srclang=en update -out=zgotext.go -lang=da,de,en,es,fr,it,nl,pt,sl,ukr +//go:generate go run golang.org/x/text/cmd/gotext -srclang=en update -out=zgotext.go -lang=cs,da,de,en,es,fr,it,nl,pt,sl,ukr // Package client implements the public interface for creating eduVPN/Let's Connect! clients package client diff --git a/client/locales/cs/messages.gotext.json b/client/locales/cs/messages.gotext.json new file mode 100644 index 0000000..ce1a056 --- /dev/null +++ b/client/locales/cs/messages.gotext.json @@ -0,0 +1,178 @@ +{ + "language": "cs", + "messages": [ + { + "id": "Failed to add an institute access server with URL: '{Identifier}'", + "message": "Failed to add an institute access server with URL: '{Identifier}'", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "Failed to add a secure internet server with organisation ID: '{Identifier}'", + "message": "Failed to add a secure internet server with organisation ID: '{Identifier}'", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "Failed to add a server with URL: '{Identifier}'", + "message": "Failed to add a server with URL: '{Identifier}'", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "The input: '{Identifier}' is not a valid URL", + "message": "The input: '{Identifier}' is not a valid URL", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "The client tried to autoconnect to the VPN server: '{Identifier}', but you need to authorizate again. Please manually connect again.", + "message": "The client tried to autoconnect to the VPN server: '{Identifier}', but you need to authorizate again. Please manually connect again.", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "The client tried to autoconnect to the VPN server: '{Identifier}', but the operation failed to complete", + "message": "The client tried to autoconnect to the VPN server: '{Identifier}', but the operation failed to complete", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "Failed to connect to server: '{Identifier}'", + "message": "Failed to connect to server: '{Identifier}'", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "Failed to obtain a VPN configuration for server: '{Identifier}'", + "message": "Failed to obtain a VPN configuration for server: '{Identifier}'", + "translation": "", + "placeholders": [ + { + "id": "Identifier", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "identifier" + } + ] + }, + { + "id": "Failed to obtain the list of organizations", + "message": "Failed to obtain the list of organizations", + "translation": "" + }, + { + "id": "Failed to obtain the list of servers", + "message": "Failed to obtain the list of servers", + "translation": "" + }, + { + "id": "Timeout reached contacting URL: '{URL}'", + "message": "Timeout reached contacting URL: '{URL}'", + "translation": "", + "placeholders": [ + { + "id": "URL", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "tErr.URL" + } + ] + }, + { + "id": "{Msg}. The cause of the error is: {Error}.", + "message": "{Msg}. The cause of the error is: {Error}.", + "translation": "", + "placeholders": [ + { + "id": "Msg", + "string": "%[1]s", + "type": "string", + "underlyingType": "string", + "argNum": 1, + "expr": "msg" + }, + { + "id": "Error", + "string": "%[2]s", + "type": "string", + "underlyingType": "string", + "argNum": 2, + "expr": "e.wrapped.Error()" + } + ] + }, + { + "id": "An internal error occurred", + "message": "An internal error occurred", + "translation": "" + } + ] +}
\ No newline at end of file diff --git a/client/locales/da/messages.gotext.json b/client/locales/da/messages.gotext.json index 7bc83ad..1ff2673 100644 --- a/client/locales/da/messages.gotext.json +++ b/client/locales/da/messages.gotext.json @@ -175,4 +175,4 @@ "translation": "Der skete en intern fejl" } ] -} +}
\ No newline at end of file diff --git a/client/locales/de/messages.gotext.json b/client/locales/de/messages.gotext.json index e54951b..8dff5a8 100644 --- a/client/locales/de/messages.gotext.json +++ b/client/locales/de/messages.gotext.json @@ -175,4 +175,4 @@ "translation": "Ein interner Fehler ist aufgetreten" } ] -} +}
\ No newline at end of file diff --git a/client/locales/fr/messages.gotext.json b/client/locales/fr/messages.gotext.json index 7fd4ff3..d57581f 100644 --- a/client/locales/fr/messages.gotext.json +++ b/client/locales/fr/messages.gotext.json @@ -175,4 +175,4 @@ "translation": "Une erreur interne s'est produite" } ] -} +}
\ No newline at end of file diff --git a/client/zgotext.go b/client/zgotext.go index 5adc715..86dc6aa 100644 --- a/client/zgotext.go +++ b/client/zgotext.go @@ -27,6 +27,7 @@ func (d *dictionary) Lookup(key string) (data string, ok bool) { func init() { dict := map[string]catalog.Dictionary{ + "cs": &dictionary{index: csIndex, data: csData}, "da": &dictionary{index: daIndex, data: daData}, "de": &dictionary{index: deIndex, data: deData}, "en": &dictionary{index: enIndex, data: enData}, @@ -62,6 +63,15 @@ var messageKeyToIndex = map[string]int{ "Timeout reached contacting URL: '%s'": 10, } +var csIndex = []uint32{ // 14 elements + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, +} // Size: 80 bytes + +const csData string = "" + var daIndex = []uint32{ // 14 elements 0x00000000, 0x00000046, 0x0000009b, 0x000000ce, 0x000000f8, 0x00000181, 0x000001de, 0x00000207, @@ -238,4 +248,4 @@ var ukIndex = []uint32{ // 14 elements const ukData string = "" -// Total table size 6530 bytes (6KiB); checksum: 1F4972CA +// Total table size 6610 bytes (6KiB); checksum: 8E6830C9 |
