diff options
| -rw-r--r-- | client/client.go | 2 | ||||
| -rw-r--r-- | client/locales/pt/messages.gotext.json | 178 | ||||
| -rw-r--r-- | client/zgotext.go | 12 |
3 files changed, 190 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index 14b5861..4ba7977 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,sl,ukr +//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 // Package client implements the public interface for creating eduVPN/Let's Connect! clients package client diff --git a/client/locales/pt/messages.gotext.json b/client/locales/pt/messages.gotext.json new file mode 100644 index 0000000..f365cf1 --- /dev/null +++ b/client/locales/pt/messages.gotext.json @@ -0,0 +1,178 @@ +{ + "language": "pt", + "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/zgotext.go b/client/zgotext.go index 85bd0d8..81900ee 100644 --- a/client/zgotext.go +++ b/client/zgotext.go @@ -34,6 +34,7 @@ func init() { "fr": &dictionary{index: frIndex, data: frData}, "it": &dictionary{index: itIndex, data: itData}, "nl": &dictionary{index: nlIndex, data: nlData}, + "pt": &dictionary{index: ptIndex, data: ptData}, "sl": &dictionary{index: slIndex, data: slData}, "uk": &dictionary{index: ukIndex, data: ukData}, } @@ -178,6 +179,15 @@ const nlData string = "" + // Size: 847 bytes "\x02Er is een time-out opgetreden voor URL: '%[1]s'\x02%[1]s. The oorzaa" + "k van de error is: %[2]s." +var ptIndex = []uint32{ // 14 elements + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, 0x00000000, 0x00000000, + 0x00000000, 0x00000000, +} // Size: 80 bytes + +const ptData string = "" + var slIndex = []uint32{ // 14 elements 0x00000000, 0x0000008b, 0x000000e6, 0x00000104, 0x00000154, 0x0000019d, 0x000001d0, 0x000001ed, @@ -208,4 +218,4 @@ var ukIndex = []uint32{ // 14 elements const ukData string = "" -// Total table size 5022 bytes (4KiB); checksum: 307B5736 +// Total table size 5102 bytes (4KiB); checksum: 4128D89D |
