Merge the translations into the desktop file on install. Closes #1109.

This commit is contained in:
Thomas Goyne 2013-12-24 10:58:28 -08:00
parent 8da4c33c2b
commit c24f0c992a
3 changed files with 10 additions and 8 deletions

View File

@ -534,7 +534,7 @@ DEFAULT_PLAYER_AUDIO=${DEFAULT_PLAYER_AUDIO:-NONE}
###############
# Files that need substitution.
AC_CONFIG_FILES([
desktop/aegisub.desktop
desktop/aegisub.desktop.template
src/libresrc/default_config_platform.json
tools/osx-bundle.sed
Makefile.inc

View File

@ -6,6 +6,8 @@ applications_DATA = aegisub.desktop
iconsscalabledir = $(DESKTOP_DATADIR)/icons/hicolor/scalable/apps
iconsscalable_DATA = scalable/aegisub.svg
aegisub.desktop: aegisub.desktop.template ../po
intltool-merge --quiet --desktop-style ../po aegisub.desktop.template aegisub.desktop
all: ;
@ -20,17 +22,17 @@ ICON_HICOLOR = \
ICON_SCALABLE = \
scalable/apps/aegisub.svg
DESKTOP_FILE = \
aegisub.desktop
DESKTOP_FILE = aegisub.desktop
EXTRA_DIST = \
aegisub.desktop.in \
aegisub.desktop.template.in \
aegisub.desktop.template \
$(ICON_HICOLOR) \
$(ICON_SCALABLE)
install: install-desktop install-icons
install-desktop:
install-desktop: $(DESKTOP_FILE)
@$(BIN_MKDIR) -p $(DESTDIR)$(P_DESKTOP)
$(BIN_INSTALL) $(DESKTOP_FILE) $(DESTDIR)$(P_DESKTOP)/$(DESKTOP_FILE)

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