Add the ability to set a translate="no" property on any element that
uses the common properties attributes. This also adds the ability to set rules in the <info> element to select types of elements that should not be translated. Non-translated text does not appear in PO files and is not seen by translators, but is included verbatim in the final translated output document. The current use case for this is to prevent the PGP keys from being translated, which makes no sense and introduces duplication. This work was made possible with assistance by Shaun McCance at the 2017 Open Help Conference. Sponsored by: iXsystems
This commit is contained in:
parent
4f15907da5
commit
b90abbc81c
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=50686
1 changed files with 19 additions and 2 deletions
|
@ -31,6 +31,8 @@
|
|||
audience CDATA #IMPLIED
|
||||
condition CDATA #IMPLIED
|
||||
conformance CDATA #IMPLIED
|
||||
xmlns:its CDATA #FIXED 'http://www.w3.org/2005/11/its'
|
||||
its:translate (yes|no) #IMPLIED
|
||||
os CDATA #IMPLIED
|
||||
revision CDATA #IMPLIED
|
||||
security CDATA #IMPLIED
|
||||
|
@ -48,7 +50,7 @@
|
|||
|
||||
<!ENTITY % db.common.linking.attributes "
|
||||
linkend IDREF #IMPLIED
|
||||
xmlns:xlink CDATA #FIXED 'http://www.w3.org/1999/xlink'
|
||||
xmlns:xlink CDATA #FIXED 'http://www.w3.org/1999/xlink'
|
||||
xlink:href CDATA #IMPLIED
|
||||
xlink:type CDATA #IMPLIED
|
||||
xlink:role CDATA #IMPLIED
|
||||
|
@ -95,7 +97,22 @@
|
|||
|
||||
>
|
||||
|
||||
<!ELEMENT info ((title|titleabbrev|subtitle)*|(abstract|address|artpagenums|author|authorgroup|authorinitials|bibliocoverage|biblioid|bibliosource|collab|confgroup|contractsponsor|contractnum|copyright|cover|date|edition|editor|issuenum|keywordset|legalnotice|mediaobject|org|orgname|othercredit|pagenums|printhistory|pubdate|publisher|publishername|releaseinfo|revhistory|seriesvolnums|subjectset|volumenum|annotation|extendedlink|bibliomisc|bibliomset|bibliorelation|biblioset|itermset|productname|productnumber)*)*>
|
||||
<!ELEMENT its:translateRule EMPTY>
|
||||
|
||||
<!ATTLIST its:translateRule
|
||||
translate CDATA #IMPLIED
|
||||
selector CDATA #IMPLIED
|
||||
>
|
||||
|
||||
<!ELEMENT its:rules ((its:translateRule)*)>
|
||||
|
||||
<!ATTLIST its:rules
|
||||
xmlns:its CDATA #FIXED "http://www.w3.org/2005/11/its"
|
||||
xmlns:db CDATA #FIXED "http://docbook.org/ns/docbook"
|
||||
version CDATA #IMPLIED
|
||||
>
|
||||
|
||||
<!ELEMENT info ((title|titleabbrev|subtitle)*|(abstract|address|artpagenums|author|authorgroup|authorinitials|bibliocoverage|biblioid|bibliosource|collab|confgroup|contractsponsor|contractnum|copyright|cover|date|edition|editor|issuenum|keywordset|legalnotice|mediaobject|org|orgname|othercredit|pagenums|printhistory|pubdate|publisher|publishername|releaseinfo|revhistory|seriesvolnums|subjectset|volumenum|annotation|extendedlink|bibliomisc|bibliomset|bibliorelation|biblioset|itermset|its:rules|productname|productnumber)*)*>
|
||||
|
||||
<!ATTLIST info
|
||||
xmlns CDATA #FIXED "http://docbook.org/ns/docbook"
|
||||
|
|
Loading…
Reference in a new issue