Skip to content

Commit

Permalink
Bugfix: i18n is initialized too late
Browse files Browse the repository at this point in the history
See related issue: ubuntu/adsys#656
  • Loading branch information
EduardGomezEscandell committed Mar 30, 2023
1 parent a71b7a2 commit 7c9b1cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion windows-agent/cmd/ubuntu-pro-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
//go:generate go run ../generate_completion_documentation.go update-doc-cli-ref

func main() {
i18n.InitI18nDomain(common.TEXTDOMAIN)
a := agent.New()
os.Exit(run(a))
}
Expand All @@ -30,7 +31,6 @@ type app interface {
}

func run(a app) int {
i18n.InitI18nDomain(common.TEXTDOMAIN)
defer installSignalHandler(a)()

log.SetFormatter(&log.TextFormatter{
Expand Down
2 changes: 1 addition & 1 deletion wsl-pro-service/cmd/wsl-pro-service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
//go:generate go run ../generate_completion_documentation.go update-doc-cli-ref

func main() {
i18n.InitI18nDomain(common.TEXTDOMAIN)
a := service.New()
os.Exit(run(a))
}
Expand All @@ -30,7 +31,6 @@ type app interface {
}

func run(a app) int {
i18n.InitI18nDomain(common.TEXTDOMAIN)
defer installSignalHandler(a)()

log.SetFormatter(&log.TextFormatter{
Expand Down

0 comments on commit 7c9b1cb

Please sign in to comment.