Files
git/po/meson.build
Patrick Steinhardt 8bf062dd14 git-gui: wire up support for the Meson build system
The Git project has started to wire up Meson as a build system in Git
v2.48.0. Wire up support for Meson in "git-gui" so that we can trivially
include it as a subproject in Git.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
2025-05-13 08:48:09 +02:00

39 lines
592 B
Meson

languages = [
'bg',
'de',
'el',
'fr',
'hu',
'it',
'ja',
'nb',
'pt_br',
'pt_pt',
'ru',
'sv',
'vi',
'zh_cn',
]
msgfmt = find_program('msgfmt', required: false)
if not msgfmt.found()
subdir_done()
endif
foreach language : languages
custom_target(
input: language + '.po',
output: language + '.msg',
command: [
msgfmt,
'--statistics',
'--tcl',
'--locale=' + language,
'-d', meson.current_build_dir(),
'@INPUT@',
],
install: true,
install_dir: get_option('datadir') / 'git-gui/lib/msgs',
)
endforeach