From 8f84b07cb85562c442ef1e767e99d6efab182e56 Mon Sep 17 00:00:00 2001 From: Wu Xiaotian Date: Thu, 14 Nov 2019 15:31:18 +0800 Subject: migrate from intltool to gettext --- data/Makefile.am | 9 +++++---- data/engrampa.appdata.xml.in | 6 +++--- data/engrampa.desktop.in.in | 9 ++++++--- 3 files changed, 14 insertions(+), 10 deletions(-) (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index 7d6017e..f52df44 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -4,8 +4,8 @@ desktopdir = $(datadir)/applications desktop_in_in_files = engrampa.desktop.in.in desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in) desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) - -@INTLTOOL_DESKTOP_RULE@ +$(desktop_DATA): $(desktop_in_files) + $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ matchdir = $(datadir)/engrampa match_DATA = packages.match @@ -16,10 +16,11 @@ service_DATA = $(service_in_files:.service.in=.service) $(service_DATA): $(service_in_files) Makefile $(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@ -@INTLTOOL_XML_RULE@ appdatadir = $(datadir)/metainfo appdata_in_files = engrampa.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 $@ gsettingsschema_in_files = org.mate.engrampa.gschema.xml.in gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml) @@ -65,7 +66,7 @@ CLEANFILES = \ engrampa.appdata.xml \ $(NULL) -dist-hook: +dist-hook: cd $(distdir); rm -f $(CLEANFILES) -include $(top_srcdir)/git.mk diff --git a/data/engrampa.appdata.xml.in b/data/engrampa.appdata.xml.in index a624adb..d4f2967 100644 --- a/data/engrampa.appdata.xml.in +++ b/data/engrampa.appdata.xml.in @@ -5,8 +5,8 @@ CC0-1.0 GPL-2.0+ Engrampa Archive Manager - <_summary>An Archive Manager for the MATE desktop environment - <_description> + An Archive Manager for the MATE desktop environment +

Engrampa is an archive manager for the MATE environment. It allows you to create and modify archives, view the contents of an archive, view a @@ -48,7 +48,7 @@ If you would like to know more about MATE and Engrampa, please visit the project's home page.

- +
diff --git a/data/engrampa.desktop.in.in b/data/engrampa.desktop.in.in index 2ead7e3..82fc57d 100644 --- a/data/engrampa.desktop.in.in +++ b/data/engrampa.desktop.in.in @@ -1,15 +1,18 @@ [Desktop Entry] -_Name=Engrampa Archive Manager -_GenericName=Archive Manager -_Comment=Create and modify an archive +Name=Engrampa Archive Manager +GenericName=Archive Manager +Comment=Create and modify an archive TryExec=engrampa Exec=engrampa %U StartupNotify=true Terminal=false Type=Application +# Translators: Do NOT translate or transliterate this text (this is an icon file name)! Icon=engrampa +# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Categories=GTK;Utility;Archiving;Compression; MimeType=application/x-7z-compressed;application/x-7z-compressed-tar;application/x-ace;application/x-alz;application/x-arj;application/x-brotli;application/x-brotli-compressed-tar;application/x-bzip;application/x-bzip-compressed-tar;application/x-bzip1;application/x-bzip1-compressed-tar;application/x-cabinet;application/x-cbr;application/x-cbz;application/x-cd-image;application/x-compress;application/x-compressed-tar;application/x-cpio;application/vnd.debian.binary-package;application/x-ear;application/x-ms-dos-executable;application/x-gtar;application/x-gzip;application/x-gzpostscript;application/x-java-archive;application/x-lha;application/x-lzh-compressed;application/x-lrzip;application/x-lrzip-compressed-tar;application/x-lzip;application/x-lzip-compressed-tar;application/x-lzma;application/x-lzma-compressed-tar;application/x-lzop;application/x-lzop-compressed-tar;application/x-ms-wim;application/x-rar;application/x-rar-compressed;application/x-rpm;application/x-rzip;application/x-tar;application/x-tarz;application/x-stuffit;application/x-war;application/x-xz;application/x-xz-compressed-tar;application/x-zip;application/x-zip-compressed;application/x-zoo;application/x-zstd;application/x-zstd-compressed-tar;application/zip;application/x-archive;application/vnd.ms-cab-compressed; +# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon! Keywords=MATE;archive;manager;compression; X-MATE-DocPath=engrampa/engrampa.xml X-MATE-Bugzilla-Bugzilla=MATE -- cgit v1.2.1