aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/i18n/i18n.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/i18n/i18n.go')
-rw-r--r--src/i18n/i18n.go4
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)
}