Commit 53d80c14 authored by Marco Trevisan's avatar Marco Trevisan Committed by Bastien Nocera
Browse files

build: Use gettext to translate policy file with meson

Recent versions of gettext can merge translations in xml files,
so use it and remove the intltool dependency for meson builds.
parent 9bed3bed
......@@ -2,7 +2,7 @@ image: fedora:rawhide
variables:
DEPENDENCIES: dbus-glib-devel pam-devel polkit-devel
gtk-doc meson intltool autoconf automake libtool
gtk-doc meson gettext intltool autoconf automake libtool
gcc gcc-c++ glibc-devel make python3-dbusmock python3-libpamtest systemd-devel
DEPENDENCIES_STABLE: $DEPENDENCIES libfprint-devel
DEPENDENCIES_DEV: $DEPENDENCIES git
......
......@@ -22,17 +22,10 @@ configure_file(
)
polkit_policy = 'net.reactivated.fprint.device.policy'
polkit_policy_target = custom_target(polkit_policy,
polkit_policy_target = i18n.merge_file(polkit_policy,
input: '@0@.in'.format(polkit_policy),
output: polkit_policy,
command: [
find_program('intltool-merge'),
'-x',
'-u',
meson.source_root() / 'po',
'@INPUT@',
'@OUTPUT@',
],
po_dir: meson.source_root() / 'po',
install: true,
install_dir: polkit_policy_directory,
)
......
......@@ -10,8 +10,8 @@
<icon_name>fprint</icon_name>
<action id="net.reactivated.fprint.device.verify">
<_description>Verify a fingerprint</_description>
<_message>Privileges are required to verify fingerprints.</_message>
<description>Verify a fingerprint</description>
<message>Privileges are required to verify fingerprints.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
......@@ -20,8 +20,8 @@
</action>
<action id="net.reactivated.fprint.device.enroll">
<_description>Enroll new fingerprints</_description>
<_message>Privileges are required to enroll new fingerprints.</_message>
<description>Enroll new fingerprints</description>
<message>Privileges are required to enroll new fingerprints.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
......@@ -30,8 +30,8 @@
</action>
<action id="net.reactivated.fprint.device.setusername">
<_description>Select a user to enroll</_description>
<_message>Privileges are required to enroll new fingerprints for other users.</_message>
<description>Select a user to enroll</description>
<message>Privileges are required to enroll new fingerprints for other users.</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment