XML technologies / DocBook / The DocBook XSL stylesheets / Changing localization / Changing the default language

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

If no language is specified in a DocBook document, English is selected automatically. To change this behaviour, use the parameter l10n.gentext.default.language:

xsltproc --stringparam l10n.gentext.default.language "de" ...

The previous example sets the language to German. You can also place this parameter in a customization file.

This approach is useful if you cannot modify the document or if no lang and xml:lang attribute is present. It is only appropriate for documents containing a single language.

  

back to top