diff --git a/api/cmd/portainer/main.go b/api/cmd/portainer/main.go index aced452a7..58904e19d 100644 --- a/api/cmd/portainer/main.go +++ b/api/cmd/portainer/main.go @@ -125,6 +125,7 @@ func initSettings(settingsService portainer.SettingsService, flags *portainer.CL portainer.LDAPSearchSettings{}, }, }, + Language: "en", } if *flags.Templates != "" { diff --git a/api/http/handler/settings.go b/api/http/handler/settings.go index 52e957f6d..64c66ebe0 100644 --- a/api/http/handler/settings.go +++ b/api/http/handler/settings.go @@ -57,6 +57,7 @@ type ( DisplayExternalContributors bool `valid:""` AuthenticationMethod int `valid:"required"` LDAPSettings portainer.LDAPSettings `valid:""` + Language string `valid:"required"` } putSettingsLDAPCheckRequest struct { @@ -114,6 +115,7 @@ func (handler *SettingsHandler) handlePutSettings(w http.ResponseWriter, r *http BlackListedLabels: req.BlackListedLabels, DisplayExternalContributors: req.DisplayExternalContributors, LDAPSettings: req.LDAPSettings, + Language: req.Language, } if req.AuthenticationMethod == 1 { diff --git a/api/portainer.go b/api/portainer.go index 69d8e9290..1ccff97f4 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -75,6 +75,7 @@ type ( DisplayExternalContributors bool `json:"DisplayExternalContributors"` AuthenticationMethod AuthenticationMethod `json:"AuthenticationMethod"` LDAPSettings LDAPSettings `json:"LDAPSettings"` + Language string `json:"Language"` } // User represents a user account. diff --git a/app/components/dashboard/dashboard.html b/app/components/dashboard/dashboard.html index b513c54ff..063ec3090 100644 --- a/app/components/dashboard/dashboard.html +++ b/app/components/dashboard/dashboard.html @@ -8,24 +8,24 @@
{{ 'DASHBOARD.NODE_NAME' | translate }} | +DASHBOARD.WIDGET_NODE.NODE_NAME | {{ infoData.Name }} |
Docker version | +DASHBOARD.WIDGET_NODE.DOCKER_VERSION | {{ infoData.ServerVersion }} |
CPU | +DASHBOARD.WIDGET_NODE.CPU | {{ infoData.NCPU }} |
Memory | +DASHBOARD.WIDGET_NODE.MEMORY | {{ infoData.MemTotal|humansize }} |