diff options
author | Colin Guthrie <colin@mageia.org> | 2013-10-01 20:48:52 +0100 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2013-10-01 20:49:28 +0100 |
commit | 9d9ef58760337c42819f702feb0c67b9af0f2988 (patch) | |
tree | 632a032cd25056b70d880bf77435df28a043127d /polkit | |
parent | f5111ceb201c828e3d9643ec5b35d98a30263d8a (diff) | |
download | drakx-kbd-mouse-x11-9d9ef58760337c42819f702feb0c67b9af0f2988.tar drakx-kbd-mouse-x11-9d9ef58760337c42819f702feb0c67b9af0f2988.tar.gz drakx-kbd-mouse-x11-9d9ef58760337c42819f702feb0c67b9af0f2988.tar.bz2 drakx-kbd-mouse-x11-9d9ef58760337c42819f702feb0c67b9af0f2988.tar.xz drakx-kbd-mouse-x11-9d9ef58760337c42819f702feb0c67b9af0f2988.zip |
polkit: Make the polkit policy files translatable.
Diffstat (limited to 'polkit')
-rw-r--r-- | polkit/policy/Makefile | 16 | ||||
-rw-r--r-- | polkit/policy/org.mageia.drakkeyboard.policy.in (renamed from polkit/policy/org.mageia.drakkeyboard.policy) | 4 | ||||
-rw-r--r-- | polkit/policy/org.mageia.drakmouse.policy.in (renamed from polkit/policy/org.mageia.drakmouse.policy) | 4 | ||||
-rw-r--r-- | polkit/policy/org.mageia.drakx11.policy.in (renamed from polkit/policy/org.mageia.drakx11.policy) | 4 |
4 files changed, 22 insertions, 6 deletions
diff --git a/polkit/policy/Makefile b/polkit/policy/Makefile new file mode 100644 index 0000000..1de7222 --- /dev/null +++ b/polkit/policy/Makefile @@ -0,0 +1,16 @@ +POLKITPOLICYDEST = $(DESTDIR)/usr/share/polkit-1/actions + +POLICY_IN := $(wildcard *.policy.in) +POLICY = $(POLICY_IN:.policy.in=.policy) + +all: $(POLICY) + +clean: + rm -f $(POLICY) + +install: all + install -d $(POLKITPOLICYDEST) + install -m644 $(POLICY) $(POLKITPOLICYDEST) + +%.policy: %.policy.in + intltool-merge --utf8 ../../po $< $@ -x -u -c ../../po/.intltool-merge-cache diff --git a/polkit/policy/org.mageia.drakkeyboard.policy b/polkit/policy/org.mageia.drakkeyboard.policy.in index e3cd5bd..7ebaf2a 100644 --- a/polkit/policy/org.mageia.drakkeyboard.policy +++ b/polkit/policy/org.mageia.drakkeyboard.policy.in @@ -8,8 +8,8 @@ <vendor_url>http://www.mageia.org/</vendor_url> <action id="org.mageia.drakkeyboard.pkexec.run"> - <description>Run Mageia Keyboard Configuration</description> - <message>Authentication is required to run Mageia Keyboard Configuration</message> + <_description>Run Mageia Keyboard Configuration</_description> + <_message>Authentication is required to run Mageia Keyboard Configuration</_message> <icon_name>drakconf</icon_name> <defaults> <allow_any>no</allow_any> diff --git a/polkit/policy/org.mageia.drakmouse.policy b/polkit/policy/org.mageia.drakmouse.policy.in index 157e2d2..dc9981e 100644 --- a/polkit/policy/org.mageia.drakmouse.policy +++ b/polkit/policy/org.mageia.drakmouse.policy.in @@ -8,8 +8,8 @@ <vendor_url>http://www.mageia.org/</vendor_url> <action id="org.mageia.drakmouse.pkexec.run"> - <description>Run Mageia Mouse Configuration</description> - <message>Authentication is required to run Mageia Mouse Configuration</message> + <_description>Run Mageia Mouse Configuration</_description> + <_message>Authentication is required to run Mageia Mouse Configuration</_message> <icon_name>drakconf</icon_name> <defaults> <allow_any>no</allow_any> diff --git a/polkit/policy/org.mageia.drakx11.policy b/polkit/policy/org.mageia.drakx11.policy.in index efa8441..5d1fad2 100644 --- a/polkit/policy/org.mageia.drakx11.policy +++ b/polkit/policy/org.mageia.drakx11.policy.in @@ -8,8 +8,8 @@ <vendor_url>http://www.mageia.org/</vendor_url> <action id="org.mageia.drakx11.pkexec.run"> - <description>Run Mageia Graphics Configuration</description> - <message>Authentication is required to run Mageia Graphics Configuration</message> + <_description>Run Mageia Graphics Configuration</_description> + <_message>Authentication is required to run Mageia Graphics Configuration</_message> <icon_name>drakconf</icon_name> <defaults> <allow_any>no</allow_any> |