Commit b2c54ed2 authored by Claude Paroz's avatar Claude Paroz

Refs #149 - Ship our own metainfo.its to avoid release note translations

parent d9048695
Pipeline #88471 passed with stage
in 6 minutes and 5 seconds
......@@ -193,9 +193,11 @@ GETTEXT_ITS_DATA = {
os.path.join('gettext', 'its', 'gnome-keybindings.loc'),
],
'polkit': [os.path.join('data', 'polkit.its'), os.path.join('data', 'polkit.loc')],
'appstream': [
os.path.join('data', 'its', 'metainfo.its'),
os.path.join('data', 'its', 'metainfo.loc'),
# Copy of https://github.com/ximion/appstream/tree/master/data/its (2019-06-15)
# minus the release/description line (#149).
'damned-lies': [
os.path.join('data', 'metainfo.its'),
os.path.join('data', 'metainfo.loc'),
],
}
......
<?xml version="1.0"?>
<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/screenshots/screenshot/caption |
/component/agreement/agreement_section/name |
/component/agreement/agreement_section/description"
translate="yes"/>
<its:translateRule selector="/component/name[@translatable = 'no']"
translate="no"/>
<its:translateRule selector="/component/developer_name[@translatable = 'no']"
translate="no"/>
</its:rules>
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="MetaInfo" pattern="*.appdata.xml">
<documentRule localName="component" target="metainfo.its"/>
</locatingRule>
<locatingRule name="MetaInfo" pattern="*.metainfo.xml">
<documentRule localName="component" target="metainfo.its"/>
</locatingRule>
</locatingRules>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment