Hi,
Translation of the files under docs/manual/programs/ into Turkish has
been completed. As you know, these documents are used to generate the
man pages, but currently only in English. I have made some modifications
to generate the man pages in Turkish as well. The man pages in English
and in Turkish generated will be found at the following locations
respectively:
docs/manual/man/
docs/manual/man/tr/
Since, according to docs/manual/style/lang-targets.xml, only English and
Turkish are the target languages for man page generation, I have not
made any modifications for other languages.
The related patches are attached here. I will commit these changes to
the 2.0.x, 2.2.x and trunk branches, if that is OK with you.
The man pages need to be installed in the filesystem under the directory
PREFIX/share/man/tr/. The corresponding installation procedure of the
server needs to be changed accordingly, which is beyond my capability.
Best regards,
Nilgün
Index: build.xml
===================================================================
--- build.xml (revision 669846)
+++ build.xml (working copy)
@@ -445,6 +445,14 @@
<attribute name="files" />
<sequential>
+ <if><equals arg1="@{lang}" arg2="en" />
+ <then>
+ <property name="mandir" location="../../man" />
+ </then>
+ <else>
+ <property name="mandir" location="../../man/@{lang}" />
+ </else>
+ </if>
<for param="srcfile">
<path>
<fileset dir="../programs/" includes="@{files}" />
@@ -458,7 +466,7 @@
<dependset>
<srcfileset dir="$...@{srcfile}.dirname}"
includes="$...@{srcfile}.basename}.xml.meta" />
- <targetfileset dir="../../man/"
+ <targetfileset dir="${mandir}/"
includes="$...@{srcfile}.basename}.@{section}" />
</dependset>
@@ -466,17 +474,17 @@
<not>
<uptodate
srcfile="@{srcfile}"
- targetfile="../../man/$...@{srcfile}.basename}.@{section}"
+ targetfile="${mandir}/$...@{srcfile}.basename}.@{section}"
/>
</not>
<then>
<if>
<available
- file="../../man/$...@{srcfile}.basename}.@{section}.tmp"
+ file="${mandir}/$...@{srcfile}.basename}.@{section}.tmp"
/>
<then>
- <copy file="../../man/$...@{srcfile}.basename}.@{section}.tmp"
- tofile="../../man/$...@{srcfile}.basename}.@{section}.old"
+ <copy file="${mandir}/$...@{srcfile}.basename}.@{section}.tmp"
+ tofile="${mandir}/$...@{srcfile}.basename}.@{section}.old"
preservelastmodified="true" overwrite="true" />
<!-- sample line: -->
@@ -484,7 +492,7 @@
<!-- we replace ^^^^^^^^^^ the date with @@date@@ -->
<!-- -->
<replaceregexp
- file="../../man/$...@{srcfile}.basename}.@{section}.tmp"
+ file="${mandir}/$...@{srcfile}.basename}.@{section}.tmp"
match='^(\.TH\s+"[^"]*"\s+\d\s+)"[^"]+"'
replace='\1"@@date@@"'
byline="true"
@@ -492,7 +500,7 @@
</then></if>
<xslt in="@{srcfile}"
- out="../../man/$...@{srcfile}.basename}.@{section}"
+ out="${mandir}/$...@{srcfile}.basename}.@{section}"
style="../style/_generated/m...@{lang}.xsl">
<xmlcatalog refid="w3c-catalog" />
<param name="section" expression="@{section}" />
@@ -502,21 +510,21 @@
<if>
<and>
<available
- file="../../man/$...@{srcfile}.basename}.@{section}.old"
+ file="${mandir}/$...@{srcfile}.basename}.@{section}.old"
/>
<filesmatch
- file1="../../man/$...@{srcfile}.basename}.@{section}.tmp"
- file2="../../man/$...@{srcfile}.basename}.@{section}"
+ file1="${mandir}/$...@{srcfile}.basename}.@{section}.tmp"
+ file2="${mandir}/$...@{srcfile}.basename}.@{section}"
/>
</and>
<then>
- <copy file="../../man/$...@{srcfile}.basename}.@{section}.old"
- tofile="../../man/$...@{srcfile}.basename}.@{section}"
+ <copy file="${mandir}/$...@{srcfile}.basename}.@{section}.old"
+ tofile="${mandir}/$...@{srcfile}.basename}.@{section}"
preservelastmodified="false" overwrite="true" />
</then>
<else>
<replaceregexp
- file="../../man/$...@{srcfile}.basename}.@{section}"
+ file="${mandir}/$...@{srcfile}.basename}.@{section}"
match="@@date@@"
replace="${nroff.date}"
/>
Index: lang/en.xml
===================================================================
--- lang/en.xml (revision 739989)
+++ lang/en.xml (working copy)
@@ -67,6 +67,10 @@
<!-- Used in manualpage -->
<message id="relatedmodules">Related Modules</message>
<message id="relateddirectives">Related Directives</message>
+ <message id="lowercase">abcdefghijklmnopqrstuvwxyz</message>
+ <message id="uppercase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</message>
+ <message id="name-section">NAME</message>
+ <message id="hyphenation"></message>
<!-- Used in description box for directives -->
<message id="syntax">Syntax</message>
Index: lang/tr.xml
===================================================================
--- lang/tr.xml (revision 739989)
+++ lang/tr.xml (working copy)
@@ -69,6 +69,10 @@
<!-- Used in manualpage -->
<message id="relatedmodules">??lgili Mod??ller</message>
<message id="relateddirectives">??lgili Y??nergeler</message>
+ <message id="lowercase">abc??defg??h??ijklmno??pqrs??tu??vwxyz</message>
+ <message id="uppercase">ABC??DEFG??HI??JKLMNO??PQRS??TU??VWXYZ</message>
+ <message id="name-section">??S??M</message>
+ <message id="hyphenation">.nh</message>
<!-- Used in description box for directives -->
<message id="syntax">S??zdizimi</message>
Index: xsl/nroff.xsl
===================================================================
--- xsl/nroff.xsl (revision 739989)
+++ xsl/nroff.xsl (working copy)
@@ -78,8 +78,8 @@
<xsl:param name="date" />
<!-- Constants used for case translation -->
-<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
-<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
+<xsl:variable name="lowercase" select="$messa...@id='lowercase']" />
+<xsl:variable name="uppercase" select="$messa...@id='uppercase']" />
<!-- ==================================================================== -->
<!-- <manualpage> -->
@@ -127,7 +127,7 @@
<xsl:text>" "</xsl:text>
<!-- productname -->
-<xsl:value-of select="'Apache HTTP Server'" />
+<xsl:value-of select="concat($messa...@id='apache'], ' ', $messa...@id='http-server'])" />
<xsl:text>" "</xsl:text>
<!-- title -->
@@ -148,8 +148,8 @@
<!-- Process heading -->
<!-- ==================================================================== -->
<xsl:template match="manualpage/title">
-&lf;
-<xsl:text>.SH NAME</xsl:text>&lf;
+<xsl:value-of select="$messa...@id='hyphenation']" />&lf;
+<xsl:value-of select="concat('.SH ', $messa...@id='name-section'])" />&lf;
<xsl:variable name="text">
<xsl:call-template name="filter.escape">
<xsl:with-param name="text" select="normalize-space(.)" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]