Wessel Kraaij writes:
How can I change the default language for lists (and other defaults)? I changed it in mailman-core but Postorius overrides these core defaults with a patch.
You need to be more specific about what you did, what you expect to happen in various cases, and what you mean by "patch".
Specifically, what language do you want as default, how did you spell it in mailman.cfg, have you checked that there are no list-specific settings (that override the default), is the problem in distributed posts, in Mailman-generated notifications, or in web pages? Specifically which part of posts, notifications, or web pages have unexpected languages? What language are they supposed to be, and what language(s) do you see?
For context, here is how language setting works:
In mailman.cfg (usually located at /etc/mailman3/mailman.cfg), there
is a default_language variable in the [mailman] section (hardcoded
to "en" if not overridden). This can be overridden on a per-list
basis, usually configured using Postorius. Postorius has read-only
access to the default_language setting, I believe, but I am not aware
of any way for Postorius to set it.
The settings in Mailman core directly control which language's templates and gettext substitutions are used in emails generated by Mailman and in footers and the like added to posts distributed by Mailman. In any given context, for each substitution, the list's language is checked for a translation, then the site's default language, then English is the fallback. You can end up with mixed languages if some contexts have not been translated.
Postorius and HyperKitty both use their own templates which are
separately provided in those packages. As far as I know they do not
have a default language setting of their own (although the Django
framework probably does, we don't use that). Instead, through the
mailmanclient library they read the current list's preferences (and
Postorius can change the list preference but not the site default),
and fetch templates and variable substitutions in the same way. It is
quite possible that the language you specified is missing the
translations you're looking for, or that the language code you
specified is not one that Mailman recognizes.
I am using the docker version of maxking
I don't think that matters, but Abhilash (maxking) is the only real expert on docker-mailman, and he's not following this list closely at this time. Check the docker-mailman documentation for the preferred method of communicating with him if it seems to be relevant.
Regards, Steve
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan