summaryrefslogtreecommitdiff
path: root/policy
diff options
context:
space:
mode:
authorDavid Planella <david.planella@googlemail.com>2009-05-18 17:33:05 -0400
committerDan Williams <dcbw@redhat.com>2009-05-18 17:33:05 -0400
commit93e02fa759d35efbb8242f0a7f03fc927404ff99 (patch)
treec0d5bda08365f718a2e014a8c1429528568861d3 /policy
parentc065ebdbfb1d9ce95b7457c9f2b7d5f79c213814 (diff)
policy-kit: make .policy file translatable (bgo #582918)
Diffstat (limited to 'policy')
-rw-r--r--policy/Makefile.am6
-rw-r--r--policy/org.freedesktop.network-manager-settings.system.policy.in (renamed from policy/org.freedesktop.network-manager-settings.system.policy)4
2 files changed, 6 insertions, 4 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am
index 69f5d2e9b1..637ed6b15d 100644
--- a/policy/Makefile.am
+++ b/policy/Makefile.am
@@ -1,7 +1,9 @@
polkit_policydir = $(datadir)/PolicyKit/policy
-dist_polkit_policy_DATA = \
- org.freedesktop.network-manager-settings.system.policy
+dist_polkit_policy_in_files = org.freedesktop.network-manager-settings.system.policy.in
+dist_polkit_policy_DATA = $(dist_polkit_policy_in_files:.policy.in=.policy)
+
+@INTLTOOL_POLICY_RULE@
check:
@for f in $(dist_polkit_policy_DATA); do \
diff --git a/policy/org.freedesktop.network-manager-settings.system.policy b/policy/org.freedesktop.network-manager-settings.system.policy.in
index 1247e20239..ca8c14bf35 100644
--- a/policy/org.freedesktop.network-manager-settings.system.policy
+++ b/policy/org.freedesktop.network-manager-settings.system.policy.in
@@ -10,8 +10,8 @@
<icon_name>nm-icon</icon_name>
<action id="org.freedesktop.network-manager-settings.system.modify">
- <description>Modify system connections</description>
- <message>System policy prevents modification of system settings</message>
+ <_description>Modify system connections</_description>
+ <_message>System policy prevents modification of system settings</_message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep_always</allow_active>