diff options
author | Iñigo Martínez <inigomartinez@gmail.com> | 2017-09-11 22:05:40 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2018-01-23 10:49:31 +0100 |
commit | 0dd386f405f49105880041202eeb270959ec3268 (patch) | |
tree | 64496538c87daec35a16a88293141b3fe0543247 /meson.build | |
parent | 811ba929d4986787277f685a13a43e47c9996236 (diff) | |
download | gnome-control-center-0dd386f405f49105880041202eeb270959ec3268.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 patch migrates from
Intltool to Gettext by using meson's i18n features.
https://bugzilla.gnome.org/show_bug.cgi?id=787588
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meson.build b/meson.build index cd3e9c0db..3543e6364 100644 --- a/meson.build +++ b/meson.build @@ -234,11 +234,12 @@ desktop_conf = configuration_data() desktop_conf.set('VERSION', meson.project_version()) po_dir = join_paths(meson.source_root(), 'po') +its_dir = join_paths(meson.source_root(), 'gettext') -intltool_merge = find_program('intltool-merge') -intltool_cache = join_paths(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@'] +install_subdir( + 'gettext', + install_dir: control_center_datadir +) top_inc = include_directories('.') shell_inc = include_directories('shell') |