[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Change Label text of Chapter in PDF Bookmarks
Dne 21.2.2017 v 10:12 Peter Fleck napsal(a): > Hi, > > I have a customization that changes the "Chapter" label to "Lesson" > using the below: > > <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> > <l:l10n language="en"> > <l:gentext key="Chapter" text="Lesson" /> > <l:gentext key="chapter" text="Lesson" /> > </l:l10n> > </l:i18n> > > This works fine for the content of the PDF etc. but it stays as > "Chapter" in the PDF Bookmarks. > > Is it possible to change in the PDF as well as the body? Of course, you just need to customize the context-specific templates as well, like this: <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"> <l:l10n language="en"> <l:gentext key="Chapter" text="Lesson" /> <l:gentext key="chapter" text="Lesson" /> <l:context name="title"> <l:template name="chapter" text="Lesson %n. %t" /> </l:context> ... </l:l10n> </l:i18n> See the default L10N file for complete list of contexts which you need to customize. Regards, Martin Doucha
Attachment:
signature.asc
Description: OpenPGP digital signature
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]