From 9f1dd13e3990f2db9b656a093408dc230d3ec2c4 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Mon, 28 Oct 2019 18:09:30 +0800 Subject: migrate from intltool to gettext --- src/Makefile.am | 11 ++++++----- src/polkit-mate-authentication-agent-1.desktop.in.in | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 93f17f9..ac2131d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,15 +2,17 @@ FULL_LIBEXECDIR=$(libexecdir) desktopdir = $(sysconfdir)/xdg/autostart -desktop_DATA = polkit-mate-authentication-agent-1.desktop - -@INTLTOOL_DESKTOP_RULE@ +desktop_in_files = polkit-mate-authentication-agent-1.desktop.in +desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) polkit-mate-authentication-agent-1.desktop.in : polkit-mate-authentication-agent-1.desktop.in.in Makefile $(AM_V_GEN)sed \ -e "s|\@FULL_LIBEXECDIR\@|$(FULL_LIBEXECDIR)|" \ $< > $@ +$(desktop_DATA): $(desktop_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ + libexec_PROGRAMS = polkit-mate-authentication-agent-1 polkit_mate_authentication_agent_1_SOURCES = \ @@ -45,8 +47,7 @@ polkit_mate_authentication_agent_1_LDADD = \ $(GLIB_LIBS) \ $(POLKIT_AGENT_LIBS) \ $(POLKIT_GOBJECT_LIBS) \ - $(APPINDICATOR_LIBS) \ - $(INTLLIBS) + $(APPINDICATOR_LIBS) EXTRA_DIST = \ polkit-mate-authentication-agent-1.desktop.in \ diff --git a/src/polkit-mate-authentication-agent-1.desktop.in.in b/src/polkit-mate-authentication-agent-1.desktop.in.in index 3685932..da1129a 100644 --- a/src/polkit-mate-authentication-agent-1.desktop.in.in +++ b/src/polkit-mate-authentication-agent-1.desktop.in.in @@ -1,6 +1,6 @@ [Desktop Entry] -_Name=PolicyKit Authentication Agent -_Comment=PolicyKit Authentication Agent for the MATE Desktop +Name=PolicyKit Authentication Agent +Comment=PolicyKit Authentication Agent for the MATE Desktop Exec=@FULL_LIBEXECDIR@/polkit-mate-authentication-agent-1 Terminal=false Type=Application -- cgit v1.2.1