
h1. Table of Contents
{toc-zone:location=top|type=list|style=none|outline=false|indent=20px|printable=true}
\\
h3. Changing the direction of the contents in the page to be RTL
# open "\build\docbook-xsl\html\docbook.xsl"
# after the line #116 which contains
{code}
'<xsl:attribute name="alink">#0000FF</xsl:attribute>'
{code}
add this line
{code}
'<xsl:attribute name="dir">rtl</xsl:attribute>'
{code}
\\
-----
\\
h3. Reseting the direction of the '{{<pre>}}' tag to be LTR
# open "\build\docbook-xsl\html\verbatim.xsl"
# on the lines #51, 58, 91 and 111
replace
{code} '<pre class="{name(.)}">' {code}
with
{code} '<pre class="{name(.)}" dir="ltr" >' {code}
\\
-----
\\
h3. Aligning the contents to right:
# open "\html\dbstyle.css"
# add this at the end of the file.
{code} p { text-align: right;} {code}
\\
-----
\\
h3. Translating the generated static words in the docs
what I mean is replacing the words like "Next, index, chapter ..etc" with its
equal words in the language that's you are translating to.
{note:title=Is my language supported?}
check "\build\docbook-xsl\common\" for list of supported translations.
{note}
# open "\manual.xml"
# on line #8 change the value of the attribute "lang" of the tag "book" from "en" to the acronym of the language that you are translating to.
f.e. if you are translating to Arabic(ar), it will be
{code}'<book id="manual" lang="ar">'{code}
# replace the contents of the tags "title" and "edition" with the content's translation.
\\
-----
\\
h3. Fixing the problem of the embeded english words in the content
The problem: when you set the direction of the contents to be RTL and there is english words embeded in the content formated like "{{$name}}" and "{{Zend::dump()}}".
this words will appear in the generated Docs in that way ( "{{name$}}" and "{{()Zend::dump}}".
\\
The solution: when translating write this words in that way ( "{{name$}}" and "{{()Zend::dump}}" ) so when it's displayed in the Docs, it will appear in the right way.
{toc-zone}