GSettings schemas default value translations don't work when using l10n=time
When using the l10n=time
attribute in <default>
to specify LC_TIME
dependent default values (e.g. gsettings-desktop-schemas#30 (closed)), the translated values will not be found, because xgettext will only ever use the LC_MESSAGES
category for gsettings translations. I filed a bug report against gettext about this, but this is unlikely to ever get implemented. Instead they suggested a solution that makes use of EXTRA_LOCALE_CATEGORIES
to automatically generate symlinks from the LC_TIME
translations to LC_MESSAGES
, which as far as I can tell would only work for Automake based projects and has no Meson equivalent. So this is not really an option for most projects.
So I was wondering if maybe the gsettings code should be changed to look up the LC_TIME
translation in LC_MESSAGES
instead. Maybe this could work by temporarily setting LC_MESSAGES=$LC_TIME
when looking up l10n=time
translations instead of g_dcgettext (..., LC_TIME)
?