forked from gramps-project/gramps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gramps-project#1657 from Alexander-Wilms/patch-1
- Loading branch information
Showing
5 changed files
with
82 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |