[PATCH] Use gettext as fallback for translations

Simon McVittie smcv at collabora.com
Tue Jun 13 17:32:57 UTC 2017


On Tue, 13 Jun 2017 at 18:35:23 +0200, Ludwig Nussel wrote:
> So this patch makes polkit call into gettext with the domain
> 'polkit-action-distro-translations' if an xml doesn't contain
> translations for the requested language.

Would it perhaps be better to have the XML specify a gettext domain,
perhaps with some default? That's what GLib's GSettings does: you
write something like <schemalist gettext-domain="gnome-terminal">
to look for translations in gnome-terminal.mo (which is a real example
if you want to see it in action).

(I assume you already have some way to ship updated versions of
arbitrary .mo files so that you can localize messages, etc.)

    S


More information about the polkit-devel mailing list