From d19b62785293db5999bb14b6ebb611aa76a7253a Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Mon, 4 Nov 2019 17:37:08 +0800 Subject: migrate from intltool to gettext --- data/Makefile.am | 7 ++++--- data/atril.appdata.xml.in | 6 +++--- data/atril.desktop.in.in | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index c6606d01..de20e8cc 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -21,13 +21,13 @@ ui_DATA = \ # Desktop file # -@INTLTOOL_DESKTOP_RULE@ - DESKTOP_IN_FILES= atril.desktop.in.in DESKTOP_FILES= $(DESKTOP_IN_FILES:.desktop.in.in=.desktop) desktopdir = $(datadir)/applications desktop_DATA = $(DESKTOP_FILES) +$(desktop_DATA): $(DESKTOP_IN_FILES) + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ # # DBus servide file @@ -44,10 +44,11 @@ endif # # App data file # -@INTLTOOL_XML_NOMERGE_RULE@ appdatadir = $(datadir)/metainfo appdata_in_files = atril.appdata.xml.in appdata_DATA = $(appdata_in_files:.xml.in=.xml) +$(appdata_DATA): $(appdata_in_files) + $(AM_V_GEN) $(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ # # GSettings schema diff --git a/data/atril.appdata.xml.in b/data/atril.appdata.xml.in index 3d5b56ff..c54aee98 100644 --- a/data/atril.appdata.xml.in +++ b/data/atril.appdata.xml.in @@ -5,8 +5,8 @@ CC0-1.0 GPL-2.0+ Atril Document Viewer - <_summary>A Document Viewer for the MATE desktop environment - <_description> + A Document Viewer for the MATE desktop environment +

Atril is a simple multi-page document viewer. It can display and print PostScript (PS), Encapsulated PostScript (EPS), DJVU, DVI, @@ -20,7 +20,7 @@ If you would like to know more about MATE and Atril, please visit the project's home page.

- +
diff --git a/data/atril.desktop.in.in b/data/atril.desktop.in.in index 0f7fd7b3..e0b85dd8 100644 --- a/data/atril.desktop.in.in +++ b/data/atril.desktop.in.in @@ -1,7 +1,7 @@ [Desktop Entry] -_Name=Atril Document Viewer -_GenericName=Document Viewer -_Comment=View multi-page documents +Name=Atril Document Viewer +GenericName=Document Viewer +Comment=View multi-page documents TryExec=atril Exec=atril %U StartupNotify=true -- cgit v1.2.1