From af2eb0bb849e0797716559684d2325f8f3960fe3 Mon Sep 17 00:00:00 2001 From: glendsoza Date: Wed, 12 Jan 2022 22:19:53 +0530 Subject: [PATCH 1/6] Created a seperate context to display just environment variables in the container panel --- pkg/gui/containers_panel.go | 39 +++++++++++++++++++++++++++++++++++-- pkg/i18n/dutch.go | 1 + pkg/i18n/english.go | 2 ++ pkg/i18n/german.go | 1 + pkg/i18n/polish.go | 1 + pkg/i18n/turkish.go | 1 + 6 files changed, 43 insertions(+), 2 deletions(-) diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 7b8a172e..42e1be33 100644 --- a/pkg/gui/containers_panel.go +++ b/pkg/gui/containers_panel.go @@ -18,11 +18,11 @@ import ( // list panel functions func (gui *Gui) getContainerContexts() []string { - return []string{"logs", "stats", "config", "top"} + return []string{"logs", "stats", "env", "config", "top"} } func (gui *Gui) getContainerContextTitles() []string { - return []string{gui.Tr.LogsTitle, gui.Tr.StatsTitle, gui.Tr.ConfigTitle, gui.Tr.TopTitle} + return []string{gui.Tr.LogsTitle, gui.Tr.StatsTitle, gui.Tr.EnvTitle, gui.Tr.ConfigTitle, gui.Tr.TopTitle} } func (gui *Gui) getSelectedContainer() (*commands.Container, error) { @@ -75,6 +75,10 @@ func (gui *Gui) handleContainerSelect(g *gocui.Gui, v *gocui.View) error { if err := gui.renderContainerConfig(container); err != nil { return err } + case "env": + if err := gui.renderContainerEnv(container); err != nil { + return err + } case "stats": if err := gui.renderContainerStats(container); err != nil { return err @@ -90,6 +94,37 @@ func (gui *Gui) handleContainerSelect(g *gocui.Gui, v *gocui.View) error { return nil } +func (gui *Gui) renderContainerEnv(container *commands.Container) error { + mainView := gui.getMainView() + mainView.Autoscroll = false + mainView.Wrap = gui.Config.UserConfig.Gui.WrapMainPanel + outputList := []string{""} + envMapping := map[string]string{} + padding := 0 + if len(container.Details.Config.Env) > 0 { + for _, env := range container.Details.Config.Env { + splitEnv := strings.Split(env, "=") + // get the length of environment variable with longest name in order to determine padding + if len(splitEnv[0]) > padding { + padding = len(splitEnv[0]) + } + // if the value has = in it, lets say export "test=foo=bar" then split will result in the following + // {"test", "foo","bar"} hence join all the elements in the slice except the first one to get value + envMapping[utils.ColoredString(splitEnv[0], color.FgBlue)] = utils.ColoredString( + strings.Join(splitEnv[1:], "="), color.FgYellow) + } + padding += 5 + for envName, envValue := range envMapping { + outputList = append(outputList, fmt.Sprintf("%s: %s", utils.WithPadding(envName, padding), envValue)) + } + } else { + outputList[0] = "Nothing to display" + } + return gui.T.NewTask(func(stop chan struct{}) { + gui.renderString(gui.g, "main", strings.Join(outputList, "\n")) + }) +} + func (gui *Gui) renderContainerConfig(container *commands.Container) error { mainView := gui.getMainView() mainView.Autoscroll = false diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index e455567e..eae04630 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -64,6 +64,7 @@ func dutchSet() TranslationSet { ErrorTitle: "Fout", LogsTitle: "Logs", ConfigTitle: "Config", + EnvTitle: "Env", DockerComposeConfigTitle: "Docker-Compose Configuratie", TopTitle: "Top", StatsTitle: "Stats", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index 8efb854e..cc9dd509 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -85,6 +85,7 @@ type TranslationSet struct { LogsTitle string ConfigTitle string + EnvTitle string DockerComposeConfigTitle string StatsTitle string CreditsTitle string @@ -166,6 +167,7 @@ func englishSet() TranslationSet { ErrorTitle: "Error", LogsTitle: "Logs", ConfigTitle: "Config", + EnvTitle: "Env", DockerComposeConfigTitle: "Docker-Compose Config", TopTitle: "Top", StatsTitle: "Stats", diff --git a/pkg/i18n/german.go b/pkg/i18n/german.go index 2c5a816e..33423368 100644 --- a/pkg/i18n/german.go +++ b/pkg/i18n/german.go @@ -63,6 +63,7 @@ func germanSet() TranslationSet { ErrorTitle: "Fehler", LogsTitle: "Protokoll", ConfigTitle: "Konfiguration", + EnvTitle: "Env", DockerComposeConfigTitle: "Docker-Compose Konfiguration", TopTitle: "Top", StatsTitle: "Statistiken", diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 53681fa4..0a5e1cc3 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -63,6 +63,7 @@ func polishSet() TranslationSet { ErrorTitle: "Błąd", LogsTitle: "Logi", ConfigTitle: "Konfiguracja", + EnvTitle: "Env", DockerComposeConfigTitle: "Konfiguracja docker-compose", TopTitle: "Top", StatsTitle: "Staty", diff --git a/pkg/i18n/turkish.go b/pkg/i18n/turkish.go index a728dabf..bf3fe457 100644 --- a/pkg/i18n/turkish.go +++ b/pkg/i18n/turkish.go @@ -63,6 +63,7 @@ func turkishSet() TranslationSet { ErrorTitle: "Hata", LogsTitle: "Kayitlar", ConfigTitle: "Ayarlar", + EnvTitle: "Env", DockerComposeConfigTitle: "Docker-Compose Ayar", TopTitle: "Top", StatsTitle: "Durumlar", From 32aa08066c8b582557a6774abe7677b49e355e71 Mon Sep 17 00:00:00 2001 From: glendsoza Date: Fri, 14 Jan 2022 12:27:30 +0530 Subject: [PATCH 2/6] Used RenderTable to dispaly environemnt varialbles also added a check in RenderTable method to make sure code does not panic when empty array is passed --- pkg/gui/containers_panel.go | 28 +++++++++++++--------------- pkg/utils/utils.go | 4 ++++ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 42e1be33..1ae4573d 100644 --- a/pkg/gui/containers_panel.go +++ b/pkg/gui/containers_panel.go @@ -98,30 +98,28 @@ func (gui *Gui) renderContainerEnv(container *commands.Container) error { mainView := gui.getMainView() mainView.Autoscroll = false mainView.Wrap = gui.Config.UserConfig.Gui.WrapMainPanel - outputList := []string{""} - envMapping := map[string]string{} - padding := 0 + envVariablesList := [][]string{} if len(container.Details.Config.Env) > 0 { for _, env := range container.Details.Config.Env { splitEnv := strings.Split(env, "=") - // get the length of environment variable with longest name in order to determine padding - if len(splitEnv[0]) > padding { - padding = len(splitEnv[0]) - } // if the value has = in it, lets say export "test=foo=bar" then split will result in the following // {"test", "foo","bar"} hence join all the elements in the slice except the first one to get value - envMapping[utils.ColoredString(splitEnv[0], color.FgBlue)] = utils.ColoredString( - strings.Join(splitEnv[1:], "="), color.FgYellow) - } - padding += 5 - for envName, envValue := range envMapping { - outputList = append(outputList, fmt.Sprintf("%s: %s", utils.WithPadding(envName, padding), envValue)) + envVariablesList = append(envVariablesList, + []string{ + utils.ColoredString(splitEnv[0]+":", color.FgBlue), + utils.ColoredString(strings.Join(splitEnv[1:], "="), color.FgYellow), + }) } } else { - outputList[0] = "Nothing to display" + envVariablesList = append(envVariablesList, []string{"Nothing to display"}) + } + renderedTable, err := utils.RenderTable(envVariablesList) + // in case of some error + if err != nil { + renderedTable = "Something went wrong while displaying environment variables" } return gui.T.NewTask(func(stop chan struct{}) { - gui.renderString(gui.g, "main", strings.Join(outputList, "\n")) + gui.renderString(gui.g, "main", renderedTable) }) } diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index e05da371..7da3bfb5 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -165,6 +165,10 @@ func renderDisplayableList(items []Displayable, config RenderListConfig) (string // RenderTable takes an array of string arrays and returns a table containing the values func RenderTable(stringArrays [][]string) (string, error) { + // if empty array is given then getPadWidths will panic hence check to make sure array is not empty + if len(stringArrays) == 0 { + return "", errors.New("RenderTable given an empty array") + } if !displayArraysAligned(stringArrays) { return "", errors.New("Each item must return the same number of strings to display") } From 663928e81a0963bdff5f9d23b6c23d8081afc9a7 Mon Sep 17 00:00:00 2001 From: glendsoza Date: Fri, 14 Jan 2022 12:56:58 +0530 Subject: [PATCH 3/6] Log the error --- pkg/gui/containers_panel.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 1ae4573d..78f2fc44 100644 --- a/pkg/gui/containers_panel.go +++ b/pkg/gui/containers_panel.go @@ -116,6 +116,8 @@ func (gui *Gui) renderContainerEnv(container *commands.Container) error { renderedTable, err := utils.RenderTable(envVariablesList) // in case of some error if err != nil { + // log the error + gui.Log.Error(err) renderedTable = "Something went wrong while displaying environment variables" } return gui.T.NewTask(func(stop chan struct{}) { From 4d90a0345f4b80f5b5ba7c8280d4ede574afd898 Mon Sep 17 00:00:00 2001 From: glendsoza Date: Mon, 17 Jan 2022 19:24:32 +0530 Subject: [PATCH 4/6] Changes as requested per review --- pkg/gui/containers_panel.go | 24 ++++++++++-------------- pkg/gui/services_panel.go | 16 ++++++++++++++-- pkg/i18n/dutch.go | 3 +++ pkg/i18n/english.go | 20 +++++++++++++------- pkg/i18n/german.go | 3 +++ pkg/i18n/polish.go | 3 +++ pkg/i18n/turkish.go | 3 +++ pkg/utils/utils.go | 4 ++-- 8 files changed, 51 insertions(+), 25 deletions(-) diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 78f2fc44..713f939e 100644 --- a/pkg/gui/containers_panel.go +++ b/pkg/gui/containers_panel.go @@ -99,26 +99,22 @@ func (gui *Gui) renderContainerEnv(container *commands.Container) error { mainView.Autoscroll = false mainView.Wrap = gui.Config.UserConfig.Gui.WrapMainPanel envVariablesList := [][]string{} + renderedTable := gui.Tr.NothingToDisplay if len(container.Details.Config.Env) > 0 { + var err error for _, env := range container.Details.Config.Env { - splitEnv := strings.Split(env, "=") - // if the value has = in it, lets say export "test=foo=bar" then split will result in the following - // {"test", "foo","bar"} hence join all the elements in the slice except the first one to get value + splitEnv := strings.SplitN(env, "=", 2) envVariablesList = append(envVariablesList, []string{ - utils.ColoredString(splitEnv[0]+":", color.FgBlue), - utils.ColoredString(strings.Join(splitEnv[1:], "="), color.FgYellow), + utils.ColoredString(splitEnv[0]+":", color.FgGreen), + utils.ColoredString(splitEnv[1], color.FgYellow), }) } - } else { - envVariablesList = append(envVariablesList, []string{"Nothing to display"}) - } - renderedTable, err := utils.RenderTable(envVariablesList) - // in case of some error - if err != nil { - // log the error - gui.Log.Error(err) - renderedTable = "Something went wrong while displaying environment variables" + renderedTable, err = utils.RenderTable(envVariablesList) + if err != nil { + gui.Log.Error(err) + renderedTable = gui.Tr.CannotDisplayEnvVairables + } } return gui.T.NewTask(func(stop chan struct{}) { gui.renderString(gui.g, "main", renderedTable) diff --git a/pkg/gui/services_panel.go b/pkg/gui/services_panel.go index fd2bdd45..c47521b0 100644 --- a/pkg/gui/services_panel.go +++ b/pkg/gui/services_panel.go @@ -15,11 +15,16 @@ import ( // list panel functions func (gui *Gui) getServiceContexts() []string { - return []string{"logs", "stats", "container-config", "top"} + return []string{"logs", "stats", "container-env", "container-config", "top"} } func (gui *Gui) getServiceContextTitles() []string { - return []string{gui.Tr.LogsTitle, gui.Tr.StatsTitle, gui.Tr.ContainerConfigTitle, gui.Tr.TopTitle} + return []string{ + gui.Tr.LogsTitle, + gui.Tr.StatsTitle, + gui.Tr.ContainerEnvTitle, + gui.Tr.ContainerConfigTitle, + gui.Tr.TopTitle} } func (gui *Gui) getSelectedService() (*commands.Service, error) { @@ -73,6 +78,13 @@ func (gui *Gui) handleServiceSelect(g *gocui.Gui, v *gocui.View) error { if err := gui.renderServiceStats(service); err != nil { return err } + case "container-env": + if service.Container == nil { + return gui.renderString(gui.g, "main", gui.Tr.NoContainer) + } + if err := gui.renderContainerEnv(service.Container); err != nil { + return err + } case "container-config": if service.Container == nil { return gui.renderString(gui.g, "main", gui.Tr.NoContainer) diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index eae04630..20b6442b 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -70,6 +70,9 @@ func dutchSet() TranslationSet { StatsTitle: "Stats", CreditsTitle: "Over", ContainerConfigTitle: "Container Configuratie", + ContainerEnvTitle: "Container Env", + NothingToDisplay: "Nothing to display", + CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", NoContainers: "Geen containers", NoContainer: "Geen container", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index cc9dd509..1e8d8a76 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -83,13 +83,16 @@ type TranslationSet struct { ViewBulkCommands string OpenInBrowser string - LogsTitle string - ConfigTitle string - EnvTitle string - DockerComposeConfigTitle string - StatsTitle string - CreditsTitle string - ContainerConfigTitle string + LogsTitle string + ConfigTitle string + EnvTitle string + DockerComposeConfigTitle string + StatsTitle string + CreditsTitle string + ContainerConfigTitle string + ContainerEnvTitle string + NothingToDisplay string + CannotDisplayEnvVairables string No string Yes string @@ -173,6 +176,9 @@ func englishSet() TranslationSet { StatsTitle: "Stats", CreditsTitle: "About", ContainerConfigTitle: "Container Config", + ContainerEnvTitle: "Container Env", + NothingToDisplay: "Nothing to display", + CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", NoContainers: "No containers", NoContainer: "No container", diff --git a/pkg/i18n/german.go b/pkg/i18n/german.go index 33423368..908a8383 100644 --- a/pkg/i18n/german.go +++ b/pkg/i18n/german.go @@ -69,6 +69,9 @@ func germanSet() TranslationSet { StatsTitle: "Statistiken", CreditsTitle: "Über Uns", ContainerConfigTitle: "Container Konfiguration", + ContainerEnvTitle: "Container Env", + NothingToDisplay: "Nothing to display", + CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", NoContainers: "Keine Container", NoContainer: "Kein Container", diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 0a5e1cc3..902ca76a 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -69,6 +69,9 @@ func polishSet() TranslationSet { StatsTitle: "Staty", CreditsTitle: "O", ContainerConfigTitle: "Konfiguracja kontenera", + ContainerEnvTitle: "Container Env", + NothingToDisplay: "Nothing to display", + CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", NoContainers: "Brak kontenerów", NoContainer: "Brak kontenera", diff --git a/pkg/i18n/turkish.go b/pkg/i18n/turkish.go index bf3fe457..d6a353b8 100644 --- a/pkg/i18n/turkish.go +++ b/pkg/i18n/turkish.go @@ -69,6 +69,9 @@ func turkishSet() TranslationSet { StatsTitle: "Durumlar", CreditsTitle: "Hakkinda", ContainerConfigTitle: "Konteyner Ayar", + ContainerEnvTitle: "Konteyner Env", + NothingToDisplay: "Nothing to display", + CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", NoContainers: "Konteynerler yok", NoContainer: "Konteyner yok", diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index 7da3bfb5..c0cd8c25 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -165,9 +165,9 @@ func renderDisplayableList(items []Displayable, config RenderListConfig) (string // RenderTable takes an array of string arrays and returns a table containing the values func RenderTable(stringArrays [][]string) (string, error) { - // if empty array is given then getPadWidths will panic hence check to make sure array is not empty + // if empty array is given then getPadWidths will panic hence return an empty string if len(stringArrays) == 0 { - return "", errors.New("RenderTable given an empty array") + return "", nil } if !displayArraysAligned(stringArrays) { return "", errors.New("Each item must return the same number of strings to display") From 9a0bbd1e38cd74bd29253290486d9fec86bb1efe Mon Sep 17 00:00:00 2001 From: glendsoza Date: Tue, 18 Jan 2022 21:42:49 +0530 Subject: [PATCH 5/6] Fixed the typo and removed the uncessory comment --- pkg/gui/containers_panel.go | 2 +- pkg/i18n/dutch.go | 2 +- pkg/i18n/english.go | 4 ++-- pkg/i18n/german.go | 2 +- pkg/i18n/polish.go | 2 +- pkg/i18n/turkish.go | 2 +- pkg/utils/utils.go | 1 - 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/pkg/gui/containers_panel.go b/pkg/gui/containers_panel.go index 713f939e..844ef2d3 100644 --- a/pkg/gui/containers_panel.go +++ b/pkg/gui/containers_panel.go @@ -113,7 +113,7 @@ func (gui *Gui) renderContainerEnv(container *commands.Container) error { renderedTable, err = utils.RenderTable(envVariablesList) if err != nil { gui.Log.Error(err) - renderedTable = gui.Tr.CannotDisplayEnvVairables + renderedTable = gui.Tr.CannotDisplayEnvVariables } } return gui.T.NewTask(func(stop chan struct{}) { diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 20b6442b..3f4e62c5 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -72,7 +72,7 @@ func dutchSet() TranslationSet { ContainerConfigTitle: "Container Configuratie", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Geen containers", NoContainer: "Geen container", diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index d875b768..ce509b63 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -93,7 +93,7 @@ type TranslationSet struct { ContainerConfigTitle string ContainerEnvTitle string NothingToDisplay string - CannotDisplayEnvVairables string + CannotDisplayEnvVariables string No string Yes string @@ -180,7 +180,7 @@ func englishSet() TranslationSet { ContainerConfigTitle: "Container Config", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "No containers", NoContainer: "No container", diff --git a/pkg/i18n/german.go b/pkg/i18n/german.go index 908a8383..6cab40ce 100644 --- a/pkg/i18n/german.go +++ b/pkg/i18n/german.go @@ -71,7 +71,7 @@ func germanSet() TranslationSet { ContainerConfigTitle: "Container Konfiguration", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Keine Container", NoContainer: "Kein Container", diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 902ca76a..3fe18e4b 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -71,7 +71,7 @@ func polishSet() TranslationSet { ContainerConfigTitle: "Konfiguracja kontenera", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Brak kontenerów", NoContainer: "Brak kontenera", diff --git a/pkg/i18n/turkish.go b/pkg/i18n/turkish.go index d6a353b8..074dbea3 100644 --- a/pkg/i18n/turkish.go +++ b/pkg/i18n/turkish.go @@ -71,7 +71,7 @@ func turkishSet() TranslationSet { ContainerConfigTitle: "Konteyner Ayar", ContainerEnvTitle: "Konteyner Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVairables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Konteynerler yok", NoContainer: "Konteyner yok", diff --git a/pkg/utils/utils.go b/pkg/utils/utils.go index c0cd8c25..de6ec340 100644 --- a/pkg/utils/utils.go +++ b/pkg/utils/utils.go @@ -165,7 +165,6 @@ func renderDisplayableList(items []Displayable, config RenderListConfig) (string // RenderTable takes an array of string arrays and returns a table containing the values func RenderTable(stringArrays [][]string) (string, error) { - // if empty array is given then getPadWidths will panic hence return an empty string if len(stringArrays) == 0 { return "", nil } From 2718749229f06375c1eaa48b1c92b7ec7bc98156 Mon Sep 17 00:00:00 2001 From: glendsoza Date: Wed, 19 Jan 2022 17:27:24 +0530 Subject: [PATCH 6/6] Ran gofmt to fix issues with formatting --- pkg/i18n/dutch.go | 2 +- pkg/i18n/german.go | 2 +- pkg/i18n/polish.go | 2 +- pkg/i18n/turkish.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/i18n/dutch.go b/pkg/i18n/dutch.go index 3f4e62c5..9abce8e9 100644 --- a/pkg/i18n/dutch.go +++ b/pkg/i18n/dutch.go @@ -72,7 +72,7 @@ func dutchSet() TranslationSet { ContainerConfigTitle: "Container Configuratie", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Geen containers", NoContainer: "Geen container", diff --git a/pkg/i18n/german.go b/pkg/i18n/german.go index 6cab40ce..7edcfc81 100644 --- a/pkg/i18n/german.go +++ b/pkg/i18n/german.go @@ -71,7 +71,7 @@ func germanSet() TranslationSet { ContainerConfigTitle: "Container Konfiguration", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Keine Container", NoContainer: "Kein Container", diff --git a/pkg/i18n/polish.go b/pkg/i18n/polish.go index 3fe18e4b..8762821f 100644 --- a/pkg/i18n/polish.go +++ b/pkg/i18n/polish.go @@ -71,7 +71,7 @@ func polishSet() TranslationSet { ContainerConfigTitle: "Konfiguracja kontenera", ContainerEnvTitle: "Container Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Brak kontenerów", NoContainer: "Brak kontenera", diff --git a/pkg/i18n/turkish.go b/pkg/i18n/turkish.go index 074dbea3..22b2604d 100644 --- a/pkg/i18n/turkish.go +++ b/pkg/i18n/turkish.go @@ -71,7 +71,7 @@ func turkishSet() TranslationSet { ContainerConfigTitle: "Konteyner Ayar", ContainerEnvTitle: "Konteyner Env", NothingToDisplay: "Nothing to display", - CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", + CannotDisplayEnvVariables: "Something went wrong while displaying environment variables", NoContainers: "Konteynerler yok", NoContainer: "Konteyner yok",