OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook] Translate words in html files.

On 17-02-2015 13:46, Michael.Urban@jpl.nasa.gov wrote:
Your message dated: Tue, 17 Feb 2015 12:45:42 -0200

Which document I need to edit to change the words that are generated in
html format?

I don't know the details of the Docbook structure. I'm just a user.

For example, I would like to produce html documents in Esperanto, then I
would like to change:

*Table of Contents ->  Indekso
I looked into doing this some years ago but could not get a consensus
from Esperantists on best translations.  Anyway, I think you want to add
a file, eo.xml, to the stylesheet's 'common/' directory, and add a
suitable line to l10n.xml

(Is 'indekso' the right word for 'Table of Contents'?  Isn't 'Enhavoj'
better?  'Next' could better be 'sekva' or even 'sekve')

Hi Michael and Bob

I discovered that there is already an eo.xml file in the directory:

But when I put in the header of the source text (hackakvoj.xml) the <article lang = "eo"> the following error appears:

$ jw hackakvoj.xml
Using catalogs: /etc/sgml/catalog
Using stylesheet: /usr/share/docbook-utils/docbook-utils.dsl#html
Working on: /home/nei/c2o/fontes_xml/eo/akvo/hackakvoj/hackakvoj.xml
openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:280:10:E: L10N ERROR: generate-toc-in-front openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:425:12:E: L10N ERROR: gentext-intra-label-sep openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:472:12:E: L10N ERROR: gentext-label-title-sep openjade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/../common/dbl10n.dsl:425:12:E: L10N ERROR: gentext-intra-label-sep

Should I change in the header of  source file the line?

Any tip?


Source file (hackakvoj.xml):

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"

<article lang="eo">

<title>Water - AKVO - Integrada Rigardo</title>
<pubdate>Januaro 2015</pubdate>

<title>Sugestoj estas bonvena!</title>
<imagedata fileref="bildoj/email_graf.png"/>

<title>Akvo - kio estas?</title>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]