From 3efca6ce7c0dc039b2bc9d8865e3d7fa4754e10b Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 2 Aug 2025 15:44:20 +0200 Subject: Rename fields --- src/i18n/i18n.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/i18n/i18n.go') 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) } -- cgit v1.2.3