From 93881642e533133ef9f455612611002531e4475e Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Sat, 9 Nov 2019 15:33:24 +0800 Subject: migrate from intltool to gettext --- plugins/snippets/Makefile.am | 5 +++-- plugins/snippets/snippets.plugin.desktop.in | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/snippets') diff --git a/plugins/snippets/Makefile.am b/plugins/snippets/Makefile.am index 40aeeb90..24f5a5b4 100644 --- a/plugins/snippets/Makefile.am +++ b/plugins/snippets/Makefile.am @@ -3,10 +3,11 @@ SUBDIRS = snippets data plugindir = $(PLUMA_PLUGINS_LIBS_DIR) plugin_in_files = snippets.plugin.desktop.in -%.plugin: %.plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache - plugin_DATA = $(plugin_in_files:.plugin.desktop.in=.plugin) +$(plugin_DATA): $(plugin_in_files) + $(AM_V_GEN) $(MSGFMT) --keyword=Name --keyword=Description --desktop --template $< -d $(top_srcdir)/po -o $@ + EXTRA_DIST = $(plugin_in_files) CLEANFILES = $(plugin_DATA) diff --git a/plugins/snippets/snippets.plugin.desktop.in b/plugins/snippets/snippets.plugin.desktop.in index 826fd134..84de9c76 100644 --- a/plugins/snippets/snippets.plugin.desktop.in +++ b/plugins/snippets/snippets.plugin.desktop.in @@ -2,8 +2,8 @@ Loader=python3 Module=snippets IAge=2 -_Name=Snippets -_Description=Insert often-used pieces of text in a fast way +Name=Snippets +Description=Insert often-used pieces of text in a fast way Authors=Jesse van den Kieboom Copyright=Copyright © 2005 Jesse van den Kieboom Website=https://mate-desktop.org -- cgit v1.2.1