summaryrefslogtreecommitdiff
diff options
authorPaweł Stołowski <stolowski@gmail.com>2021-09-07 14:44:57 +0200
committerPaweł Stołowski <stolowski@gmail.com>2021-09-07 14:44:57 +0200
commitc009772759a6316d7e13ae67f07bcd9dcb3edab7 (patch)
tree8a50ddb03f08e5d79408d805d3a9c1174664feb3
parentd1008b6ba6c15eb4b7e96268aa14dce251a8777b (diff)
Don't translate service statuses in 'snap services' output. Fixes LP: #1941926dont-translate-service-statuses
-rw-r--r--cmd/snap/cmd_services.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/snap/cmd_services.go b/cmd/snap/cmd_services.go
index 2c879aa7f5..2fee8a092a 100644
--- a/cmd/snap/cmd_services.go
+++ b/cmd/snap/cmd_services.go
@@ -138,15 +138,15 @@ func (s *svcStatus) Execute(args []string) error {
fmt.Fprintln(w, i18n.G("Service\tStartup\tCurrent\tNotes"))
for _, svc := range services {
- startup := i18n.G("disabled")
+ startup := "disabled"
if svc.Enabled {
- startup = i18n.G("enabled")
+ startup = "enabled"
}
- current := i18n.G("inactive")
+ current := "inactive"
if svc.DaemonScope == snap.UserDaemon {
current = "-"
} else if svc.Active {
- current = i18n.G("active")
+ current = "active"
}
fmt.Fprintf(w, "%s.%s\t%s\t%s\t%s\n", svc.Snap, svc.Name, startup, current, clientutil.ClientAppInfoNotes(svc))
}