diff options
author | Wu Xiaotian <[email protected]> | 2019-10-30 11:50:07 +0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-11-12 11:18:15 +0100 |
commit | 4b6d373147649c13d6ea625c31f15a34ced324e3 (patch) | |
tree | 0215b3594255d27ee81f1fd996ab22564b95b935 /policy | |
parent | a9ff56c6de34f8d3db48f3405c5ee671dc281194 (diff) | |
download | mate-power-manager-4b6d373147649c13d6ea625c31f15a34ced324e3.tar.bz2 mate-power-manager-4b6d373147649c13d6ea625c31f15a34ced324e3.tar.xz |
migrate from intltool to gettext
Diffstat (limited to 'policy')
-rw-r--r-- | policy/Makefile.am | 11 | ||||
-rw-r--r-- | policy/org.mate.power.policy.in2 | 4 |
2 files changed, 7 insertions, 8 deletions
diff --git a/policy/Makefile.am b/policy/Makefile.am index 4bab7f4..1f3343f 100644 --- a/policy/Makefile.am +++ b/policy/Makefile.am @@ -1,16 +1,15 @@ polkit_policydir = $(datadir)/polkit-1/actions -polkit_policy_DATA = \ - org.mate.power.policy +polkit_policy_in_files = org.mate.power.policy.in +polkit_policy_DATA = $(polkit_policy_in_files:.policy.in=.policy) -# You will need a recent intltool or the patch from this bug -# http://bugzilla.gnome.org/show_bug.cgi?id=462312 -@INTLTOOL_POLICY_RULE@ +$(polkit_policy_DATA): $(polkit_policy_in_files) + $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ .in2.in: sed "s|[@]sbindir@|${sbindir}|" $< > $@ EXTRA_DIST = org.mate.power.policy.in2 -DISTCLEANFILES = org.mate.power.policy org.mate.power.policy.in +DISTCLEANFILES = $(polkit_policy_DATA) $(polkit_policy_in_files) clean-local : rm -f *~ diff --git a/policy/org.mate.power.policy.in2 b/policy/org.mate.power.policy.in2 index 61bbd6e..06d6428 100644 --- a/policy/org.mate.power.policy.in2 +++ b/policy/org.mate.power.policy.in2 @@ -18,8 +18,8 @@ - A normal active user on the local machine does not need permission to change the backlight brightness. --> - <_description>Modify the laptop brightness</_description> - <_message>Authentication is required to modify the laptop brightness</_message> + <description>Modify the laptop brightness</description> + <message>Authentication is required to modify the laptop brightness</message> <defaults> <allow_any>no</allow_any> <allow_inactive>no</allow_inactive> |