diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-07-27 22:00:20 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-07-27 22:00:20 +0200 |
commit | 3f7e149694f52d606fce11e3a279e8a278e2e0fd (patch) | |
tree | ee2ddb6431e50ce70108f8b0c59969fa71f90d73 /src/i18n/i18n.go | |
parent | feb15f6f7714cb6cee72b2fd66b85baa5f8a90f2 (diff) |
Fix things related to the translations system
Diffstat (limited to 'src/i18n/i18n.go')
-rw-r--r-- | src/i18n/i18n.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/i18n/i18n.go b/src/i18n/i18n.go index 1258a27..6f7c286 100644 --- a/src/i18n/i18n.go +++ b/src/i18n/i18n.go @@ -254,7 +254,7 @@ var ( Name: "Svenska", DateFormat: "2006-01-02", Eurozone: true, - Enabled: false, + Enabled: true, GroupSeparator: ' ', DecimalSeparator: ',', MonetaryPre: [2]string{"", "-"}, @@ -304,7 +304,9 @@ func Init() { if !li.Enabled { continue } - Printers[li.Bcp] = Printer{li, gotext.NewLocale("po", li.Bcp)} + gl := gotext.NewLocale("po", li.Bcp) + gl.AddDomain("messages") + Printers[li.Bcp] = Printer{li, gl} } DefaultPrinter = Printers["en"] |