1 # This file is a part of Geeqie project (https://www.geeqie.org/).
2 # Copyright (C) 2008 - 2022 The Geeqie Team
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 add_project_arguments('-DGETTEXT_PACKAGE="geeqie"', language:'c')
16 i18n.gettext(meson.project_name(), args : ['--keyword=N_', '--from-code=UTF-8'])
18 # Create the list of translators for the About - Credits dialog
61 foreach name : po_sources
62 po_source_list = po_source_list + meson.project_source_root() + '/' + '@0@'.format(name) + '\n'
65 translators_sh = join_paths(scriptsdir, 'translators.sh')
67 translator_resources = custom_target('translator_resources',
68 input : ['locales.txt', 'translators.gresource.xml'],
69 output : ['translators.h', 'translators.c'],
70 command : [translators_sh, '@PRIVATE_DIR@', po_source_list, meson.current_build_dir() , '@INPUT0@', '@INPUT1@'])
72 project_sources += translator_resources