summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2019-10-28 18:09:30 +0800
committerraveit65 <[email protected]>2019-11-07 09:42:54 +0100
commit9f1dd13e3990f2db9b656a093408dc230d3ec2c4 (patch)
tree2ccd5e72c2e9b41b3d11d6e57bf06f01c8af7dcd /src
parentc5e729bc27c08860ed662a85d827492746010511 (diff)
downloadmate-polkit-9f1dd13e3990f2db9b656a093408dc230d3ec2c4.tar.bz2
mate-polkit-9f1dd13e3990f2db9b656a093408dc230d3ec2c4.tar.xz
migrate from intltool to gettext
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am11
-rw-r--r--src/polkit-mate-authentication-agent-1.desktop.in.in4
2 files changed, 8 insertions, 7 deletions
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