Replace intltool with gettext tools

The build now requires gettext v0.19.7 or above.

Removed obsolete files:
  * gramps.applications
  * gramps.keys
  * gramps.mime

Created ITS rules for holidays.xml and tips.xml files.

Included ITS files for shared-mime-info from a gettext v0.20.2
installation.
This commit is contained in:
Nick Hall
2020-08-21 22:27:23 +01:00
parent 3ca82e2ebc
commit 60f1866292
20 changed files with 303 additions and 670 deletions

6
po/its/holidays.its Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule selector="//country/@name" translate="yes"/>
<its:translateRule selector="//country[@name='Jewish Holidays']/date/@name"
translate="yes"/>
</its:rules>

4
po/its/holidays.loc Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="Holidays" pattern="holidays.xml" target="holidays.its"/>
</locatingRules>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
xmlns:gt="https://www.gnu.org/s/gettext/ns/its/extensions/1.0"
xmlns:mi="http://www.freedesktop.org/standards/shared-mime-info"
version="2.0">
<its:translateRule translate="yes" selector="//mi:comment"/>
<its:translateRule translate="no" selector="//mi:expanded-acronym"/>
<its:translateRule translate="no" selector="//mi:acronym"/>
</its:rules>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="shared-mime-info" pattern="*.xml">
<documentRule localName="mime-info" target="shared-mime-info.its"/>
</locatingRule>
</locatingRules>

5
po/its/tips.its Normal file
View File

@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:withinTextRule selector="//tip/*" withinText="yes"/>
<its:translateRule selector="//tip" translate="yes"/>
</its:rules>

4
po/its/tips.loc Normal file
View File

@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="Tips" pattern="tips.xml" target="tips.its"/>
</locatingRules>