From faae3f026695ff28d92417880a0fd397adf5747e Mon Sep 17 00:00:00 2001 From: Patrick Griffis Date: Sat, 26 Dec 2015 22:28:25 -0500 Subject: Move appdata to data and translate --- configure.ac | 1 + data/Makefile.am | 7 ++++++- data/transmission-remote-gtk.appdata.xml.in | 26 ++++++++++++++++++++++++++ po/POTFILES.in | 1 + src/Makefile.am | 7 +------ src/transmission-remote-gtk.appdata.xml | 26 -------------------------- 6 files changed, 35 insertions(+), 33 deletions(-) create mode 100644 data/transmission-remote-gtk.appdata.xml.in delete mode 100644 src/transmission-remote-gtk.appdata.xml diff --git a/configure.ac b/configure.ac index 4d9606b..07e59df 100644 --- a/configure.ac +++ b/configure.ac @@ -40,6 +40,7 @@ LT_INIT IT_PROG_INTLTOOL([0.50.1]) PKG_PROG_PKG_CONFIG([0.28]) DESKTOP_FILE +APPSTREAM_XML GETTEXT_PACKAGE=AC_PACKAGE_NAME AC_SUBST(GETTEXT_PACKAGE) diff --git a/data/Makefile.am b/data/Makefile.am index 50ece12..740e28e 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -5,4 +5,9 @@ desktop_FILES = $(desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ @DESKTOP_FILE_RULES@ -EXTRA_DIST = $(desktop_in_files) +appdata_in_files = transmission-remote-gtk.appdata.xml.in +appdata_XML = $(appdata_in_files:.xml.in=.xml) +@INTLTOOL_XML_RULE@ +@APPSTREAM_XML_RULES@ + +EXTRA_DIST = $(desktop_in_files) $(appdata_in_files) diff --git a/data/transmission-remote-gtk.appdata.xml.in b/data/transmission-remote-gtk.appdata.xml.in new file mode 100644 index 0000000..eebe9b2 --- /dev/null +++ b/data/transmission-remote-gtk.appdata.xml.in @@ -0,0 +1,26 @@ + + + + transmission-remote-gtk.desktop + CC0-1.0 + GPL-2.0 + Transmission Remote + Remotely manage the Transmission BitTorrent client + + <_p> + transmission-remote-gtk allows you to remotely manage the Transmission BitTorrent client using its RPC interface. + + <_p>Features +
    + <_li>Remotely add (file/url), start, stop, remove, remove and delete, verify, reannounce torrents. + <_li>Works as a .torrent handler (eg. from a web browser). + <_li>Set torrent properties such as speed, seed, peer limits, file priorities, add/edit/remove trackers. + <_li>Change remote settings like global limits, download directory, and connectivity preferences. +
+
+ + http://eth0.org.uk/~alan/transmission-remote-gtk-1.1.1.png + + http://code.google.com/p/transmission-remote-gtk/ + GNOME +
diff --git a/po/POTFILES.in b/po/POTFILES.in index 6bd2a6e..8440abd 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -1,4 +1,5 @@ [type: gettext/ini]data/transmission-remote-gtk.desktop.in +[type: gettext/xml]data/transmission-remote-gtk.appdata.xml.in src/bencode.c src/hig.c src/json.c diff --git a/src/Makefile.am b/src/Makefile.am index 43306fa..e8647ab 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -18,15 +18,10 @@ # if !WIN32 -EXTRA_DIST = transmission-remote-gtk.pod transmission-remote-gtk.appdata.xml +EXTRA_DIST = transmission-remote-gtk.pod CLEANFILES = transmission-remote-gtk.1 man_MANS = transmission-remote-gtk.1 - - - -appdatadir = $(datadir)/appdata -appdata_DATA = transmission-remote-gtk.appdata.xml endif bin_PROGRAMS = transmission-remote-gtk diff --git a/src/transmission-remote-gtk.appdata.xml b/src/transmission-remote-gtk.appdata.xml deleted file mode 100644 index f1333eb..0000000 --- a/src/transmission-remote-gtk.appdata.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - transmission-remote-gtk.desktop - CC0-1.0 - GPL-2.0 - Transmission Remote - Remotely manage the Transmission BitTorrent client - -

- transmission-remote-gtk allows you to remotely manage the Transmission BitTorrent client using its RPC interface. -

-

Features

-
    -
  • Remotely add (file/url), start, stop, remove, remove and delete, verify, reannounce torrents.
  • -
  • Works as a .torrent handler (eg. from a web browser).
  • -
  • Set torrent properties such as speed, seed, peer limits, file priorities, add/edit/remove trackers.
  • -
  • Change remote settings like global limits, download directory, and connectivity preferences.
  • -
-
- - http://eth0.org.uk/~alan/transmission-remote-gtk-1.1.1.png - - http://code.google.com/p/transmission-remote-gtk/ - GNOME -
-- cgit v1.2.3