During discussion of #2482, @RustyBower broached the broader subject of locale awareness/localization in Sopel and what improvements we might make. Filing this issue so we have a separate place to continue that discussion.
Locale configuration
It seems that it may be useful to define a default locale for an instance of Sopel, probably in the [core] configuration section, which locale-aware plugins could consult and act upon. I'm not sure what there might be in the bot's core functionality that could make use of this information, but providing it for plugins that want to play nice with locale-awareness is a reasonably low bar to clear.
Allow for localizations
See also #2032
@xmszkn shared an example of some Polish-language documentation of a Sopel instance, which is a good example of what kind of localization of user-facing messages would be practical for users of the bot. It seems like we could add gettext to some of the user-facing messages to allow for translation of these messages.
A good next step for this item would be to review the use of user-facing strings in Sopel and figure out what the scope of localization targets is.
Other stuff?
This section is left as an exercise to the reader, comment below! :grin:
Requested Feature
During discussion of #2482, @RustyBower broached the broader subject of locale awareness/localization in Sopel and what improvements we might make. Filing this issue so we have a separate place to continue that discussion.
Locale configuration
It seems that it may be useful to define a default locale for an instance of Sopel, probably in the
[core]
configuration section, which locale-aware plugins could consult and act upon. I'm not sure what there might be in the bot's core functionality that could make use of this information, but providing it for plugins that want to play nice with locale-awareness is a reasonably low bar to clear.Allow for localizations
See also #2032
@xmszkn shared an example of some Polish-language documentation of a Sopel instance, which is a good example of what kind of localization of user-facing messages would be practical for users of the bot. It seems like we could add
gettext
to some of the user-facing messages to allow for translation of these messages.A good next step for this item would be to review the use of user-facing strings in Sopel and figure out what the scope of localization targets is.
Other stuff?
This section is left as an exercise to the reader, comment below! :grin:
Problems Solved
No response
Alternatives
No response
Notes
No response