Update zh_CN/htdocs/community.xml to community.xsl, based on the en_US version.

MFen:	1.2 -> r49284

Reviewed by:	loader (mentor)
Approved by:	loader (mentor)
Differential Revision:	https://reviews.freebsd.org/D12305
This commit is contained in:
Guangyuan Yang 2017-09-30 15:57:11 +00:00
parent 104c9ff233
commit 15f6fba977
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51003
3 changed files with 154 additions and 28 deletions

View file

@ -14,7 +14,6 @@ DOCS= about.xml
DOCS+= applications.xml DOCS+= applications.xml
DOCS+= art.xml DOCS+= art.xml
DOCS+= availability.xml DOCS+= availability.xml
DOCS+= community.xml
DOCS+= docs.xml DOCS+= docs.xml
DOCS+= features.xml DOCS+= features.xml
DOCS+= internet.xml DOCS+= internet.xml
@ -34,6 +33,9 @@ XMLDOCS+= usergroups:${XSL_USERGROUPS}:${XML_USERGROUPS}:
DEPENDSET.usergroups=transtable usergroups DEPENDSET.usergroups=transtable usergroups
PARAMS.usergroups= --param pagename "'FreeBSD User Groups'" PARAMS.usergroups= --param pagename "'FreeBSD User Groups'"
XMLDOCS+= community::${XML_EVENTS_EVENTS}:
DEPENDSET.community=usergroups events
# Subdirectories # Subdirectories
# XML # XML
# SUBDIR= FAQ # SUBDIR= FAQ

View file

@ -1,27 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//FreeBSD//DTD XHTML 1.0 Transitional-Based Extension//EN"
"http://www.FreeBSD.org/XML/doc/share/xml/xhtml10-freebsd.dtd" [
<!ENTITY title "FreeBSD 社区">
]>
<!-- The FreeBSD Simplified Chinese Documentation Project -->
<!-- Original Revision: 1.2 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>&title;</title>
<cvs:keyword xmlns:cvs="http://www.FreeBSD.org/XML/CVS">$FreeBSD$</cvs:keyword>
</head>
<body class="navinclude.community">
<p>FreeBSD 有非常活跃的社区支持。</p>
<p>有 100 多种分类的 <a href="&enbase;/community/mailinglists.html">邮件列表</a>
和几个 <a href="&enbase;/community/newsgroups.html">newsgroups</a>
还有许多分布在世界各地的 FreeBSD <a href="&base;/usergroups.html">用户组</a>
和活跃的 <a href="&enbase;/community/irc.html">IRC</a> 社区。</p>
</body>
</html>

View file

@ -0,0 +1,151 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
"http://www.FreeBSD.org/XML/share/xml/xslt10-freebsd.dtd" [
<!ENTITY title "FreeBSD 社区">
]>
<!-- $FreeBSD$ -->
<!-- The FreeBSD Simplified Chinese Documentation Project -->
<!-- Original Revision: r49284 -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
xmlns="http://www.w3.org/1999/xhtml"
extension-element-prefixes="date">
<xsl:import href="http://www.FreeBSD.org/XML/lang/share/xml/libcommon.xsl"/>
<xsl:import href="http://www.FreeBSD.org/XML/share/xml/xhtml.xsl"/>
<xsl:variable name="title">&title;</xsl:variable>
<xsl:key name="last-year-event-by-country" match="event[number(enddate/year) = (number(date:year()) - 1)]"
use="location/country" />
<xsl:key name="event-by-year" match="event" use="enddate/year" />
<xsl:template name="process.sidewrap">
&nav.community;
</xsl:template>
<xsl:template name="process.contentwrap">
<p>有超过一百个 <a href="&enbase;/community/mailinglists.html">邮件列表</a>
许多网页 <a href="https://forums.FreeBSD.org/">论坛</a>
以及几个 <a href="&enbase;/community/newsgroups.html">新闻组</a>
可供您查看。 在世界上 <xsl:value-of
select="count(document($usergroups.xml)//country)" />
个不同的国家有超过 <xsl:value-of
select="count(document($usergroups.xml)//entry)"/><xsl:text>
</xsl:text><a href="&enbase;/usergroups.html">用户群组</a>
和一个活跃的 <a href="&enbase;/community/irc.html">IRC</a> 社区。
很多开发者维护了各种 <a href="https://planet.freebsd.org">博客</a>
来展示他们为 &os; 所做的工作。 开发者和关键的贡献者也维护了一个 <a
href="http://wiki.FreeBSD.org/">wiki</a> 其中包括了 &os;
开发进度和相关项目的信息。</p>
<p>过去的一年, 在世界上 <xsl:value-of
select="count(/events/event[(number(enddate/year) =
(number($curdate.year) -1)) and (generate-id() =
generate-id(key('last-year-event-by-country',
location/country)[1]))])" /> 个不同的国家举办了 <xsl:value-of
select="count(/events/event[number(enddate/year) =
(number($curdate.year) -1)])" /> 场 &os; 活动。
若要了解未来与 &os; 有关的活动, 请查阅
<a href="&enbase;/events/events.html">活动页面</a> 上维护的
<a href="&enbase;/events/events.ics">日历</a>
<a href="&enbase;/events/rss.xml">RSS 源</a>。 在 YouTube 上的
<a href="//www.youtube.com/bsdconferences">BSD 会议</a>
频道里有许多过去活动的视频。</p>
<!-- The Latest Videos section is placed inside an invisible block, which
is only made visible if the browser supports Javascript. -->
<div id="latest-videos" style="display:none;">
<h3>最新视频</h3>
<!-- See http://www.google.com/uds/solutions/wizards/videobar.html -->
<div id="videoBar-bar">
<span style="color:#676767;font-size:11px;margin:10px;padding:4px;">Loading...</span>
</div>
<script src="//www.google.com/uds/api?file=uds.js&amp;v=1.0&amp;source=uds-vbw"
type="text/javascript"></script>
<style type="text/css">
@import url("//www.google.com/uds/css/gsearch.css");
</style>
<!-- Video Bar Code and Stylesheet -->
<script type="text/javascript">
window._uds_vbw_donotrepair = true;
</script>
<script src="//www.google.com/uds/solutions/videobar/gsvideobar.js?mode=new"
type="text/javascript"></script>
<style type="text/css">
@import url("//www.google.com/uds/solutions/videobar/gsvideobar.css");
</style>
<style type="text/css">
.playerInnerBox_gsvb .player_gsvb {
width : 320px;
height : 260px;
}
</style>
<script type="text/javascript">
document.getElementById('latest-videos').style.display = 'block';
function LoadVideoBar() {
var videoBar;
var options = {
largeResultSet : !true,
horizontal : true,
autoExecuteList : {
cycleTime : GSvideoBar.CYCLE_TIME_MEDIUM,
cycleMode : GSvideoBar.CYCLE_MODE_LINEAR,
executeList : ["ytchannel:bsdconferences"]
}
}
videoBar = new GSvideoBar(document.getElementById("videoBar-bar"),
GSvideoBar.PLAYER_ROOT_FLOATING,
options);
}
// arrange for this function to be called during body.onload
// event processing
GSearch.setOnLoadCallback(LoadVideoBar);
</script>
</div> <!-- Latest Videos -->
<h2>社交网络</h2>
<p>&os; 出现在许多不同的社交网络上。</p>
<ul>
<li>上千名用户已经在 <a
href="http://del.icio.us">del.icio.us</a> 上给接近 30,000
个不重复的网页加上了 '<a
href="http://del.icio.us/tag/freebsd">freebsd</a>' 标签。</li>
<li><a href="http://www.flickr.com">flickr</a> 上,
有上千张来自用户群组, 会议和黑客马拉松的照片被加上了 '<a
href="http://flickr.com/search/?z=t&amp;ss=2&amp;w=all&amp;q=freebsd&amp;m=text">freebsd</a>'
标签。</li>
<li><a href="//www.youtube.com">YouTube</a> 上有上百段会议视频,
屏幕录像, 以及关于 <a
href="//www.youtube.com/results?search_query=freebsd&amp;search_type=&amp;aq=f">FreeBSD</a>
的演示。 特别要提到的是, 有一个新的
<a href="http://www.youtube.com/bsdconferences">BSD 会议</a>
频道, 其中包含了来自 FreeBSD 技术会议的各种一小时 FreeBSD 录制演讲。</li>
<li><a href="http://www.facebook.com">Facebook</a> 上有一个
<a href="http://www.facebook.com/home.php#/group.php?gid=2204657214">FreeBSD
用户群组</a><a href="http://www.linkedin.com">LinkedIn</a> 上有一个
<a href="http://www.linkedin.com/groups?gid=47628">FreeBSD 群组</a></li>
<li>您可以在 <a href="https://twitter.com">Twitter</a> 上关注
<a href="https://twitter.com/freebsd">@freebsd</a>
<a href="https://twitter.com/freebsdhelp">@freebsdhelp</a>
<a href="https://twitter.com/freebsdblogs">@freebsdblogs</a> 以及
<a href="https://twitter.com/bsdevents">@bsdevents</a></li>
</ul>
</xsl:template>
</xsl:stylesheet>