]> git.pld-linux.org Git - packages/polkit.git/blame - polkit-itstool.patch
Add gettext support for .policy files (patch from upstream). Release 4.
[packages/polkit.git] / polkit-itstool.patch
CommitLineData
9dc7cbe6
MB
1diff --git a/data/Makefile.am b/data/Makefile.am
2index fe0f1d5..18693fe 100644
3--- a/data/Makefile.am
4+++ b/data/Makefile.am
5@@ -36,6 +36,11 @@ pkgconfig_DATA = polkit-gobject-1.pc polkit-agent-1.pc
6
7 # ----------------------------------------------------------------------------------------------------
8
9+itsdir = $(datadir)/gettext/its
10+its_DATA = polkit.loc polkit.its
11+
12+# ----------------------------------------------------------------------------------------------------
13+
14 systemdservice_in_files = polkit.service.in
15
16 if HAVE_SYSTEMD
17diff --git a/data/polkit.its b/data/polkit.its
18new file mode 100644
19index 0000000..1c37e6b
20--- /dev/null
21+++ b/data/polkit.its
22@@ -0,0 +1,8 @@
23+<?xml version="1.0"?>
24+<its:rules xmlns:its="http://www.w3.org/2005/11/its"
25+ version="2.0">
26+ <its:translateRule selector="//*" translate="no"/>
27+ <its:translateRule selector="//action/description |
28+ //action/message"
29+ translate="yes"/>
30+</its:rules>
31diff --git a/data/polkit.loc b/data/polkit.loc
32new file mode 100644
33index 0000000..c7427ec
34--- /dev/null
35+++ b/data/polkit.loc
36@@ -0,0 +1,6 @@
37+<?xml version="1.0"?>
38+<locatingRules>
39+ <locatingRule name="polkit policy" pattern="*.policy">
40+ <documentRule localName="policyconfig" target="polkit.its"/>
41+ </locatingRule>
42+</locatingRules>
This page took 0.042355 seconds and 4 git commands to generate.