Bug 69210

Summary: Please provide AppData descriptions for applications
Product: LibreOffice Reporter: Richard Hughes <richard>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED    
Severity: enhancement CC: caolan.mcnamara, dtardon, michael.stahl, robinson.libreoffice, samuel.mehrbrodt, timar74, vmiklos
Priority: medium Keywords: difficultyInteresting, easyHack, skillScript
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard: target:4.2.0
Crash report or crash signature: Regression By:

Description Richard Hughes 2013-09-11 08:09:26 UTC
I'm the developer for PackageKit and gnome-software. The community has already written a set of LibreOffice AppData files for Fedora, would you be interested to including them upstream? This will allow us to "feature" LibreOffice on the front page in the future.

See http://people.freedesktop.org/~hughsient/appdata/ for more details about AppStream and AppData. So far hundred of upstream projects have included AppData files in their tarballs.

The files are here:
https://raw.github.com/hughsie/fedora-appstream/master/appdata-extra/libreoffice-writer.appdata.xml
https://raw.github.com/hughsie/fedora-appstream/master/appdata-extra/libreoffice-base.appdata.xml
https://raw.github.com/hughsie/fedora-appstream/master/appdata-extra/libreoffice-calc.appdata.xml
https://raw.github.com/hughsie/fedora-appstream/master/appdata-extra/libreoffice-draw.appdata.xml
https://raw.github.com/hughsie/fedora-appstream/master/appdata-extra/libreoffice-impress.appdata.xml

But I'm sure these need checking and perhaps needs some more filling in. If you've got any questions, please don't hesitate to ask.
Comment 1 Miklos Vajna 2013-09-11 08:17:20 UTC
The first link describes how these appdata xml files should be installed, so the task is mostly about adding these files to sysui, where existing desktop files are, and tweaking bin/distro-install-desktop-integration to install those files to the required location.
Comment 2 Caolán McNamara 2013-09-11 10:29:34 UTC
caolanm->dtardon: could you have a look at this ?
Comment 3 Michael Stahl (allotropia) 2013-10-01 12:34:17 UTC
so i've pushed the app-data files now.

they are added to the desktop-integration RPM/DEB in sysui,
with names similar to the other stuff e.g.
  "/usr/share/appdata/libreoffice4.2-writer.appdata.xml"

of course that doesn't help the intended use-case
for distro packages, needs adapting those distro spec files too.

i wonder, is it possible to display translations of these,
and if so what should the format look like?

let's see... http://people.freedesktop.org/~hughsient/appdata/

> How do I translate this data?

> If you ship an .xml.in file rather than an .xml file, you can use intltool to > translate the data. You can also use itstool to translate the data, and we've > provided a appdata.its file for convenience. 

that would require some more work then, and input from Andras
about the translation tooling...
Comment 4 Commit Notification 2013-10-01 12:43:37 UTC
Richard Hughes committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=ceb9e098fc6efcfb7e024057bfa46aa06a295d00

fdo#69210: sysui: add some AppStream AppData files



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 5 Commit Notification 2013-10-01 12:43:56 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=9663478df85655a3581bc97193a0ef92df1eae20

fdo#69210: sysui: add AppData to system-integration RPM/DEB



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 6 Andras Timar 2013-10-02 13:31:59 UTC
(In reply to comment #3)
> that would require some more work then, and input from Andras
> about the translation tooling...

We don't use gettext and intltool, but I can write an extractor/merger in l10ntools easily. How the localized xml files should be named?
Comment 7 Alexander Wilms 2013-10-04 13:55:11 UTC
It'd be good if you could add copyright notices to the file, see http://blogs.gnome.org/hughsie/2013/10/01/copyright-in-appdata-files/
Comment 8 Robinson Tryon (qubit) 2015-12-16 00:40:38 UTC
Migrating Whiteboard tags to Keywords: (EasyHack DifficultyInteresting SkillScript )
[NinjaEdit]