=== WP Chinese Conversion === Contributors: Ono Oogami Donate link: http://oogami.name/donate/ Tags: chinese,中文,繁体,简体,繁简转换,Chinese Simplified,Chinese Traditional, widget, sidebar Requires at least: 2.6 Tested up to: 2.7.1 Stable tag: 1.1.2 Adds the language conversion function between Chinese Simplified and Chinese Traditional to your WP Blog . Released under GPL license. == Description == This plugin is designed for Chinese bloggers. It adds the language conversion function between Chinese Simplified and Chinese Traditional to your WP Blog . The conversion is done in the server-side using a conversion table copied from Mediawiki. To use this plugin, just activate it and add the widget to the sidebar .The widget will output the Chinese Simplfied/ Traditional Version's link of current page. 这个插件为中文Blogger设计,提供完整的基于服务器端的中文繁简转换解决方案.相比用Javascript进行客户端繁简转换,本插件提供的转换功能更为专业和可靠,支持六种中文语言: 简体中文(zh-hans), 繁体中文(zh-hant) , 台湾正体(zh-tw), 港澳繁体(zh-hk), 马新简体(zh-sg)和大陆简体(zh-cn) ;并且提供更多其它特性.缺点是比较耗费资源,建议配合WP的缓存类插件使用.本插件的繁简转换表和核心转换技术均来源于Mediawiki, 最早由中文维基的zhengzhu同学发明. 使用方法:激活插件后到侧边栏添加本插件的Widget即可.插件将在后台"Options"菜单里增加"Chinese Conversion"子菜单,可以在这里更改设置.你可以到[我的博客](http://oogami.name/ "Demo Link")查看演示 . 侧边栏的右上方为本插件输出的Widget效果.(CSS是另加的) 最新版本: Version 1.1.2 * 后台可设置不转换部分HTML标签里中文. 术语定义 : * 页面原始版本: 即您博客页面的原始内容,不进行中文繁简转换,内容繁简共存. 这个页面URL就是您原来的Permalink . * 中文转换版本: 本插件生成的页面版本,把数据库中内容进行中文转换后输出.输出的中文类型共六种: 简体中文(zh-hans), 繁体中文(zh-hant) , 台湾正体(zh-tw), 港澳繁体(zh-hk), 马新简体(zh-sg)和大陆简体(zh-cn). 特性(Features) : * 繁简转换页面URL支持/permalink/to/your/original/post/?variant=zh-xx和 /permalink/to/your/original/post/zh-xx/两种形式.(zh-xx为语言代码) * 基于词语繁简转换.如 "网络" 在台湾正体(zh-tw)里会被转换为 "網路". * 自动在转换后版本页面加上noindex的meta标签,避免搜索引擎重复索引. * 使用Cookie保存访客语言偏好.插件将记录浏览者最后一次访问时的页面语言,在浏览者再次访问显示对应版本.(此功能默认不开启) * 自动识别浏览器语言. 插件将识别用户浏览器首选中文语言,并显示对应版本页面.(此功能默认不开启) * 中文搜索字词转换功能. 搜索字词简繁体通用,数据库里同时搜索多个版本. 例如, 假如访客在浏览您博客页面时通过表单提交了关键词为 "網路" 的搜索, 如果您的文章里有 "网络"这个词 ,则这篇文章也会被放到搜索结果里返回. (此功能默认不开启) 如果使用缓存插件(WP Super cache, Hyper Cache, etc), 上面部分功能(识别浏览器语言,使用Cookie保存访客语言偏好)将失效. 在以后的版本里可能加入对缓存插件的支持. == Installation == Upload the WPCC plugin to your , Activate it, To use this plugin, just add it's widget to the sidebar .The widget will output the Chinese Simplfied/ Traditional Version's link of current page. You can also use the <?php wpcc_output_navi(); ?> tag in your template. 上传插件, 激活. 然后直接到侧边栏里添加本插件的Widget即可. Widget里已经定义好了相应元素的class 和id ,请自己加CSS . 你也可以在模板中调用 <?php wpcc_output_navi(); ?> 标签. Widget将输出当前页面各种中文版本的导航链接. 如果你想自定义输出内容, 可以参考下面的代码,,在模板里添加. ' ; $output .= '不转换' ; foreach($wpcc_langs_urls as $key=>$value){ $output .= '' . $wpcc_langs[$value][2] . '' ; // $wpcc_langs[$value][2]为语言名称,如 "简体中文", "港澳繁體", "臺灣正體"等 } $output .=''; echo $output ; ?> 设置本插件请到后台"Options"菜单里的"Chinese Conversion"子菜单页. == Screenshots == Not yet. But you can see demo in [my blog](http://oogami.name/ "Demo Link") == Frequently Asked Questions == Not available currently.