Add month translation support

Merged from Japanese and English versions

Obtained from: The FreeBSD Russian Documentation Project
This commit is contained in:
Denis Peplin 2004-01-26 11:27:22 +00:00
parent 37d94e2145
commit e1986525e7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=19840
9 changed files with 95 additions and 54 deletions

View file

@ -2,9 +2,9 @@
# The FreeBSD Russian Documentation Project
#
# $FreeBSD$
# $FreeBSDru: frdp/www/ru/Makefile,v 1.31 2004/01/03 06:02:05 andy Exp $
# $FreeBSDru: frdp/www/ru/Makefile,v 1.32 2004/01/22 15:09:46 den Exp $
#
# Original revision: 1.105
# Original revision: 1.106
#
.if exists(Makefile.conf)
@ -100,13 +100,14 @@ webcheck:
index.html: index.xsl ${XML_INCLUDES}\
${XML_NEWS_INCLUDES} ${XML_NEWS_NEWS} ${XML_NEWS_PRESS}\
${XML_MIRRORS} ${XML_ADVISORIES}
${XML_MIRRORS} ${XML_TRANSTABLE} ${XML_ADVISORIES}
${XSLTPROC} ${XSLTPROCOPTS} \
-o $@ \
--param mirrors.xml "'${XML_MIRRORS}'" \
--param advisories.xml "'${XML_ADVISORIES}'" \
--param news.press.xml "'${XML_NEWS_PRESS}'" \
--param news.project.xml "'${XML_NEWS_NEWS}'" \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/index.xsl ${XML_NEWS_NEWS}
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET}

View file

@ -1,6 +1,6 @@
# $FreeBSD$
# $FreeBSDru: frdp/www/ru/news/2001/Makefile,v 1.1 2002/02/15 14:59:38 phantom Exp $
# Original revision: 1.1
# $FreeBSDru: frdp/www/ru/news/2001/Makefile,v 1.2 2004/01/22 15:09:52 den Exp $
# Original revision: 1.2
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -12,8 +12,10 @@
DATA= index.html
CLEANFILES+= index.html
index.html: ../oldnewsflash.xsl news.xml ../includes.xsl ../../includes.xsl
index.html: ../oldnewsflash.xsl news.xml\
../includes.xsl ../../includes.xsl ${XML_TRANSTABLE}
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/../oldnewsflash.xsl ${.CURDIR}/news.xml
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET}

View file

@ -3,9 +3,9 @@
<!--
The FreeBSD Russian Documentation Project
$FreeBSDru: frdp/www/ru/news/2001/news.xml,v 1.11 2003/12/13 08:59:52 andy Exp $
$FreeBSDru: frdp/www/ru/news/2001/news.xml,v 1.13 2004/01/22 15:09:52 den Exp $
Original revision: 1.63
Original revision: 1.64
-->
<!-- Simple schema for FreeBSD Project news.
@ -37,7 +37,7 @@
<name>2001</name>
<month>
<name>äĹËÁÂŇŘ</name>
<name>12</name>
<day>
<name>31</name>
@ -139,7 +139,7 @@
</month>
<month>
<name>îĎŃÂŇŘ</name>
<name>11</name>
<day>
<name>30</name>
@ -177,7 +177,7 @@
<p><a href="mailto:des@FreeBSD.org">Dag-Erling Smørgrav</a>
ÎÁÐÉÓÁÌ ÓÔÁÔØÀ Ï ÔÏÍ, ËÁË ÌÕÞÛÅ <a
href="$base/../doc/en_US.ISO8859-1/articles/problem-reports/article.html">
href="$base/../doc/ru_RU.KOI8-R/articles/problem-reports/article.html">
ÐÉÓÁÔØ ÏÔÞÅÔÙ Ï ÐÒÏÂÌÅÍÁÈ × FreeBSD</a>.</p>
</event>
</day>
@ -264,7 +264,7 @@
</month>
<month>
<name>ďËÔŃÂŇŘ</name>
<name>10</name>
<day>
<name>30</name>
@ -383,7 +383,7 @@
</month>
<month>
<name>óĹÎÔŃÂŇŘ</name>
<name>9</name>
<day>
<name>18</name>
@ -413,7 +413,7 @@
</month>
<month>
<name>á×ÇŐÓÔ</name>
<name>8</name>
<day>
<name>30</name>
@ -529,7 +529,7 @@
</month>
<month>
<name>éŔĚŘ</name>
<name>7</name>
<day>
<name>30</name>
@ -583,7 +583,7 @@
</month>
<month>
<name>éŔÎŘ</name>
<name>6</name>
<day>
<name>21</name>
@ -602,7 +602,7 @@
<p><a href="mailto:john@kozubik.com">John Kozubik</a> ÐÒÅÄÏÓÔÁ×ÉÌ ÎÁÍ
ÓÔÁÔØÀ, ÏÐÉÓÙ×ÁÀÝÕÀ, <a
href="$base/doc/en_US.ISO8859-1/articles/solid-state/index.html">ëÁË
href="$base/doc/ru_RU.KOI8-R/articles/solid-state/index.html">ëÁË
ÉÓÐÏÌØÚÏ×ÁÔØ FreeBSD Ó Ô×ÅÒÄÏÔÅÌØÎÙÍÉ ÎÏÓÉÔÅÌÑÍÉ ÉÎÆÏÒÍÁÃÉÉ</a>.</p>
</event>
</day>
@ -687,7 +687,7 @@
</month>
<month>
<name>íÁĘ</name>
<name>5</name>
<day>
<name>24</name>
@ -727,7 +727,7 @@
</month>
<month>
<name>áĐŇĹĚŘ</name>
<name>4</name>
<day>
<name>27</name>
@ -839,7 +839,7 @@
</month>
<month>
<name>íÁŇÔ</name>
<name>3</name>
<day>
<name>25</name>
@ -902,7 +902,7 @@
</month>
<month>
<name>ćĹ×ŇÁĚŘ</name>
<name>2</name>
<day>
<name>20</name>
@ -933,7 +933,7 @@
</month>
<month>
<name>ńÎ×ÁŇŘ</name>
<name>1</name>
<day>
<name>24</name>

View file

@ -2,9 +2,9 @@
# The FreeBSD Russian Documentation Project
#
# $FreeBSD$
# $FreeBSDru: frdp/www/ru/news/2002/Makefile,v 1.1 2003/09/18 17:59:43 andy Exp $
# $FreeBSDru: frdp/www/ru/news/2002/Makefile,v 1.2 2004/01/22 15:09:54 den Exp $
#
# Original revision: 1.1
# Original revision: 1.2
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -16,8 +16,10 @@
DATA= index.html
CLEANFILES+= index.html
index.html: ../oldnewsflash.xsl news.xml ../includes.xsl ../../includes.xsl
index.html: ../oldnewsflash.xsl news.xml\
../includes.xsl ../../includes.xsl ${XML_TRANSTABLE}
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/../oldnewsflash.xsl ${.CURDIR}/news.xml
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET}

View file

@ -3,9 +3,9 @@
<!--
The FreeBSD Russian Documentation Project
$FreeBSDru: frdp/www/ru/news/2002/news.xml,v 1.2 2003/12/13 09:03:20 andy Exp $
$FreeBSDru: frdp/www/ru/news/2002/news.xml,v 1.3 2004/01/22 15:09:54 den Exp $
Original revision: 1.1
Original revision: 1.2
-->
<!-- Simple schema for FreeBSD Project news.
@ -37,7 +37,7 @@
<name>2002</name>
<month>
<name>îĎŃÂŇŘ</name>
<name>11</name>
<day>
<name>25</name>
@ -122,7 +122,7 @@
</month>
<month>
<name>ďËÔŃÂŇŘ</name>
<name>10</name>
<day>
<name>31</name>
@ -239,7 +239,7 @@
</month>
<month>
<name>óĹÎÔŃÂŇŘ</name>
<name>9</name>
<day>
<name>10</name>
@ -285,7 +285,7 @@
</month>
<month>
<name>á×ÇŐÓÔ</name>
<name>8</name>
<day>
<name>21</name>
@ -382,7 +382,7 @@
</month>
<month>
<name>éŔĚŘ</name>
<name>7</name>
<day>
<name>19</name>
@ -404,7 +404,7 @@
</month>
<month>
<name>éŔÎŘ</name>
<name>6</name>
<day>
<name>25</name>
@ -464,7 +464,7 @@
</month>
<month>
<name>íÁĘ</name>
<name>5</name>
<day>
<name>23</name>
@ -526,7 +526,7 @@
</month>
<month>
<name>áĐŇĹĚŘ</name>
<name>4</name>
<day>
<name>29</name>
@ -618,7 +618,7 @@
</month>
<month>
<name>íÁŇÔ</name>
<name>3</name>
<day>
<name>30</name>
@ -708,7 +708,7 @@
</month>
<month>
<name>ćĹ×ŇÁĚŘ</name>
<name>2</name>
<day>
<name>25</name>
@ -762,7 +762,7 @@
</month>
<month>
<name>ńÎ×ÁŇŘ</name>
<name>1</name>
<day>
<name>31</name>

View file

@ -1,7 +1,7 @@
# $FreeBSD$
# The FreeBSD Russian Documentation Project
# $FreeBSDru: frdp/www/ru/news/Makefile,v 1.8 2003/09/22 07:54:13 den Exp $
# Original revision: 1.38
# $FreeBSDru: frdp/www/ru/news/Makefile,v 1.9 2004/01/22 15:09:47 den Exp $
# Original revision: 1.39
.if exists(../Makefile.conf)
.include "../Makefile.conf"
@ -37,19 +37,25 @@ SUBDIR+= 2002
DATA= newsflash.html news.rdf press.html
CLEANFILES+= newsflash.html news.rdf press.html
newsflash.html: newsflash.xsl news.xml includes.xsl ../includes.xsl
newsflash.html: newsflash.xsl news.xml\
includes.xsl ../includes.xsl ${XML_TRANSTABLE}
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/newsflash.xsl ${.CURDIR}/news.xml
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET}
.endif
news.rdf: news-rdf.xsl news.xml includes.xsl ../includes.xsl
news.rdf: news-rdf.xsl news.xml\
includes.xsl ../includes.xsl ${XML_TRANSTABLE}
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/news-rdf.xsl ${.CURDIR}/news.xml
press.html: press.xsl press.xml includes.xsl ../includes.xsl
press.html: press.xsl press.xml\
includes.xsl ../includes.xsl ${XML_TRANSTABLE}
${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/press.xsl ${.CURDIR}/press.xml
.if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET}

View file

@ -4,9 +4,9 @@
The FreeBSD Russian Documentation Project
$FreeBSD$
$FreeBSDru: frdp/www/ru/news/newsflash.xsl,v 1.9 2003/09/17 18:32:15 andy Exp $
$FreeBSDru: frdp/www/ru/news/newsflash.xsl,v 1.10 2004/01/22 15:09:48 den Exp $
Original revision: 1.9
Original revision: 1.10
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
@ -93,7 +93,13 @@
<!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month">
<h1><xsl:value-of select="name"/>
<h1>
<xsl:call-template name="transtable-lookup">
<xsl:with-param name="word-group" select="'number-month'" />
<xsl:with-param name="word">
<xsl:value-of select="name"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1>
@ -115,7 +121,13 @@
<b><xsl:value-of select="ancestor::day/name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::month/name"/>,
<xsl:call-template name="transtable-lookup">
<xsl:with-param name="word-group" select="'number-month'" />
<xsl:with-param name="word">
<xsl:value-of select="ancestor::month/name"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:apply-templates select="p"/>
</p>

View file

@ -4,9 +4,9 @@
The FreeBSD Russian Documentation Project
$FreeBSD$
$FreeBSDru: frdp/www/ru/news/oldnewsflash.xsl,v 1.3 2002/02/15 15:01:03 phantom Exp $
$FreeBSDru: frdp/www/ru/news/oldnewsflash.xsl,v 1.4 2004/01/22 15:09:49 den Exp $
Original revision: 1.5
Original revision: 1.6
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
@ -61,7 +61,13 @@
<!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month">
<h1><xsl:value-of select="name"/>
<h1>
<xsl:call-template name="transtable-lookup">
<xsl:with-param name="word-group" select="'number-month'" />
<xsl:with-param name="word">
<xsl:value-of select="name"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1>
@ -83,7 +89,13 @@
<b><xsl:value-of select="ancestor::day/name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::month/name"/>,
<xsl:call-template name="transtable-lookup">
<xsl:with-param name="word-group" select="'number-month'" />
<xsl:with-param name="word">
<xsl:value-of select="ancestor::month/name"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text>, </xsl:text>
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:apply-templates select="p"/>
</p>

View file

@ -4,9 +4,9 @@
The FreeBSD Russian Documentation Project
$FreeBSD$
$FreeBSDru: frdp/www/ru/news/press.xsl,v 1.4 2003/11/04 09:02:58 den Exp $
$FreeBSDru: frdp/www/ru/news/press.xsl,v 1.5 2004/01/22 15:09:50 den Exp $
Original revision: 1.5
Original revision: 1.6
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
@ -51,7 +51,13 @@
<!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month">
<h1><xsl:value-of select="name"/>
<h1>
<xsl:call-template name="transtable-lookup">
<xsl:with-param name="word-group" select="'number-month'" />
<xsl:with-param name="word">
<xsl:value-of select="name"/>
</xsl:with-param>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1>