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
32 lines
646 B
Meson
32 lines
646 B
Meson
sound_data = files(
|
|
'bark.ogg',
|
|
'drip.ogg',
|
|
'glass.ogg',
|
|
'sonar.ogg'
|
|
)
|
|
|
|
install_data(
|
|
sound_data,
|
|
install_dir: join_paths(control_center_datadir, 'sounds', 'gnome', 'default', 'alerts')
|
|
)
|
|
|
|
metadata_conf = configuration_data()
|
|
metadata_conf.set('datadir', control_center_datadir)
|
|
|
|
metadata = 'gnome-sounds-default.xml'
|
|
|
|
metadata_in = configure_file(
|
|
input: metadata + '.in.in',
|
|
output: metadata + '.in',
|
|
configuration: metadata_conf
|
|
)
|
|
|
|
i18n.merge_file(
|
|
metadata,
|
|
input: metadata_in,
|
|
output: metadata,
|
|
po_dir: po_dir,
|
|
data_dirs: its_dir,
|
|
install: true,
|
|
install_dir: join_paths(control_center_pkgdatadir, 'sounds')
|
|
)
|