diff options
author | Richard Hughes <richard@hughsie.com> | 2020-09-04 19:53:07 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2020-09-04 20:00:26 +0100 |
commit | 29114357fa938319d35670a00f126b8da55af2a6 (patch) | |
tree | c672bd4a63dd1fefba19f5bbdbce3e7966e95285 | |
parent | da88ac9720232a703e3514ba817914e3bc93300c (diff) |
Actually merge in the PolicyKit translations
Fixes https://github.com/hughsie/PackageKit/issues/428
-rw-r--r-- | policy/meson.build | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/policy/meson.build b/policy/meson.build index 9fa328e70..dfeed1731 100644 --- a/policy/meson.build +++ b/policy/meson.build @@ -1,21 +1,10 @@ -intltool_merge = find_program('intltool-merge') -custom_target( - 'org.freedesktop.packagekit.policy', +install_data('org.freedesktop.packagekit.rules', + install_dir : join_paths(get_option('datadir'), 'polkit-1', 'rules.d')) +i18n.merge_file( input: 'org.freedesktop.packagekit.policy.in', output: 'org.freedesktop.packagekit.policy', - command: [ - intltool_merge, - '--xml-style', - '--utf8', - join_paths(meson.source_root(), 'po'), - '@INPUT@', - '@OUTPUT@', - ], install: true, - install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions') -) - -install_data( - 'org.freedesktop.packagekit.rules', - install_dir: join_paths(get_option('datadir'), 'polkit-1', 'rules.d') + install_dir: join_paths(get_option('datadir'), 'polkit-1', 'actions') , + type: 'xml', + po_dir: join_paths(meson.source_root(), 'po') ) |