<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hpyer 的未知空间 &#187; ajax</title>
	<atom:link href="http://hpyer.cn/tag/ajax/feed" rel="self" type="application/rss+xml" />
	<link>http://hpyer.cn</link>
	<description>现实的世界里寻找点滴的未知空间</description>
	<lastBuildDate>Wed, 16 May 2012 06:17:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>L10n By Javascript 1.2 发布</title>
		<link>http://hpyer.cn/l10n-by-javascript-12-released.html</link>
		<comments>http://hpyer.cn/l10n-by-javascript-12-released.html#comments</comments>
		<pubDate>Sat, 04 Oct 2008 16:23:02 +0000</pubDate>
		<dc:creator>Hpyer</dc:creator>
				<category><![CDATA[Web 技术]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[l10n]]></category>

		<guid isPermaLink="false">http://hpyer.cn/?p=265</guid>
		<description><![CDATA[L10n By Javascript 1.2 released. Change Log / 更新明细: Add functions (_n and _ne) to process plural form / 增加复数形式的处理函数（_n 和 _ne） Add option before/after to define a function to do anything before/after the translation / 增加 before/after 选择，用于增加翻译前后的事件处理 Include $.sprintf as a plugin of jQuery / 增加一个 jQuery 插件 $.sprintf Rewrite Messages Picker, much [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hpyer.cn/codes/l10n-by-javascript">L10n By Javascript</a> 1.2 released.</p>
<p>Change Log / 更新明细:</p>
<ul>
<li>Add functions (_n and _ne) to process plural form / 增加复数形式的处理函数（_n 和 _ne）</li>
<li>Add option before/after to define a function to do anything before/after the translation / 增加 before/after 选择，用于增加翻译前后的事件处理</li>
<li>Include $.sprintf as a plugin of jQuery / 增加一个 jQuery 插件 $.sprintf</li>
<li>Rewrite Messages Picker, much useful then old version / 重写信息提取器，使用更加方便</li>
<li>Fix a bug, and now we can also translate words that writed by function __ (also _e, _n and _ne) / 修正错误，现在也可以翻译由函数 __（ _e, _n 和 _ne）输出的信息</li>
<li>Move home to Google-Code / 在 Google-Code 上建立了主页 <a href="http://code.google.com/p/l10n-by-javascript/" target="_blank">http://code.google.com/p/l10n-by-javascript/</a></li>
<li>Update example and language files, removed Japanese translation because it&#8217;s not good enouph for user to understand / 更新例子和语言文件，由于翻译的效果不是很好，所以去除了日语的翻译</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hpyer.cn/l10n-by-javascript-12-released.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用 JavaScript 做网站的国际化</title>
		<link>http://hpyer.cn/web-internationalization-with-javascript.html</link>
		<comments>http://hpyer.cn/web-internationalization-with-javascript.html#comments</comments>
		<pubDate>Thu, 02 Oct 2008 07:13:15 +0000</pubDate>
		<dc:creator>Hpyer</dc:creator>
				<category><![CDATA[Web 技术]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[l10n]]></category>
		<category><![CDATA[l18n]]></category>
		<category><![CDATA[localization]]></category>

		<guid isPermaLink="false">http://hpyer.cn/?p=29</guid>
		<description><![CDATA[　　随着我们国家的进一步改革开放，越来越多的人发现，和国际接轨的重要性。国外有多种多样的高科技值得我们去学习，同样，具有我们中国特色的产品、技术等等也不得不和国际社会相接轨。常言道，适者才能生存，更何况是在全球一体化后的这样一个大舞台上。<br />
　　科技的发展，对于我们生活的改变是可想而知的，而互联网的发展也是非常显著的。如今，网页制作者们，也不得不为了适应国际化的发展趋势，开始制作支持多国语言的网站，由此也催生出了各式各样的国际化的框架。而本文将向您介绍一种基于 Web 2.0，利用 Javascript 脚本，通过 AJAX 技术实现无刷新的将您的网页进行国际化转换的方法——<a href="http://hpyer.cn/codes/l10n-by-javascript">L10n By Javascript</a>。]]></description>
			<content:encoded><![CDATA[<p>　　随着我们国家的进一步改革开放，越来越多的人发现，和国际接轨的重要性。国外有多种多样的高科技值得我们去学习，同样，具有我们中国特色的产品、技术等等也不得不和国际社会相接轨。常言道，适者才能生存，更何况是在全球一体化后的这样一个大舞台上。<br />
　　科技的发展，对于我们生活的改变是可想而知的，而互联网的发展也是非常显著的。如今，网页制作者们，也不得不为了适应国际化的发展趋势，开始制作支持多国语言的网站，由此也催生出了各式各样的国际化的框架。而本文将向您介绍一种基于 Web 2.0，利用 Javascript 脚本，通过 AJAX 技术实现无刷新的将您的网页进行国际化转换的方法——<a href="http://hpyer.cn/codes/l10n-by-javascript">L10n By Javascript</a>。<br />
　　该脚本的设计构思，是来源于 PHP 的 <a href="http://savannah.nongnu.org/projects/php-gettext/" target="_blank">gettext</a> 框架，它可以说是 PHP 下最好的国际化方法，其相关资料大家可以 <a href="http://www.google.com/" target="_blank">google</a> 一番，就不再次详述。此外，由于该脚本是用 Javascript 编写的，所以其采用了时下最流行的 Javascript 类库——<a href="http://jquery.com" target="_blank">jQuery</a>，并撰写为一款 <a href="http://plugins.jquery.com/l10n-by-javascript" target="_blank">jQuery 插件</a>，从而可以方便的使用。<br />
　　和 <a href="http://savannah.nongnu.org/projects/php-gettext/" target="_blank">PHP gettext</a> 类似，<a href="http://hpyer.cn/codes/l10n-by-javascript">L10n By Javascript</a> 的翻译，将经历如下的步骤：</p>
<ol>
<li>在源文件（网页，如：.html 文件）中直接用英文表述</li>
<li>定义各种需要的语言资源文件（.xml 文件）</li>
<li>然后通过脚本读取一个事先定义语言资源文件</li>
<li>接着对需要翻译的原文进行匹配。如果有匹配的译文，则直接替换为译文；如果没有相应的译文，则保留原文不变。</li>
</ol>
<p>下面是一个简单的例子：</p>
<pre>&lt;html&gt;
&lt;head&gt;
&lt;title&gt;A simple example&lt;/title&gt;
&lt;script src="jquery.js" language="JavaScript" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="jquery.l10n.js" language="JavaScript" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$.l10n.init({
	"dir": "./languages",  // 语言资源文件的访问路径
	"lang": "zh_CN",  // 翻译的目标语言代码
	"cache": true  // 是否读取缓存中的数据
});
&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;script type="text/javascript"&gt;
// 直接翻译
document.write($.l10n.__("Words need to be translated"));
// 或者
$.l10n._e("Words need to be translated");
&lt;/script&gt;

&lt;!-- 间接翻译 --&gt;
&lt;span&gt;Words need to be translated&lt;/span&gt;
&lt;script type="text/javascript"&gt;
$("span").l10n();  // 翻译所有 &lt;span&gt; 元素。一般情况下建议在文档完全载入后再执行该方法
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>　　虽然目前的 <a href="http://hpyer.cn/codes/l10n-by-javascript">L10n By Javascript</a> 还是个不成熟的插件，但是相信它将来定会成为一个非常不错的国际化程序。</p>
]]></content:encoded>
			<wfw:commentRss>http://hpyer.cn/web-internationalization-with-javascript.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>插件 WordPress Thread Comment</title>
		<link>http://hpyer.cn/wordpress-thread-comment.html</link>
		<comments>http://hpyer.cn/wordpress-thread-comment.html#comments</comments>
		<pubDate>Wed, 18 Jun 2008 11:18:58 +0000</pubDate>
		<dc:creator>Hpyer</dc:creator>
				<category><![CDATA[WordPress 扩展]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reply]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[回复]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://hpyer.cn/?p=60</guid>
		<description><![CDATA[　　似乎很久没推荐过插件了，呵呵，今天来推荐个 Wordpress Thread Comment ，这也是我现在所用的评论插件。原来所用的 Ajax Comments-Reply 对于主题的支持似乎不是十分的到位，也就是样子略显难看了点，呵呵~~不过这点上我要为 <a href="http://zhiqiang.org/blog/" target="_blank">zhiqiang</a> 澄清一下，不能怪作者，而是我懒得去修改样式。这个插件除了兼容 W3C 支持，无需对主题进行修改、嵌套或成串显示相关讨论、AJAX 的无刷新评论等常见特点外，其强大的管理功能，例如：是否启用 AJAX功能、是否电邮通知原评论人有新的评论回复、自定义的HTML、PHP 和 CSS 等等，也是其他同类插件所无法比拟的。所以，“背叛”Ajax Comments-Reply，而“转投”Wordpress Thread Comment 也是不得已而为之呀...]]></description>
			<content:encoded><![CDATA[<p>　　似乎很久没推荐过插件了，呵呵，今天来推荐个 WordPress Thread Comment ，这也是我现在所用的评论插件。原来所用的 Ajax Comments-Reply 对于主题的支持似乎不是十分的到位，也就是样子略显难看了点，呵呵~~不过这点上我要为 <a href="http://zhiqiang.org/blog/" target="_blank">zhiqiang</a> 澄清一下，不能怪作者，而是我懒得去修改样式。这个插件除了兼容 W3C 支持，无需对主题进行修改、嵌套或成串显示相关讨论、AJAX 的无刷新评论等常见特点外，其强大的管理功能，例如：是否启用 AJAX功能、是否电邮通知原评论人有新的评论回复、自定义的HTML、PHP 和 CSS 等等，也是其他同类插件所无法比拟的。所以，“背叛”Ajax Comments-Reply，而“转投”Wordpress Thread Comment 也是不得已而为之呀~~</p>
<p><em><strong>注：如果需要使用AJAX，在主题中的评论的对象必须依从Wordpress主题标准，有“comment-xxx”这个ID，否则将无法使用AJAX功能。目前仍有少数主题不支持。</strong></em></p>
<p>下载<br />
本站：<a class="downloadlink" href="http://hpyer.cn/files/wp-plugin-wordpress-thread-comment.zip" title="版本 1.4.9.1 已下载 168 次" >Wordpress Thread Comment 多国语言版 (168) - 263.02 kB</a><br />
原站：<a href="http://blog.2i2j.com/plugins/wordpress-thread-comment" target="_blank">http://blog.2i2j.com/plugins/wordpress-thread-comment</a></p>
<p>安装</p>
<ul>
<li>下载并解压。</li>
<li>将此 wordpress-thread-comment 文件夹上传到Wordpress的插件目录：“WordPress根目录/wp-content/plugins/”。</li>
<li>在后台的“插件”页激活 / 启用本插件。</li>
<li>检查已有评论下是否出现了“回复此评论”（也可能是英文的“Reply”）的链接。</li>
<li>其它设置，如 AJAX 和 HTML / CSS 等请到后台的“设置”页。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://hpyer.cn/wordpress-thread-comment.html/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>插件 WordPress Plugin Ajax Comments-Reply</title>
		<link>http://hpyer.cn/wordpress-plugin-ajax-comments-reply.html</link>
		<comments>http://hpyer.cn/wordpress-plugin-ajax-comments-reply.html#comments</comments>
		<pubDate>Wed, 26 Mar 2008 11:46:05 +0000</pubDate>
		<dc:creator>Hpyer</dc:creator>
				<category><![CDATA[WordPress 扩展]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[reply]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[回复]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://hpyer.cn/wordpress-plugin-ajax-comments-reply.html</guid>
		<description><![CDATA[插件作者 zhiqiang (http://zhiqiang.org/blog/) 最新版本 v2.5.5 build 20080315 插件说明 一个还不错的评论管理插件(Made in China 噢~~), 使用上还可以. 可以直接回复别人留言，使得讨论更有针对性。 立即下载 如何安装 禁用已安装的旧版本 (如果你安装过以前的版本的话) 解压缩您下载到压缩包 (可以在第一步之前) 上传/复制 ajaxcomment 文件夹到 wp-content/plugins 目录下 到插件管理页启用插件 其他问题请直接访问作者的插件主页]]></description>
			<content:encoded><![CDATA[<p><!--TOC--></p>
<h3>插件作者</h3>
<ul>
<li>zhiqiang (<a href="http://zhiqiang.org/blog/" target="_blank">http://zhiqiang.org/blog/</a>)</li>
</ul>
<h3>最新版本</h3>
<ul>
<li>v2.5.5 build 20080315</li>
</ul>
<h3>插件说明</h3>
<p>一个还不错的评论管理插件(Made in China 噢~~), 使用上还可以. 可以直接回复别人留言，使得讨论更有针对性。</p>
<h3>立即下载</h3>
<ul>
<li><a class="downloadlink" href="http://hpyer.cn/files/wp-plugin-AjaxComment-all-in-one.zip" title="版本 2.5.5 已下载 143 次" >Ajax Comments (143) - 54.09 kB</a></li>
</ul>
<h3>如何安装</h3>
<ol>
<li><strong>禁用已安装的旧版本</strong> (如果你安装过以前的版本的话)</li>
<li>解压缩您下载到压缩包 (可以在第一步之前)</li>
<li>上传/复制 ajaxcomment 文件夹到 wp-content/plugins 目录下</li>
<li>到插件管理页启用插件</li>
</ol>
<p>其他问题请直接访问作者的<a href="http://zhiqiang.org/blog/plugin/ajaxcomment" target="_blank">插件主页</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hpyer.cn/wordpress-plugin-ajax-comments-reply.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

