mirror of
https://github.com/Jguer/yay
synced 2024-10-01 13:53:32 +00:00
fix(yay): give priority to LC_MESSAGES. fixes #1442
This commit is contained in:
parent
f00630fd0c
commit
c221d5ebbd
6
main.go
6
main.go
|
@ -19,7 +19,11 @@ func initGotext() {
|
|||
localePath = envLocalePath
|
||||
}
|
||||
|
||||
gotext.Configure(localePath, os.Getenv("LANG"), "yay")
|
||||
if os.Getenv("LC_MESSAGES") != "" {
|
||||
gotext.Configure(localePath, os.Getenv("LC_MESSAGES"), "yay")
|
||||
} else {
|
||||
gotext.Configure(localePath, os.Getenv("LANG"), "yay")
|
||||
}
|
||||
}
|
||||
|
||||
func initAlpm(cmdArgs *settings.Arguments, pacmanConfigPath string) (*pacmanconf.Config, bool, error) {
|
||||
|
|
Loading…
Reference in a new issue