diff options
author | Sean E. Russell <ser@ser1.net> | 2020-06-21 10:14:18 -0500 |
---|---|---|
committer | Sean E. Russell <ser@ser1.net> | 2020-06-21 10:14:18 -0500 |
commit | b49c7c9a60e2912839c6d6ed1729e7269768d9c8 (patch) | |
tree | af343ccc6989801145afe1d4cb9f2ad21ff9d6cb /cmd | |
parent | 23364aa754c836b8a5fbc69adbdbd49abd183a57 (diff) |
Revert to English if jibber_jabber can't detect the language; revert accidental removal of two zh_CN translations.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gotop/main.go | 3 |
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 |