Use gettext for desktop file instead of intltool

This commit is contained in:
wangqr 2019-09-13 17:59:38 -04:00
parent 7c500a096a
commit 186c98308e
5 changed files with 6 additions and 19 deletions

View file

@ -753,7 +753,7 @@ endif()
if(NOT WIN32) if(NOT WIN32)
set(AEGISUB_COMMAND "aegisub" CACHE STRING "The executable name of Aegisub") set(AEGISUB_COMMAND "aegisub" CACHE STRING "The executable name of Aegisub")
set_target_properties(Aegisub PROPERTIES OUTPUT_NAME "${AEGISUB_COMMAND}") set_target_properties(Aegisub PROPERTIES OUTPUT_NAME "${AEGISUB_COMMAND}")
configure_file("packages/desktop/aegisub.desktop.template.cmake.in" "aegisub.desktop" @ONLY) configure_file("packages/desktop/aegisub.desktop.template.in" "aegisub.desktop" @ONLY)
install(FILES "${CMAKE_BINARY_DIR}/aegisub.desktop" DESTINATION "share/applications") install(FILES "${CMAKE_BINARY_DIR}/aegisub.desktop" DESTINATION "share/applications")
install(FILES "packages/desktop/16x16.png" DESTINATION "share/icons/hicolor/16x16/apps" RENAME aegisub.png) install(FILES "packages/desktop/16x16.png" DESTINATION "share/icons/hicolor/16x16/apps" RENAME aegisub.png)
install(FILES "packages/desktop/22x22.png" DESTINATION "share/icons/hicolor/22x22/apps" RENAME aegisub.png) install(FILES "packages/desktop/22x22.png" DESTINATION "share/icons/hicolor/22x22/apps" RENAME aegisub.png)

View file

@ -510,7 +510,7 @@ AC_PCH_FLAG([-fpch-preprocess])
# Internationalisation support # Internationalisation support
############################## ##############################
AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.18.1]) AM_GNU_GETTEXT_VERSION([0.19.7])
################ ################
# Update checker # Update checker

View file

@ -17,7 +17,7 @@ APPDATA_FILE_INSTALLED = $(DESTDIR)$(P_APPDATA)/$(notdir $(APPDATA_FILE))
DISTCLEANFILES += $(APPDATA_FILE) DISTCLEANFILES += $(APPDATA_FILE)
%.desktop: %.desktop.template $(DESKTOP_FILE_PO) %.desktop: %.desktop.template $(DESKTOP_FILE_PO)
intltool-merge --quiet --desktop-style $(DESKTOP_FILE_PO) $< $@ $(AM_V_GEN)$(BIN_MSGFMT) --desktop --template $< -o $@ $(DESKTOP_FILE_PO)
%.appdata.xml: %.appdata.xml.template $(APPDATA_FILE_PO) %.appdata.xml: %.appdata.xml.template $(APPDATA_FILE_PO)
intltool-merge --quiet --xml-style $(APPDATA_FILE_PO) $< $@ intltool-merge --quiet --xml-style $(APPDATA_FILE_PO) $< $@

View file

@ -1,13 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Aegisub
GenericName=Subtitle Editor
Comment=Create and edit subtitles for film and videos.
Exec=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f
TryExec=@AEGISUB_COMMAND@
Icon=aegisub
Terminal=false
Categories=AudioVideo;AudioVideoEditing;
MimeType=application/x-srt;text/plain;text/x-ass;text/x-microdvd;text/x-ssa;
StartupNotify=true

View file

@ -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=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f Exec=env GDK_BACKEND=x11 @AEGISUB_COMMAND@ %f
TryExec=@AEGISUB_COMMAND@ TryExec=@AEGISUB_COMMAND@
Icon=aegisub Icon=aegisub