Hi.
I noticed that the string "Revision History" remains untranslated in the front page of the TQSD. It seems hardcoded in the xsl files.
$ find . | xargs grep -o 'Revision History' ./docs-common/xsl/main-html.xsl:Revision History ./translation-quick-start-guide/translation-quick-start-el/index.html:Revision History
$ grep 'Revision History' docs-common/xsl/main-html.xsl <a href="{concat('rv-',$id,$html.ext)}">Revision History</a>
-Dim
On Sun, 2006-07-02 at 13:43 +0100, Dimitris Glezos wrote:
Hi.
I noticed that the string "Revision History" remains untranslated in the front page of the TQSD. It seems hardcoded in the xsl files.
$ find . | xargs grep -o 'Revision History' ./docs-common/xsl/main-html.xsl:Revision History ./translation-quick-start-guide/translation-quick-start-el/index.html:Revision History
$ grep 'Revision History' docs-common/xsl/main-html.xsl <a href="{concat('rv-',$id,$html.ext)}">Revision History</a>
Hi Dimitris,
You can translate this by editing the rpm-info.xml file directly in the top level of each module. I was idly wondering the other day whether this should move into the ${PRI_LANG} directory for ease of translation. I seem to recall we had it that way when we started and moved it outside for some reason. Maybe we didn't know what we were doing when we did?
O/H Paul W. Frields έγραψε:
On Sun, 2006-07-02 at 13:43 +0100, Dimitris Glezos wrote:
Hi.
I noticed that the string "Revision History" remains untranslated in the front page of the TQSD. It seems hardcoded in the xsl files.
$ find . | xargs grep -o 'Revision History' ./docs-common/xsl/main-html.xsl:Revision History ./translation-quick-start-guide/translation-quick-start-el/index.html:Revision History
$ grep 'Revision History' docs-common/xsl/main-html.xsl <a href="{concat('rv-',$id,$html.ext)}">Revision History</a>
Hi Dimitris,
You can translate this by editing the rpm-info.xml file directly in the top level of each module. I was idly wondering the other day whether this should move into the ${PRI_LANG} directory for ease of translation. I seem to recall we had it that way when we started and moved it outside for some reason. Maybe we didn't know what we were doing when we did?
Paul, are you sure one can translate the actual string "Revision History" from inside rpm-info.xml? Not the revision history contents, just the string "Revision History".
Quoting from my original message:
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>
-Dim
On Fri, 2006-07-07 at 01:43 +0100, Dimitris Glezos wrote:
O/H Paul W. Frields έγραψε:
On Sun, 2006-07-02 at 13:43 +0100, Dimitris Glezos wrote:
Hi.
I noticed that the string "Revision History" remains untranslated in the front page of the TQSD. It seems hardcoded in the xsl files.
$ find . | xargs grep -o 'Revision History' ./docs-common/xsl/main-html.xsl:Revision History ./translation-quick-start-guide/translation-quick-start-el/index.html:Revision History
$ grep 'Revision History' docs-common/xsl/main-html.xsl <a href="{concat('rv-',$id,$html.ext)}">Revision History</a>
Hi Dimitris,
You can translate this by editing the rpm-info.xml file directly in the top level of each module. I was idly wondering the other day whether this should move into the ${PRI_LANG} directory for ease of translation. I seem to recall we had it that way when we started and moved it outside for some reason. Maybe we didn't know what we were doing when we did?
Paul, are you sure one can translate the actual string "Revision History" from inside rpm-info.xml? Not the revision history contents, just the string "Revision History".
Quoting from my original message:
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!
Uttered "Paul W. Frields" stickster@gmail.com, 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 ;-)
On Fri, 2006-07-07 at 23:38 -0700, Tommy Reynolds wrote:
Uttered "Paul W. Frields" stickster@gmail.com, 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.
It is, although it's more clever than said mule too. :-) Turns out I found the simple, elegant and beautiful approach by digging into the docbook-style-xsl package a bit. No translation required for that string now, it's included as part of those stylesheets "out of the box."
Uttered "Paul W. Frields" stickster@gmail.com, spake thus:
It is, although it's more clever than said mule too. :-) Turns out I found the simple, elegant and beautiful approach by digging into the docbook-style-xsl package a bit. No translation required for that string now, it's included as part of those stylesheets "out of the box."
Excellent catch! Wish I'd done that...