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
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
......@@ -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: ''.format(polkit_policy),
output: polkit_policy,
command: [
meson.source_root() / 'po',
po_dir: meson.source_root() / 'po',
install: true,
install_dir: polkit_policy_directory,
......@@ -10,8 +10,8 @@
<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>
......@@ -20,8 +20,8 @@
<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>
......@@ -30,8 +30,8 @@
<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>
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