Coming from https://bugzilla.gnome.org/show_bug.cgi?id=768707
gvfs switched to gettext which appears to translate everything by default (as opposed to the previous intltool-merge). gvfs ships with a copy of polkit.its and that's not ready for this change that. It needs the diff below to switch to translation off by default, and then re-enables the two tags we want translated. It also changes the paths for those, since <action> isn't the root node they have no effect otherwise.
diff --git a/data/polkit.its b/data/polkit.its
index 1312ecb..7eeffc5 100644
@@ -1,7 +1,8 @@
- <its:translateRule selector="/action/description |
+ <its:translateRule selector="//*" translate="no" />
+ <its:translateRule selector="//action/description |
If you're happy with this, I'll get a proper patch done.
ACK, this makes sense. (https://www.w3.org/TR/its20/#basic-concepts-overinher : The ITS default is that all elements are translatable. )
Created attachment 127658 [details] [review]
gettext: switch to default-translate "no"
The default appears to be to translate all entries. This rule never takes
effect, the path to /action/message and /action/description is wrong (/action
is not a root node). Since we wanted them to be translated, it doesn't matter.
But it also translates all other tags (vendor, allow_any, etc.) and that
causes polkit to be unhappy, it can't handle the various language versions of
** (polkitd:27434): WARNING **: Unknown PolkitImplicitAuthorization string
Switch to a default of "no" and explicitly include the message and description
strings to be translated.
The patch was modified for PolicyKit by Ondrej Holy <firstname.lastname@example.org>.