Revert to English if jibber_jabber can't detect the language; revert accidental removal of two zh_CN translations.

This commit is contained in:
Sean E. Russell 2020-06-21 10:14:18 -05:00
parent 23364aa754
commit b49c7c9a60
2 changed files with 8 additions and 9 deletions

View File

@ -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

View File

@ -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]