Internationalization: set default language
Francesco Malvezzi
francesco.malvezzi at unimore.it
Tue May 24 09:16:16 UTC 2022
On 20/05/22 15:45, Cantor, Scott wrote:
> It was my impression that the "fallback language" isn't "what to use if a message doesn't exist in a given language" but "which language to use if no language is set/derived", and I'm not sure that even affects messages (I don't recall, I was thinking it was just for metadata UI extension content, that sort of stuff).
>
> The fallback for messages is to the unmarked/non-lang-specific file (i.e. messages.properties). There isn't a built-in English file in fact, that's just the base file, that's the sense in which it's the fallback.
>
> Nothing's changed in this respect other than moving the default message files inside the jar in 4.1, though of course Spring upgrades could have changed something inadvertently. Unlikely though.
thank you, it helped a lot.
Note to self: never set the operating system language to Italian.
If you have the following:
Debian/GNU Linux 10 (buster)
jetty-9.4 behind apache2 reverse proxy
Shibboleth-IdP-4.2.1
and you set the default operating system to Italian, English guests will
find their language shadowed by Italian. This is a pretty distinctive
malfunctioning as the French and German guests are not affected.
Just switch default language in Debian to English and everything works
as expected.
regards,
Francesco
More information about the users
mailing list