- Add translated "html-usergroups-list-regions" and
"html-usergroups-list-header" template: www/ja/share/sgml/libcommon.xsl - Merge the following from the English version: -> 1.12 www/ja/share/sgml/templates.usergroups.xsl
This commit is contained in:
parent
56f919f394
commit
3f88dd4cbc
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=38122
2 changed files with 156 additions and 15 deletions
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="euc-jp"?>
|
||||
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
|
||||
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd">
|
||||
<!-- $FreeBSD: www/ja/share/sgml/libcommon.xsl,v 1.12 2011/12/13 16:28:09 ryusuke Exp $ -->
|
||||
<!-- $FreeBSD: www/ja/share/sgml/libcommon.xsl,v 1.13 2011/12/25 14:15:54 ryusuke Exp $ -->
|
||||
<!-- The FreeBSD Japanese Documentation Project -->
|
||||
<!-- Original revision: 1.33 -->
|
||||
|
||||
|
@ -16,6 +16,77 @@
|
|||
<xsl:param name="param-l10n-date-format-MD"
|
||||
select="'%M %D Æü'" />
|
||||
|
||||
<!-- template: "html-usergroups-list-regions"
|
||||
list all regions in a usergroup database -->
|
||||
|
||||
<xsl:key name="html-usergroups-regions-key" match="entry" use="../../@name" />
|
||||
<xsl:key name="html-usergroups-id-key" match="entry" use="@id" />
|
||||
|
||||
<xsl:template name="html-usergroups-map">
|
||||
<xsl:param name="mapurl" select="'none'" />
|
||||
|
||||
<img>
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="$mapurl" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="html-usergroups-list-regions">
|
||||
<xsl:param name="usergroups.xml" select="'usergroups.xml'" />
|
||||
|
||||
<ul>
|
||||
<xsl:for-each select="document($usergroups.xml)//continent">
|
||||
<xsl:sort select="format-number(count(country/entry), '000')"
|
||||
order="descending"/>
|
||||
|
||||
<xsl:variable name="id" select="
|
||||
translate(@name,
|
||||
' ,ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
||||
'--abcdefghijklmnopqrstuvwxyz')" />
|
||||
|
||||
<li>
|
||||
<p><xsl:element name="a">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="concat('#', $id)" />
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:call-template name="transtable-lookup">
|
||||
<xsl:with-param name="word-group" select="'continents'" />
|
||||
<xsl:with-param name="word" select="@name" />
|
||||
</xsl:call-template>
|
||||
</xsl:element>
|
||||
( <xsl:value-of select="count(country/entry)" /> ユーザグループ)</p>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
</ul>
|
||||
</xsl:template>
|
||||
|
||||
<!-- template: "html-usergroups-list-header"
|
||||
print header part of usergroup listing (l10n) -->
|
||||
|
||||
<xsl:template name="html-usergroups-list-header">
|
||||
<p>FreeBSD は広く使われており、世界中にたくさんのユーザグループがあります。</p>
|
||||
<p>このリストに載っていないユーザグループをご存知でしたら、
|
||||
ぜひ、<a href="http://www.freebsd.org/ja/send-pr.html">障害報告</a
|
||||
> の www カテゴリを使って以下の情報をお知らせください。</p>
|
||||
<ol>
|
||||
<li>ユーザグループのウェブサイトの URL</li>
|
||||
<li>訪問者とウェブサイトの管理のために、担当者の連絡先のメールアドレス</li>
|
||||
<li>ユーザグループの簡単な (一段落の) 紹介文</li>
|
||||
</ol>
|
||||
|
||||
<p>報告は HTML 形式でお願いします。
|
||||
FreeBSD のポリシーから、
|
||||
活発なユーザグループの活動の公開は好ましいことです。
|
||||
近くにユーザグループがなければ、ぜひ <a
|
||||
href="http://bsd.meetup.com/">http://bsd.meetup.com/</a>
|
||||
を使って近所にいる興味を持っている個人を見つけ、
|
||||
ユーザグループを作ってください。</p>
|
||||
|
||||
<h3>地域</h3>
|
||||
</xsl:template>
|
||||
|
||||
<!-- template: "html-news-list-newsflash-preface" -->
|
||||
<xsl:template name="html-news-list-newsflash-preface">
|
||||
<img src="&enbase;/gifs/news.jpg" align="right" border="0" width="193"
|
||||
|
|
|
@ -1,27 +1,97 @@
|
|||
<?xml version="1.0" encoding="euc-jp"?>
|
||||
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD Fragment//EN"
|
||||
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd" [
|
||||
<!ENTITY title "¥æ¡¼¥¶¥°¥ë¡¼¥×">
|
||||
<!ENTITY email "freebsd-www">
|
||||
<!ENTITY % navinclude.community "INCLUDE">
|
||||
]>
|
||||
|
||||
<!-- $FreeBSD: www/ja/share/sgml/templates.usergroups.xsl,v 1.2 2005/09/19 07:58:19 hrs Exp $ -->
|
||||
<!-- $FreeBSD: www/ja/share/sgml/templates.usergroups.xsl,v 1.3 2006/08/19 21:24:50 hrs Exp $ -->
|
||||
<!-- The FreeBSD Japanese Documentation Project -->
|
||||
<!-- Original revision: 1.12 -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
xmlns:cvs="http://www.FreeBSD.org/XML/CVS"
|
||||
exclude-result-prefixes="cvs">
|
||||
<xsl:import href="http://www.FreeBSD.org/XML/www/lang/share/sgml/libcommon.xsl"/>
|
||||
|
||||
<xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/templates.usergroups.xsl" />
|
||||
<xsl:output method="xml" encoding="&xml.encoding;"
|
||||
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
|
||||
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>
|
||||
|
||||
<xsl:output type="xml" encoding="euc-jp"
|
||||
indent="yes"/>
|
||||
<xsl:variable name="date">
|
||||
<xsl:value-of select="//cvs:keyword[@name='freebsd']"/>
|
||||
</xsl:variable>
|
||||
|
||||
<!-- template: "html-usergroups-list-header"
|
||||
print header part of usergroup listing (l10n) -->
|
||||
<xsl:key name="usergroup-by-country" match="entry"
|
||||
use="../@code" />
|
||||
|
||||
<xsl:template name="html-usergroups-list-header">
|
||||
<p>FreeBSD は広く使われており、世界中にたくさんのユーザグループがあります。
|
||||
このリストに載っていないユーザグループをご存知でしたら、
|
||||
ぜひ、<a href="http://www.freebsd.org/send-pr.html">障害報告</a
|
||||
>の www カテゴリを使ってお知らせください。
|
||||
報告はできれば HTML 形式で、簡単な紹介を添えるようにお願いします。</p>
|
||||
<xsl:variable name="charturl" select="'http://chart.apis.google.com/chart?cht=t&chs=400x200&chtm=world&chco=ffffff,ffbe38,600000&chf=bg,s,4D89F9'" />
|
||||
|
||||
<h3>地域</h3>
|
||||
<xsl:template match="/">
|
||||
<html>
|
||||
&header1;
|
||||
|
||||
<body>
|
||||
<div id="CONTAINERWRAP">
|
||||
<div id="CONTAINER">
|
||||
&header2;
|
||||
|
||||
<div id="CONTENT">
|
||||
<div id="SIDEWRAP">
|
||||
&nav;
|
||||
</div> <!-- SIDEWRAP -->
|
||||
|
||||
<div id="CONTENTWRAP">
|
||||
&header3;
|
||||
|
||||
<xsl:variable name="chart-countries">
|
||||
<xsl:for-each select="//entry[
|
||||
generate-id() =
|
||||
generate-id(key('usergroup-by-country', ../@code)[1])]">
|
||||
<!-- <xsl:sort select="format-number(count(key('event-by-country', location/country)), '000')" order="descending"/>
|
||||
-->
|
||||
<xsl:value-of select="../@code" />
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="chart-country-counts">
|
||||
<xsl:for-each select="//entry[
|
||||
generate-id() =
|
||||
generate-id(key('usergroup-by-country', ../@code)[1])]">
|
||||
<xsl:value-of select="count(key('usergroup-by-country', ../@code))" />.0<xsl:if test="position()!=last()">,</xsl:if></xsl:for-each>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="imageurl"><xsl:value-of select="$charturl"/>&chd=t:<xsl:value-of select="$chart-country-counts"/>&chld=<xsl:value-of select="$chart-countries"/></xsl:variable>
|
||||
|
||||
<xsl:call-template name="html-usergroups-list-header" />
|
||||
|
||||
<xsl:call-template name="html-usergroups-list-regions">
|
||||
<xsl:with-param name="usergroups.xml" select="$usergroups.xml" />
|
||||
<xsl:with-param name="usergroups-local.xml" select="$usergroups-local.xml" />
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="html-usergroups-map">
|
||||
<xsl:with-param name="mapurl" select="$imageurl" />
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:call-template name="html-usergroups-list-entries">
|
||||
<xsl:with-param name="usergroups.xml" select="$usergroups.xml" />
|
||||
<xsl:with-param name="usergroups-local.xml" select="$usergroups-local.xml" />
|
||||
</xsl:call-template>
|
||||
|
||||
</div> <!-- CONTENTWRAP -->
|
||||
|
||||
<br class="clearboth" />
|
||||
</div> <!-- CONTENT -->
|
||||
|
||||
<div id="FOOTER">
|
||||
©right;<br />
|
||||
&date;
|
||||
</div> <!-- FOOTER -->
|
||||
</div> <!-- CONTAINER -->
|
||||
</div> <!-- CONTAINERWRAP -->
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
Loading…
Reference in a new issue