Use i18n.merge_file for real

Requires gettext 0.19, which is available on all major linux dists.

Not compatible with autotools chain! (For now, anyway.)
This commit is contained in:
FichteFoll 2019-02-04 15:31:32 +01:00 committed by Ryan Lucia
parent 6343d36169
commit a91c4f70c3
2 changed files with 10 additions and 21 deletions

View File

@ -1,9 +1,9 @@
[Desktop Entry]
Version=1.0
Type=Application
_Name=Aegisub
_GenericName=Subtitle Editor
_Comment=Create and edit subtitles for film and videos.
Name=Aegisub
GenericName=Subtitle Editor
Comment=Create and edit subtitles for film and videos.
Exec=@AEGISUB_COMMAND@ %f
TryExec=@AEGISUB_COMMAND@
Icon=aegisub

View File

@ -8,24 +8,13 @@ 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,
output: 'aegisub.desktop',
command: [intltool_merge, '--desktop-style', '--quiet', '../po', '@INPUT@', '@OUTPUT@'],
install: true,
install_dir: get_option('datadir') / 'applications')
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'))
endif
aegisub_logos = ['16x16.png', '22x22.png', '24x24.png', '32x32.png', '48x48.png', '64x64.png', 'scalable.svg']