Skip to content

Commit

Permalink
Merge pull request gramps-project#1657 from Alexander-Wilms/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Hall committed Mar 21, 2024
2 parents 41fd43c + 533101c commit 3f13804
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 24 deletions.
14 changes: 13 additions & 1 deletion data/org.gramps_project.Gramps.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,41 @@
<p>All of your research is kept organized, searchable and as precise as you need it to be.</p>
</description>

<developer_name>Gramps Development Team</developer_name>
<developer id="org.gramps_project">
<name>Gramps Development Team</name>
</developer>
<project_license>GPL-2.0-or-later</project_license>
<metadata_license>CC0-1.0</metadata_license>

<url type="homepage">https://gramps-project.org/</url>
<url type="bugtracker">https://gramps-project.org/bugs/</url>
<url type="faq">https://gramps-project.org/wiki/index.php?title=FAQ</url>
<url type="help">https://gramps-project.org/wiki/index.php?title=Main_page</url>
<url type="donation">https://gramps-project.org/blog/contribute/</url>
<url type="translate">https://www.gramps-project.org/wiki/index.php?title=Translating_Gramps</url>
<url type="contact">https://gramps-project.org/blog/contact/</url>
<url type="vcs-browser">https://github.com/gramps-project/gramps</url>
<url type="contribute">https://gramps-project.org/blog/contribute/</url>

<screenshots>
<screenshot>
<caption>Pedigree</caption>
<image width="1226" height="740">https://www.gramps-project.org/wiki/images/5/5f/AppData1.png</image>
</screenshot>
<screenshot>
<caption>Descendant Fan</caption>
<image width="1226" height="740">https://www.gramps-project.org/wiki/images/6/68/AppData2.png</image>
</screenshot>
<screenshot type="default">
<caption>People</caption>
<image width="1226" height="740">https://www.gramps-project.org/wiki/images/e/e9/AppData3.png</image>
</screenshot>
<screenshot>
<caption>Relationships</caption>
<image width="1226" height="740">https://www.gramps-project.org/wiki/images/6/68/AppData4.png</image>
</screenshot>
<screenshot>
<caption>Person</caption>
<image width="1226" height="740">https://www.gramps-project.org/wiki/images/5/50/AppData5.png</image>
</screenshot>
</screenshots>
Expand Down
14 changes: 0 additions & 14 deletions po/its/appdata.its

This file was deleted.

9 changes: 0 additions & 9 deletions po/its/appdata.loc

This file was deleted.

51 changes: 51 additions & 0 deletions po/its/metainfo.its
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0"?>
<!--
Copyright (C) 2015-2024 Matthias Klumpp <[email protected]>
Copyright (C) 2019 Takao Fujiwara <[email protected]>
SPDX-License-Identifier: FSFAP
-->
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
version="2.0">

<its:translateRule selector="/component" translate="no"/>
<its:translateRule selector="/component/name |
/component/summary |
/component/description |
/component/developer_name |
/component/developer/name |
/component/name_variant_suffix |
/component/keywords/keyword |
/component/screenshots/screenshot/caption |
/component/releases/release/description |
/component/agreement/agreement_section/name |
/component/agreement/agreement_section/description"
translate="yes"/>

<its:withinTextRule withinText="yes" selector="/component//description//em |
/component//description//code"/>

<its:translateRule selector="/component/name[@translate = 'no']"
translate="no"/>
<its:translateRule selector="/component/developer_name[@translate = 'no']"
translate="no"/>
<its:translateRule selector="/component/developer/name[@translate = 'no']"
translate="no"/>
<its:translateRule selector="/component/name_variant_suffix[@translate = 'no']"
translate="no"/>
<its:translateRule selector="/component/keywords/keyword[@translate = 'no']"
translate="no"/>
<its:translateRule selector="/component/releases/release/description[@translate = 'no']"
translate="no"/>
<its:translateRule selector="/component/agreement/agreement_section/name[@translate = 'no'] |
/component/agreement/agreement_section/description[@translate = 'no']"
translate="no"/>

<!-- Release metadata -->
<its:translateRule selector="/releases" translate="no"/>
<its:translateRule selector="/releases/release/description"
translate="yes"/>
<its:translateRule selector="/releases/release/description[@translate = 'no']"
translate="no"/>

</its:rules>
18 changes: 18 additions & 0 deletions po/its/metainfo.loc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!--
Copyright (C) 2015-2024 Matthias Klumpp <[email protected]>
SPDX-License-Identifier: FSFAP
-->
<locatingRules>
<locatingRule name="MetaInfo" pattern="*.metainfo.xml">
<documentRule localName="component" target="metainfo.its"/>
</locatingRule>
<locatingRule name="MetaInfo" pattern="*.appdata.xml">
<documentRule localName="component" target="metainfo.its"/>
</locatingRule>

<locatingRule name="ReleaseData" pattern="*.releases.xml">
<documentRule localName="releases" target="metainfo.its"/>
</locatingRule>
</locatingRules>

0 comments on commit 3f13804

Please sign in to comment.