Open mtylty opened 8 years ago
Those sound like bugs to me. Thanks for the report!
has this ever been fixed? 5 years from the last comment and I am getting DEBUG: translation missing: C.UTF-8.lita.handler.dispatch
all over my logs and sending the help
message to Lita provides a large dump of such errors.
Running into this as well right now. Interested if anyone has a solution
Part of the issue should be fixed by using "default locale" instead of "locale" which you can do as of v4.8: https://github.com/litaio/lita/releases/tag/v4.8.0. The problem of handler help text not translating is indeed because they are a class-level construct, so the translation is getting run when the file is loaded, which is before the Lita configuration is loaded. This will be addressed in Lita 5 by setting the locale (and the default locale) based on the environment variables LC_ALL
, LC_MESSAGES
, or LANG
very early in the program's execution. Setting the locale via Lita configuration will be deprecated in favor of these environment variables.
@jimmycuadra setting config.robot.default_locale = :en
per release instructions did not fix the issue
@jrcasso Try setting LANG=en
and see if that helps? That was what helped me.
Localization seems like it doesn't work properly. I'm trying to use Lita as an Italian bot but...
I've found at least two problems:
en
. I've triedLANG
andconfig.robot.locale
and neither work. I keep gettingtranslation missing
errors looking foren
locale strings (i18n is instead working fine in the shell adapter, set with the config option);en
locale strings.I'm not sure I'm doing something wrong but this is driving me crazy and it looks like it might be an actual bug. If somebody could please confirm this I could start working on PR to fix this.
Thanks!