Re: String "Revision History" untranslatable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Uttered "Paul W. Frields" <stickster@xxxxxxxxx>, spake thus:

> >  > It seems hardcoded in the xsl files.
> >  > $ grep 'Revision History' docs-common/xsl/main-html.xsl
> >  >    <a href="{concat('rv-',$id,$html.ext)}">Revision History</a>
> 
> Sorry Dim, I misunderstood your original message (I took "string" to
> mean "element" by not paying close enough attention).  In fact, I am
> sure that one CANNOT translate that string, for the exact reason you
> provided.  If you have a solution in mind, I'm all ears!

Paul, here's an idea and it's ugly as the south end of a northbound
mule.

1) Add a "revhist='gobble gobble'" attribute to the "rpm-info.dtd"
   file.  This gets the "Revision History" string into a file that
   the translators can work their .POT magic on.

2) Rename the current "main-html.xsl" to "main-html.xsl.in"

3) Edit "main-html.xsl.in" to replace the "Revision History" strings
   with the contents of an <xsl:param>.

3) Create a new XSLT file that gets the "revhist" attribute and
   rewrite the <xsl:param>, thus generating the temporary
   "main-html.xsl" file.

4) Add "${RM} main-html.xsl" as a new "clean:" action.

5) Nothing else needs to be changed.
   
(yes, I'm up way too late ;-)

-- 
I'm already an anomaly, I shall soon be an anachronism, and I have
every intention of dying an abuse!

-- 

fedora-docs-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-docs-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux