Revert to English if jibber_jabber can't detect the language; revert accidental removal of two zh_CN translations.
This commit is contained in:
parent
23364aa754
commit
b49c7c9a60
@ -362,8 +362,7 @@ func run() int {
|
|||||||
}
|
}
|
||||||
lang, err := jj.DetectIETF()
|
lang, err := jj.DetectIETF()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Printf("failed to get language setting from environment: %s\n", err)
|
lang = "en_US"
|
||||||
return 2
|
|
||||||
}
|
}
|
||||||
lang = strings.Replace(lang, "-", "_", -1)
|
lang = strings.Replace(lang, "-", "_", -1)
|
||||||
// Get the locale from the os
|
// Get the locale from the os
|
||||||
|
@ -88,13 +88,13 @@ test="执行测试并返回成功或失败码。"
|
|||||||
conffile="用于替代缺省参数的配置文件(必须是第一个参数)"
|
conffile="用于替代缺省参数的配置文件(必须是第一个参数)"
|
||||||
list="""
|
list="""
|
||||||
List <devices|layouts|colorschemes|paths|keys>
|
List <devices|layouts|colorschemes|paths|keys>
|
||||||
devices: Prints out device names for filterable widgets
|
devices: 显示可用于过滤的设备名
|
||||||
layouts: Lists build-in layouts
|
layouts: 列出所有内置布局方案
|
||||||
colorschemes: Lists built-in colorschemes
|
colorschemes: 列出所有内置配色方案
|
||||||
paths: List out configuration file search paths
|
paths: 列出配置文件的搜索路径
|
||||||
widgets: Widgets that can be used in a layout
|
widgets: 所有可被用于布局的组件
|
||||||
keys: Show the keyboard bindings."""
|
keys: 显示所有热键。"""
|
||||||
write="Write out a default config file."
|
write="将当前配置写入缺省配置文件。"
|
||||||
|
|
||||||
|
|
||||||
[config.err]
|
[config.err]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user