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/docinfo/Makefile.am | 7 +++---- plugins/docinfo/docinfo.plugin.desktop.in | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'plugins/docinfo') diff --git a/plugins/docinfo/Makefile.am b/plugins/docinfo/Makefile.am index 611dc17e..076bae60 100644 --- a/plugins/docinfo/Makefile.am +++ b/plugins/docinfo/Makefile.am @@ -21,15 +21,14 @@ include $(top_srcdir)/gla11y.mk ui_DATA = $(ui_files) plugin_in_files = docinfo.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 = $(ui_DATA) $(plugin_in_files) ui-a11y.suppr CLEANFILES = $(plugin_DATA) DISTCLEANFILES = $(plugin_DATA) - -include $(top_srcdir)/git.mk diff --git a/plugins/docinfo/docinfo.plugin.desktop.in b/plugins/docinfo/docinfo.plugin.desktop.in index b4da32b0..3f6b32e3 100644 --- a/plugins/docinfo/docinfo.plugin.desktop.in +++ b/plugins/docinfo/docinfo.plugin.desktop.in @@ -1,7 +1,7 @@ [Plugin] Module=docinfo IAge=2 -_Name=Document Statistics -_Description=Analyzes the current document and reports the number of words, lines, characters and non-space characters in it. +Name=Document Statistics +Description=Analyzes the current document and reports the number of words, lines, characters and non-space characters in it. Authors=Paolo Maggi ;Jorge Alberto Torres Copyright=Copyright © 2002-2005 Paolo Maggi -- cgit v1.2.1