Next in thread → Next in month →

RE: [docbook-apps] Customizing Generated Text with No Context

From
Mauritz Jeanson <>
Date
2009-11-19T22:17:15+00:00
ID
B8E7E9AF012749BCB2AC5BE57DE788C8@D7MZ171J
Thread
RE: [docbook-apps] Customizing Generated Text with No Context
|  -----Original Message-----
|  From: John Green 
|  
|  However, the text I want to customize doesn't seem to have a 
|  context. I want to customize the "Table of Contents" string 
|  to "Contents". I found the gentext entry for 
|  "TableofContents" in en.xml, and it seems to be outside of 
|  any <l:context> element. 
|  
|  How do I make the code work without specifying a context? I 
|  tried removing the l:context lines, and I tried setting the 
|  l:template name attribute to "", "/", and ".", but nothing 
|  works. How do I do this?


Just use <l:gentext>:

 <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
  <l:l10n language="en">
   <l:gentext key="TableofContents" text="Contents"/>
  </l:l10n>
 </l:i18n>

Mauritz
Next in thread → Next in month →