diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2020-10-28 12:02:04 +0100 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2021-07-29 17:16:35 +0200 |
commit | 96c6fc83538fc28d1b3923b8be1eba2648f30e28 (patch) | |
tree | 319bfbd0c8fe86c3d16e97cb09267507abff2563 /meson.build | |
parent | e336bf86d8b8489a4643500925e4da4eeb9000ba (diff) | |
download | polkit-96c6fc83538fc28d1b3923b8be1eba2648f30e28.tar.gz |
build: Migrate from Intltool to Gettext
Recent versions of Gettext are able to translate several formats
that are used in GNOME applications.
This migrates from Intltool to Gettext both autotools and meson
build systems.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 81715b5..6a6799e 100644 --- a/meson.build +++ b/meson.build @@ -47,12 +47,18 @@ source_root = meson.current_source_dir() build_root = meson.current_build_dir() data_dir = source_root / 'data' +its_dir = source_root / 'gettext' po_dir = source_root / 'po' -intltool_merge = find_program('intltool-merge') -intltool_cache = po_dir / '.intltool-merge-cache' -intltool_desktop_cmd = [intltool_merge, '-d', '-u', '-c', intltool_cache, po_dir, '@INPUT@', '@OUTPUT@'] -intltool_xml_cmd = [intltool_merge, '-x', '-u', '-c', intltool_cache, po_dir, '@INPUT@', '@OUTPUT@'] +its_data = files( + 'gettext/its/polkit.its', + 'gettext/its/polkit.loc', +) + +install_data( + its_data, + install_dir: pk_datadir / 'gettext/its', +) top_inc = include_directories('.') |