summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-10-20 10:50:58 +1000
committerMiloslav Trmač <mitr@redhat.com>2016-11-08 22:04:51 +0100
commit32e9a69c335324a53a2c0ba4e0b513fb044be0fd (patch)
tree0883e5345d334c1bfdb3ac5ba3597788a015c058
parent8b97afa0d93a9e918d6de95b1a597097f896e3ae (diff)
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 "no" ** (polkitd:27434): WARNING **: Unknown PolkitImplicitAuthorization string 'tidak' 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 <oholy@redhat.com>. https://bugs.freedesktop.org/show_bug.cgi?id=98366
-rw-r--r--data/polkit.its5
1 files changed, 3 insertions, 2 deletions
diff --git a/data/polkit.its b/data/polkit.its
index 1312ecb..1c37e6b 100644
--- a/data/polkit.its
+++ b/data/polkit.its
@@ -1,7 +1,8 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
version="2.0">
- <its:translateRule selector="/action/description |
- /action/message"
+ <its:translateRule selector="//*" translate="no"/>
+ <its:translateRule selector="//action/description |
+ //action/message"
translate="yes"/>
</its:rules>