diff options
| -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 | ||||
| -rw-r--r-- | go.sum | 1 |
7 files changed, 194 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 @@ -64,6 +64,7 @@ golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= |
