summaryrefslogtreecommitdiffstats
path: root/cmd/gotop/main.go
diff options
context:
space:
mode:
authorTiger Feng <tigerfyj@gmail.com>2020-06-22 22:55:41 +0800
committerTiger Feng <tigerfyj@gmail.com>2020-06-22 22:55:41 +0800
commit79867c09adba44b9e684341a0e6d540f642d8ae5 (patch)
treecee97a538db8fc344abcdf8ebe384eb91c67c5af /cmd/gotop/main.go
parentcc42059b2e5ae5062bb29288e39f133f0868dd2a (diff)
parent81424fb000eaf1b6cd8c1d5bb4d476cb4b3b32db (diff)
Merge remote-tracking branch 'upstream/i18n' into i18n
Diffstat (limited to 'cmd/gotop/main.go')
-rw-r--r--cmd/gotop/main.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/gotop/main.go b/cmd/gotop/main.go
index 1f9f0a5..9c228b8 100644
--- a/cmd/gotop/main.go
+++ b/cmd/gotop/main.go
@@ -362,8 +362,7 @@ func run() int {
}
lang, err := jj.DetectIETF()
if err != nil {
- fmt.Printf("failed to get language setting from environment: %s\n", err)
- return 2
+ lang = "en_US"
}
lang = strings.Replace(lang, "-", "_", -1)
// Get the locale from the os