aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/i18n/i18n.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-02 15:44:20 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-02 15:44:20 +0200
commit3efca6ce7c0dc039b2bc9d8865e3d7fa4754e10b (patch)
treeeccac953f41503551694469d9996e2e4ef37aa67 /src/i18n/i18n.go
parentbcbbbcbc40c956c1d8487f6eb48bf8a5325a6380 (diff)
Rename fields
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)
}