Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Locale: Add cs template
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijenbergh committed Oct 30, 2024
1 parent b189a19 commit d477964
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
178 changes: 178 additions & 0 deletions client/locales/cs/messages.gotext.json
Original file line number Diff line number Diff line change
@@ -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": ""
}
]
}
2 changes: 1 addition & 1 deletion client/locales/da/messages.gotext.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@
"translation": "Der skete en intern fejl"
}
]
}
}
2 changes: 1 addition & 1 deletion client/locales/de/messages.gotext.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@
"translation": "Ein interner Fehler ist aufgetreten"
}
]
}
}
2 changes: 1 addition & 1 deletion client/locales/fr/messages.gotext.json
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,4 @@
"translation": "Une erreur interne s'est produite"
}
]
}
}
12 changes: 11 additions & 1 deletion client/zgotext.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit d477964

Please sign in to comment.