Skip to content

Commit

Permalink
Revert to English if jibber_jabber can't detect the language; revert …
Browse files Browse the repository at this point in the history
…accidental removal of two zh_CN translations.
  • Loading branch information
xxxserxxx committed Jun 21, 2020
1 parent 23364aa commit b49c7c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions cmd/gotop/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions translations/dicts/zh_CN.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ test="执行测试并返回成功或失败码。"
conffile="用于替代缺省参数的配置文件(必须是第一个参数)"
list="""
List <devices|layouts|colorschemes|paths|keys>
devices: Prints out device names for filterable widgets
layouts: Lists build-in layouts
colorschemes: Lists built-in colorschemes
paths: List out configuration file search paths
widgets: Widgets that can be used in a layout
keys: Show the keyboard bindings."""
write="Write out a default config file."
devices: 显示可用于过滤的设备名
layouts: 列出所有内置布局方案
colorschemes: 列出所有内置配色方案
paths: 列出配置文件的搜索路径
widgets: 所有可被用于布局的组件
keys: 显示所有热键。"""
write="将当前配置写入缺省配置文件。"


[config.err]
Expand Down

0 comments on commit b49c7c9

Please sign in to comment.