policy-kit: make .policy file translatable (bgo #582918)
authorDavid Planella <david.planella@googlemail.com>
Mon, 18 May 2009 21:33:05 +0000 (17:33 -0400)
committerDan Williams <dcbw@redhat.com>
Mon, 18 May 2009 21:33:05 +0000 (17:33 -0400)
po/POTFILES.in
policy/Makefile.am
policy/org.freedesktop.network-manager-settings.system.policy.in [moved from policy/org.freedesktop.network-manager-settings.system.policy with 80% similarity]

index 433e752..f3437c8 100644 (file)
@@ -12,4 +12,5 @@ system-settings/plugins/ifcfg-rh/crypto.c
 system-settings/plugins/ifcfg-rh/reader.c
 system-settings/src/main.c
 system-settings/src/nm-default-wired-connection.c
+policy/org.freedesktop.network-manager-settings.system.policy.in
 
index 69f5d2e..637ed6b 100644 (file)
@@ -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 \
@@ -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>