mirror of https://github.com/odrling/Aegisub
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:
parent
61d72c6960
commit
cf3b0c7f4b
|
@ -1,9 +1,9 @@
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Type=Application
|
Type=Application
|
||||||
_Name=Aegisub
|
Name=Aegisub
|
||||||
_GenericName=Subtitle Editor
|
GenericName=Subtitle Editor
|
||||||
_Comment=Create and edit subtitles for film and videos.
|
Comment=Create and edit subtitles for film and videos.
|
||||||
Exec=@AEGISUB_COMMAND@ %f
|
Exec=@AEGISUB_COMMAND@ %f
|
||||||
TryExec=@AEGISUB_COMMAND@
|
TryExec=@AEGISUB_COMMAND@
|
||||||
Icon=aegisub
|
Icon=aegisub
|
||||||
|
|
|
@ -8,24 +8,13 @@ else
|
||||||
output: 'aegisub.desktop.template',
|
output: 'aegisub.desktop.template',
|
||||||
configuration: c_pkg)
|
configuration: c_pkg)
|
||||||
|
|
||||||
# TODO: switch this to gettext from intltool
|
i18n = import('i18n')
|
||||||
# requires modifying the autotools chain and a recent-ish gettext
|
i18n.merge_file(input: desktop_template,
|
||||||
# https://wiki.gnome.org/MigratingFromIntltoolToGettext
|
output: 'aegisub.desktop',
|
||||||
#
|
type: 'desktop',
|
||||||
# i18n = import('i18n')
|
po_dir: '../po',
|
||||||
# i18n.merge_file(input: desktop_template,
|
install: true,
|
||||||
# output: 'aegisub.desktop',
|
install_dir: join_paths(get_option('datadir'), 'applications'))
|
||||||
# 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')
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
aegisub_logos = ['16x16.png', '22x22.png', '24x24.png', '32x32.png', '48x48.png', '64x64.png', 'scalable.svg']
|
aegisub_logos = ['16x16.png', '22x22.png', '24x24.png', '32x32.png', '48x48.png', '64x64.png', 'scalable.svg']
|
||||||
|
|
Loading…
Reference in New Issue