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 # The FreeBSD Russian Documentation Project
# #
# $FreeBSD$ # $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) .if exists(Makefile.conf)
@ -100,13 +100,14 @@ webcheck:
index.html: index.xsl ${XML_INCLUDES}\ index.html: index.xsl ${XML_INCLUDES}\
${XML_NEWS_INCLUDES} ${XML_NEWS_NEWS} ${XML_NEWS_PRESS}\ ${XML_NEWS_INCLUDES} ${XML_NEWS_NEWS} ${XML_NEWS_PRESS}\
${XML_MIRRORS} ${XML_ADVISORIES} ${XML_MIRRORS} ${XML_TRANSTABLE} ${XML_ADVISORIES}
${XSLTPROC} ${XSLTPROCOPTS} \ ${XSLTPROC} ${XSLTPROCOPTS} \
-o $@ \ -o $@ \
--param mirrors.xml "'${XML_MIRRORS}'" \ --param mirrors.xml "'${XML_MIRRORS}'" \
--param advisories.xml "'${XML_ADVISORIES}'" \ --param advisories.xml "'${XML_ADVISORIES}'" \
--param news.press.xml "'${XML_NEWS_PRESS}'" \ --param news.press.xml "'${XML_NEWS_PRESS}'" \
--param news.project.xml "'${XML_NEWS_NEWS}'" \ --param news.project.xml "'${XML_NEWS_NEWS}'" \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/index.xsl ${XML_NEWS_NEWS} ${.CURDIR}/index.xsl ${XML_NEWS_NEWS}
.if !defined(NO_TIDY) .if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET} -${TIDY} ${TIDYOPTS} ${.TARGET}

View file

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

View file

@ -3,9 +3,9 @@
<!-- <!--
The FreeBSD Russian Documentation Project 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. <!-- Simple schema for FreeBSD Project news.
@ -37,7 +37,7 @@
<name>2001</name> <name>2001</name>
<month> <month>
<name>äĹËÁÂŇŘ</name> <name>12</name>
<day> <day>
<name>31</name> <name>31</name>
@ -139,7 +139,7 @@
</month> </month>
<month> <month>
<name>îĎŃÂŇŘ</name> <name>11</name>
<day> <day>
<name>30</name> <name>30</name>
@ -177,7 +177,7 @@
<p><a href="mailto:des@FreeBSD.org">Dag-Erling Smørgrav</a> <p><a href="mailto:des@FreeBSD.org">Dag-Erling Smørgrav</a>
ÎÁÐÉÓÁÌ ÓÔÁÔØÀ Ï ÔÏÍ, ËÁË ÌÕÞÛÅ <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> ÐÉÓÁÔØ ÏÔÞÅÔÙ Ï ÐÒÏÂÌÅÍÁÈ × FreeBSD</a>.</p>
</event> </event>
</day> </day>
@ -264,7 +264,7 @@
</month> </month>
<month> <month>
<name>ďËÔŃÂŇŘ</name> <name>10</name>
<day> <day>
<name>30</name> <name>30</name>
@ -383,7 +383,7 @@
</month> </month>
<month> <month>
<name>óĹÎÔŃÂŇŘ</name> <name>9</name>
<day> <day>
<name>18</name> <name>18</name>
@ -413,7 +413,7 @@
</month> </month>
<month> <month>
<name>á×ÇŐÓÔ</name> <name>8</name>
<day> <day>
<name>30</name> <name>30</name>
@ -529,7 +529,7 @@
</month> </month>
<month> <month>
<name>éŔĚŘ</name> <name>7</name>
<day> <day>
<name>30</name> <name>30</name>
@ -583,7 +583,7 @@
</month> </month>
<month> <month>
<name>éŔÎŘ</name> <name>6</name>
<day> <day>
<name>21</name> <name>21</name>
@ -602,7 +602,7 @@
<p><a href="mailto:john@kozubik.com">John Kozubik</a> ÐÒÅÄÏÓÔÁ×ÉÌ ÎÁÍ <p><a href="mailto:john@kozubik.com">John Kozubik</a> ÐÒÅÄÏÓÔÁ×ÉÌ ÎÁÍ
ÓÔÁÔØÀ, ÏÐÉÓÙ×ÁÀÝÕÀ, <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> ÉÓÐÏÌØÚÏ×ÁÔØ FreeBSD Ó Ô×ÅÒÄÏÔÅÌØÎÙÍÉ ÎÏÓÉÔÅÌÑÍÉ ÉÎÆÏÒÍÁÃÉÉ</a>.</p>
</event> </event>
</day> </day>
@ -687,7 +687,7 @@
</month> </month>
<month> <month>
<name>íÁĘ</name> <name>5</name>
<day> <day>
<name>24</name> <name>24</name>
@ -727,7 +727,7 @@
</month> </month>
<month> <month>
<name>áĐŇĹĚŘ</name> <name>4</name>
<day> <day>
<name>27</name> <name>27</name>
@ -839,7 +839,7 @@
</month> </month>
<month> <month>
<name>íÁŇÔ</name> <name>3</name>
<day> <day>
<name>25</name> <name>25</name>
@ -902,7 +902,7 @@
</month> </month>
<month> <month>
<name>ćĹ×ŇÁĚŘ</name> <name>2</name>
<day> <day>
<name>20</name> <name>20</name>
@ -933,7 +933,7 @@
</month> </month>
<month> <month>
<name>ńÎ×ÁŇŘ</name> <name>1</name>
<day> <day>
<name>24</name> <name>24</name>

View file

@ -2,9 +2,9 @@
# The FreeBSD Russian Documentation Project # The FreeBSD Russian Documentation Project
# #
# $FreeBSD$ # $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) .if exists(../Makefile.conf)
.include "../Makefile.conf" .include "../Makefile.conf"
@ -16,8 +16,10 @@
DATA= index.html DATA= index.html
CLEANFILES+= 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} \ ${XSLTPROC} ${XSLTPROCOPTS} -o ${.TARGET} \
--param transtable.xml "'${XML_TRANSTABLE}'" \
${.CURDIR}/../oldnewsflash.xsl ${.CURDIR}/news.xml ${.CURDIR}/../oldnewsflash.xsl ${.CURDIR}/news.xml
.if !defined(NO_TIDY) .if !defined(NO_TIDY)
-${TIDY} ${TIDYOPTS} ${.TARGET} -${TIDY} ${TIDYOPTS} ${.TARGET}

View file

@ -3,9 +3,9 @@
<!-- <!--
The FreeBSD Russian Documentation Project 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. <!-- Simple schema for FreeBSD Project news.
@ -37,7 +37,7 @@
<name>2002</name> <name>2002</name>
<month> <month>
<name>îĎŃÂŇŘ</name> <name>11</name>
<day> <day>
<name>25</name> <name>25</name>
@ -122,7 +122,7 @@
</month> </month>
<month> <month>
<name>ďËÔŃÂŇŘ</name> <name>10</name>
<day> <day>
<name>31</name> <name>31</name>
@ -239,7 +239,7 @@
</month> </month>
<month> <month>
<name>óĹÎÔŃÂŇŘ</name> <name>9</name>
<day> <day>
<name>10</name> <name>10</name>
@ -285,7 +285,7 @@
</month> </month>
<month> <month>
<name>á×ÇŐÓÔ</name> <name>8</name>
<day> <day>
<name>21</name> <name>21</name>
@ -382,7 +382,7 @@
</month> </month>
<month> <month>
<name>éŔĚŘ</name> <name>7</name>
<day> <day>
<name>19</name> <name>19</name>
@ -404,7 +404,7 @@
</month> </month>
<month> <month>
<name>éŔÎŘ</name> <name>6</name>
<day> <day>
<name>25</name> <name>25</name>
@ -464,7 +464,7 @@
</month> </month>
<month> <month>
<name>íÁĘ</name> <name>5</name>
<day> <day>
<name>23</name> <name>23</name>
@ -526,7 +526,7 @@
</month> </month>
<month> <month>
<name>áĐŇĹĚŘ</name> <name>4</name>
<day> <day>
<name>29</name> <name>29</name>
@ -618,7 +618,7 @@
</month> </month>
<month> <month>
<name>íÁŇÔ</name> <name>3</name>
<day> <day>
<name>30</name> <name>30</name>
@ -708,7 +708,7 @@
</month> </month>
<month> <month>
<name>ćĹ×ŇÁĚŘ</name> <name>2</name>
<day> <day>
<name>25</name> <name>25</name>
@ -762,7 +762,7 @@
</month> </month>
<month> <month>
<name>ńÎ×ÁŇŘ</name> <name>1</name>
<day> <day>
<name>31</name> <name>31</name>

View file

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

View file

@ -4,9 +4,9 @@
The FreeBSD Russian Documentation Project The FreeBSD Russian Documentation Project
$FreeBSD$ $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" <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 --> <!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month"> <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:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1> <xsl:value-of select="ancestor::year/name"/></h1>
@ -115,7 +121,13 @@
<b><xsl:value-of select="ancestor::day/name"/> <b><xsl:value-of select="ancestor::day/name"/>
<xsl:text> </xsl:text> <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:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:apply-templates select="p"/> <xsl:apply-templates select="p"/>
</p> </p>

View file

@ -4,9 +4,9 @@
The FreeBSD Russian Documentation Project The FreeBSD Russian Documentation Project
$FreeBSD$ $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" <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 --> <!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month"> <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:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1> <xsl:value-of select="ancestor::year/name"/></h1>
@ -83,7 +89,13 @@
<b><xsl:value-of select="ancestor::day/name"/> <b><xsl:value-of select="ancestor::day/name"/>
<xsl:text> </xsl:text> <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:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:apply-templates select="p"/> <xsl:apply-templates select="p"/>
</p> </p>

View file

@ -4,9 +4,9 @@
The FreeBSD Russian Documentation Project The FreeBSD Russian Documentation Project
$FreeBSD$ $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" <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 --> <!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month"> <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:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></h1> <xsl:value-of select="ancestor::year/name"/></h1>