diff --git a/aegisub/configure.ac b/aegisub/configure.ac
index 7c44985d0eb6bb5bfe5ff5076f93162a635e753d..890590e8514668b2c34081e3f4ee8145948e09cd 100644
--- a/aegisub/configure.ac
+++ b/aegisub/configure.ac
@@ -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
diff --git a/aegisub/desktop/Makefile b/aegisub/desktop/Makefile
index a2848a1fdb35558b393167e6bac977c4bd089b23..02d04fddc0dcd4313226fda2b443d204504b581c 100644
--- a/aegisub/desktop/Makefile
+++ b/aegisub/desktop/Makefile
@@ -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)
 
diff --git a/aegisub/desktop/aegisub.desktop.in b/aegisub/desktop/aegisub.desktop.template.in
similarity index 72%
rename from aegisub/desktop/aegisub.desktop.in
rename to aegisub/desktop/aegisub.desktop.template.in
index e36595c93903ec10577291e118d8b92a7e4ea82d..b11a3e3597a18b5fad99944d59072952a88a820f 100644
--- a/aegisub/desktop/aegisub.desktop.in
+++ b/aegisub/desktop/aegisub.desktop.template.in
@@ -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