mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-22 07:11:01 +00:00
Add force remove options to container removal menu and update translations
This commit is contained in:
parent
577797d9ed
commit
c1fa557cef
9 changed files with 17 additions and 0 deletions
|
|
@ -334,6 +334,14 @@ func (gui *Gui) handleContainersRemoveMenu(g *gocui.Gui, v *gocui.View) error {
|
|||
LabelColumns: []string{gui.Tr.RemoveWithVolumes, "docker rm --volumes " + ctr.ID[1:10]},
|
||||
OnPress: func() error { return handleMenuPress(container.RemoveOptions{RemoveVolumes: true}) },
|
||||
},
|
||||
{
|
||||
LabelColumns: []string{gui.Tr.ForceRemove, "docker rm --force " + ctr.ID[1:10]},
|
||||
OnPress: func() error { return handleMenuPress(container.RemoveOptions{Force: true}) },
|
||||
},
|
||||
{
|
||||
LabelColumns: []string{gui.Tr.ForceRemoveWithVolumes, "docker rm --force --volumes " + ctr.ID[1:10]},
|
||||
OnPress: func() error { return handleMenuPress(container.RemoveOptions{Force: true, RemoveVolumes: true}) },
|
||||
},
|
||||
}
|
||||
|
||||
return gui.Menu(CreateMenuOptions{
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ func chineseSet() TranslationSet {
|
|||
Remove: "移除",
|
||||
HideStopped: "隐藏/显示已停止的容器",
|
||||
ForceRemove: "强制移除",
|
||||
ForceRemoveWithVolumes: "强制移除并删除卷",
|
||||
RemoveWithVolumes: "移除并删除卷",
|
||||
RemoveService: "移除容器",
|
||||
UpService: "启动服务",
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ func dutchSet() TranslationSet {
|
|||
Remove: "verwijder",
|
||||
HideStopped: "verberg gestopte containers",
|
||||
ForceRemove: "geforceerd verwijderen",
|
||||
ForceRemoveWithVolumes: "geforceerd verwijderen met volumes",
|
||||
RemoveWithVolumes: "verwijder met volumes",
|
||||
RemoveService: "verwijder containers",
|
||||
Stop: "stop",
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ type TranslationSet struct {
|
|||
HideStopped string
|
||||
ForceRemove string
|
||||
RemoveWithVolumes string
|
||||
ForceRemoveWithVolumes string
|
||||
MustForceToRemoveContainer string
|
||||
Confirm string
|
||||
Return string
|
||||
|
|
@ -180,6 +181,7 @@ func englishSet() TranslationSet {
|
|||
Remove: "remove",
|
||||
HideStopped: "hide/show stopped containers",
|
||||
ForceRemove: "force remove",
|
||||
ForceRemoveWithVolumes: "force remove with volumes",
|
||||
RemoveWithVolumes: "remove with volumes",
|
||||
RemoveService: "remove containers",
|
||||
UpService: "up service",
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ func frenchSet() TranslationSet {
|
|||
Remove: "supprimer",
|
||||
HideStopped: "cacher/montrer les conteneurs arrêtés",
|
||||
ForceRemove: "forcer la suppression",
|
||||
ForceRemoveWithVolumes: "forcer la suppression avec les volumes",
|
||||
RemoveWithVolumes: "supprimer avec les volumes",
|
||||
RemoveService: "supprimer les conteneurs",
|
||||
Stop: "arrêter",
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ func germanSet() TranslationSet {
|
|||
Cancel: "abbrechen",
|
||||
Remove: "entfernen",
|
||||
ForceRemove: "Entfernen erzwingen",
|
||||
ForceRemoveWithVolumes: "Entfernen erzwingen mit Volumes",
|
||||
RemoveWithVolumes: "entferne mit Volumes",
|
||||
RemoveService: "entferne Container",
|
||||
Stop: "anhalten",
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ func polishSet() TranslationSet {
|
|||
Cancel: "anuluj",
|
||||
Remove: "usuń",
|
||||
ForceRemove: "usuń siłą",
|
||||
ForceRemoveWithVolumes: "usuń siłą z wolumenami",
|
||||
RemoveWithVolumes: "usuń z wolumenami",
|
||||
RemoveService: "usuń kontenery",
|
||||
Stop: "zatrzymaj",
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ func portugueseSet() TranslationSet {
|
|||
Remove: "remover",
|
||||
HideStopped: "ocultar/mostrar contêineres parados",
|
||||
ForceRemove: "forçar remoção",
|
||||
ForceRemoveWithVolumes: "forçar remoção com volumes",
|
||||
RemoveWithVolumes: "remover com volumes",
|
||||
RemoveService: "remover contêineres",
|
||||
UpService: "subir serviço",
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ func spanishSet() TranslationSet {
|
|||
Remove: "borrar",
|
||||
HideStopped: "esconder/mostrar contenedores parados",
|
||||
ForceRemove: "borrar(forzado)",
|
||||
ForceRemoveWithVolumes: "borrar(forzado) con volúmenes",
|
||||
RemoveWithVolumes: "borrar con volúmenes",
|
||||
RemoveService: "borrar contenedores",
|
||||
UpService: "levantar servicio",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue