feat(localization): LUA error at start
Arkewas opened this issue · 2 comments
Hello, I'm getting the following error at start (Titan [Reputation Continued] v10.2.6.0), Italian WoW client:
1x TitanReputation/libs/lang.lua:37: attempt to call method 'LangitIT' (a nil value)
[string "@TitanReputation/libs/lang.lua"]:37: in function `UpdateLanguage'
[string "@TitanReputation/libs/lang.lua"]:47: in main chunk
Locals:
self =
LangdeDE = defined @TitanReputation/locale/deDE.lua:3
GT = defined @TitanReputation/libs/lang.lua:10
GetLangTab = defined @TitanReputation/libs/lang.lua:4
UpdateLanguageTab = defined @TitanReputation/locale/enUS.lua:3
UpdateLanguage = defined @TitanReputation/libs/lang.lua:25
LangenUS = defined @TitanReputation/locale/enUS.lua:9
}
(*temporary) = nil
(*temporary) =
LangdeDE = defined @TitanReputation/locale/deDE.lua:3
GT = defined @TitanReputation/libs/lang.lua:10
GetLangTab = defined @TitanReputation/libs/lang.lua:4
UpdateLanguageTab = defined @TitanReputation/locale/enUS.lua:3
UpdateLanguage = defined @TitanReputation/libs/lang.lua:25
LangenUS = defined @TitanReputation/locale/enUS.lua:9
}
(*temporary) = "attempt to call method 'LangitIT' (a nil value)"
TitanPanelReputation =
LangdeDE = defined @TitanReputation/locale/deDE.lua:3
GT = defined @TitanReputation/libs/lang.lua:10
GetLangTab = defined @TitanReputation/libs/lang.lua:4
UpdateLanguageTab = defined @TitanReputation/locale/enUS.lua:3
UpdateLanguage = defined @TitanReputation/libs/lang.lua:25
LangenUS = defined @TitanReputation/locale/enUS.lua:9
}
Hey @Arkewas,
this is because currently, we are missing an Italian localization for this addon. We should prevent erroring, instead, we should print a simple msg stating that we still miss localization for the given language. I will look into this.
If you find some time, I would appreciate it if you could take a look at the Italian localization and provide a translation for it :)
You can find it here: https://github.com/paulbuechner/titan-reputation/blob/main/locale/itIT.lua