diff options
Diffstat (limited to 'src/i18n/i18n.go')
-rw-r--r-- | src/i18n/i18n.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i18n/i18n.go b/src/i18n/i18n.go index c844016..483fc66 100644 --- a/src/i18n/i18n.go +++ b/src/i18n/i18n.go @@ -55,7 +55,7 @@ func Init(dir fs.FS, debugp bool) { log.Fatalf("No translation file default locale ā%sā\n", gotext.FallbackLocale) } - if !locales[i].Enabled { + if !locales[i].Enabledp { atexit.Exec() log.Fatalf("Default locale ā%sā is not enabled\n", locales[i].Name) @@ -65,7 +65,7 @@ func Init(dir fs.FS, debugp bool) { DefaultPrinter = Printers[gotext.FallbackLocale] for j, li := range locales { - if li.Enabled && i != j { + if li.Enabledp && i != j { name := DefaultPrinter.GetC(li.Name, "Language Name") initLocale(dir, li, name, debugp) } |