mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
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.
This commit is contained in:
committed by
Bastien Nocera
parent
9bed3bed3f
commit
53d80c1474
@ -2,7 +2,7 @@ image: fedora:rawhide
|
|||||||
|
|
||||||
variables:
|
variables:
|
||||||
DEPENDENCIES: dbus-glib-devel pam-devel polkit-devel
|
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
|
gcc gcc-c++ glibc-devel make python3-dbusmock python3-libpamtest systemd-devel
|
||||||
DEPENDENCIES_STABLE: $DEPENDENCIES libfprint-devel
|
DEPENDENCIES_STABLE: $DEPENDENCIES libfprint-devel
|
||||||
DEPENDENCIES_DEV: $DEPENDENCIES git
|
DEPENDENCIES_DEV: $DEPENDENCIES git
|
||||||
|
|||||||
@ -22,17 +22,10 @@ configure_file(
|
|||||||
)
|
)
|
||||||
|
|
||||||
polkit_policy = 'net.reactivated.fprint.device.policy'
|
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),
|
input: '@0@.in'.format(polkit_policy),
|
||||||
output: polkit_policy,
|
output: polkit_policy,
|
||||||
command: [
|
po_dir: meson.source_root() / 'po',
|
||||||
find_program('intltool-merge'),
|
|
||||||
'-x',
|
|
||||||
'-u',
|
|
||||||
meson.source_root() / 'po',
|
|
||||||
'@INPUT@',
|
|
||||||
'@OUTPUT@',
|
|
||||||
],
|
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: polkit_policy_directory,
|
install_dir: polkit_policy_directory,
|
||||||
)
|
)
|
||||||
|
|||||||
@ -10,8 +10,8 @@
|
|||||||
<icon_name>fprint</icon_name>
|
<icon_name>fprint</icon_name>
|
||||||
|
|
||||||
<action id="net.reactivated.fprint.device.verify">
|
<action id="net.reactivated.fprint.device.verify">
|
||||||
<_description>Verify a fingerprint</_description>
|
<description>Verify a fingerprint</description>
|
||||||
<_message>Privileges are required to verify fingerprints.</_message>
|
<message>Privileges are required to verify fingerprints.</message>
|
||||||
<defaults>
|
<defaults>
|
||||||
<allow_any>no</allow_any>
|
<allow_any>no</allow_any>
|
||||||
<allow_inactive>no</allow_inactive>
|
<allow_inactive>no</allow_inactive>
|
||||||
@ -20,8 +20,8 @@
|
|||||||
</action>
|
</action>
|
||||||
|
|
||||||
<action id="net.reactivated.fprint.device.enroll">
|
<action id="net.reactivated.fprint.device.enroll">
|
||||||
<_description>Enroll new fingerprints</_description>
|
<description>Enroll new fingerprints</description>
|
||||||
<_message>Privileges are required to enroll new fingerprints.</_message>
|
<message>Privileges are required to enroll new fingerprints.</message>
|
||||||
<defaults>
|
<defaults>
|
||||||
<allow_any>no</allow_any>
|
<allow_any>no</allow_any>
|
||||||
<allow_inactive>no</allow_inactive>
|
<allow_inactive>no</allow_inactive>
|
||||||
@ -30,8 +30,8 @@
|
|||||||
</action>
|
</action>
|
||||||
|
|
||||||
<action id="net.reactivated.fprint.device.setusername">
|
<action id="net.reactivated.fprint.device.setusername">
|
||||||
<_description>Select a user to enroll</_description>
|
<description>Select a user to enroll</description>
|
||||||
<_message>Privileges are required to enroll new fingerprints for other users.</_message>
|
<message>Privileges are required to enroll new fingerprints for other users.</message>
|
||||||
<defaults>
|
<defaults>
|
||||||
<allow_any>no</allow_any>
|
<allow_any>no</allow_any>
|
||||||
<allow_inactive>no</allow_inactive>
|
<allow_inactive>no</allow_inactive>
|
||||||
|
|||||||
Reference in New Issue
Block a user