summaryrefslogtreecommitdiffstats
path: root/model/cluster_discovery.go
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-06-19 19:40:26 +0200
committerGitHub <noreply@github.com>2018-06-19 19:40:26 +0200
commit344836dfb22fb36d4d2740c5ec226de78d9dcd3c (patch)
tree017252735807495c82c9111dbf4a2c8573b0ec2a /model/cluster_discovery.go
parent226d4b2ac8888646271b9e9e83a513cd6e62d620 (diff)
downloadchat-344836dfb22fb36d4d2740c5ec226de78d9dcd3c.tar.gz
chat-344836dfb22fb36d4d2740c5ec226de78d9dcd3c.tar.bz2
chat-344836dfb22fb36d4d2740c5ec226de78d9dcd3c.zip
Add missed translations (#8959)
Diffstat (limited to 'model/cluster_discovery.go')
-rw-r--r--model/cluster_discovery.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/model/cluster_discovery.go b/model/cluster_discovery.go
index 5d5b0465d..796d3dda0 100644
--- a/model/cluster_discovery.go
+++ b/model/cluster_discovery.go
@@ -90,23 +90,23 @@ func (o *ClusterDiscovery) IsValid() *AppError {
}
if len(o.ClusterName) == 0 {
- return NewAppError("ClusterDiscovery.IsValid", "ClusterName must be set", nil, "", http.StatusBadRequest)
+ return NewAppError("ClusterDiscovery.IsValid", "model.cluster.is_valid.name.app_error", nil, "", http.StatusBadRequest)
}
if len(o.Type) == 0 {
- return NewAppError("ClusterDiscovery.IsValid", "Type must be set", nil, "", http.StatusBadRequest)
+ return NewAppError("ClusterDiscovery.IsValid", "model.cluster.is_valid.type.app_error", nil, "", http.StatusBadRequest)
}
if len(o.Hostname) == 0 {
- return NewAppError("ClusterDiscovery.IsValid", "Hostname must be set", nil, "", http.StatusBadRequest)
+ return NewAppError("ClusterDiscovery.IsValid", "model.cluster.is_valid.hostname.app_error", nil, "", http.StatusBadRequest)
}
if o.CreateAt == 0 {
- return NewAppError("ClusterDiscovery.IsValid", "CreateAt must be set", nil, "", http.StatusBadRequest)
+ return NewAppError("ClusterDiscovery.IsValid", "model.cluster.is_valid.create_at.app_error", nil, "", http.StatusBadRequest)
}
if o.LastPingAt == 0 {
- return NewAppError("ClusterDiscovery.IsValid", "LastPingAt must be set", nil, "", http.StatusBadRequest)
+ return NewAppError("ClusterDiscovery.IsValid", "model.cluster.is_valid.last_ping_at.app_error", nil, "", http.StatusBadRequest)
}
return nil