From 6343d36169f02f29605f13318c5a8e7c901aa635 Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Tue, 23 Jul 2019 02:10:18 +0200 Subject: [PATCH] Add commented i18n.merge_file version Using that makes use of gettext (and msgfmt) rather than intltool, which is the proper way but requires a more recent gettext version and I'm not comfortable adding that dependency for now. Specifically, it would require updating the autotools chain as well as the template files are incompatible. See https://wiki.gnome.org/MigratingFromIntltoolToGettext for more info. --- packages/meson.build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/meson.build b/packages/meson.build index 963505d10..2ce40828b 100644 --- a/packages/meson.build +++ b/packages/meson.build @@ -8,6 +8,17 @@ else output: 'aegisub.desktop.template', configuration: c_pkg) + # TODO: switch this to gettext from intltool + # requires modifying the autotools chain and a recent-ish gettext + # https://wiki.gnome.org/MigratingFromIntltoolToGettext + # + # i18n = import('i18n') + # i18n.merge_file(input: desktop_template, + # output: 'aegisub.desktop', + # type: 'desktop', + # po_dir: '../po', + # install: true, + # install_dir: join_paths(get_option('datadir'), 'applications')) intltool_merge = find_program('intltool-merge') desktop = custom_target('aegisub.desktop', input: desktop_template,