Date: Sat, 30 Sep 2017 15:57:12 +0000 (UTC) From: Guangyuan Yang <ygy@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r51003 - head/zh_CN.UTF-8/htdocs Message-ID: <201709301557.v8UFvCEV021579@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ygy Date: Sat Sep 30 15:57:11 2017 New Revision: 51003 URL: https://svnweb.freebsd.org/changeset/doc/51003 Log: 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 Added: head/zh_CN.UTF-8/htdocs/community.xsl (contents, props changed) Deleted: head/zh_CN.UTF-8/htdocs/community.xml Modified: head/zh_CN.UTF-8/htdocs/Makefile Modified: head/zh_CN.UTF-8/htdocs/Makefile ============================================================================== --- head/zh_CN.UTF-8/htdocs/Makefile Sat Sep 30 15:50:07 2017 (r51002) +++ head/zh_CN.UTF-8/htdocs/Makefile Sat Sep 30 15:57:11 2017 (r51003) @@ -14,7 +14,6 @@ DOCS= about.xml DOCS+= applications.xml DOCS+= art.xml DOCS+= availability.xml -DOCS+= community.xml DOCS+= docs.xml DOCS+= features.xml DOCS+= internet.xml @@ -33,6 +32,9 @@ DEPENDSET.index=transtable mirrors news press events \ XMLDOCS+= usergroups:${XSL_USERGROUPS}:${XML_USERGROUPS}: DEPENDSET.usergroups=transtable usergroups PARAMS.usergroups= --param pagename "'FreeBSD User Groups'" + +XMLDOCS+= community::${XML_EVENTS_EVENTS}: +DEPENDSET.community=usergroups events # Subdirectories # XML Added: head/zh_CN.UTF-8/htdocs/community.xsl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/zh_CN.UTF-8/htdocs/community.xsl Sat Sep 30 15:57:11 2017 (r51003) @@ -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&v=1.0&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&ss=2&w=all&q=freebsd&m=text">freebsd</a>' + 标签。</li> + + <li>在 <a href="//www.youtube.com">YouTube</a> 上有上百段会议视频, + 屏幕录像, 以及关于 <a + href="//www.youtube.com/results?search_query=freebsd&search_type=&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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709301557.v8UFvCEV021579>