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>