这次为大家带来的是利用Google API为BlogEngine添加标题自动翻译功能,应用在日志和自定义页面的URL别名上。
修改方法如下:木子博客Http://www.moozi.net版权所有,如果任何疑问,请给我留言
修改BlogEngine.Web/admin/Add_entry.aspx 在<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server">后添加 <script type="text/javascript" src="http://www.google.com/jsapi"></script>
在<script type="text/javascript">...</script>中加入以下Javascript代码:
找到<asp:TextBox runat="server" ID="txtSlug" TabIndex="9" Width="400" />,把它后面的<a...></a>改成: <a href="javascript:void(GetTranslate());">Translate from title</a>
对BlogEngine.Web/admin/Pages.aspx作同样的修改,这次改进就完成了
本日志由 moozi 于 2008-08-07 07:50 发表到 BlogEngine 中, 目前已经被浏览 17 次,评论 1 次;
作者添加了以下标签: blogengine, 翻译, google api;
Trackback from 木子博客 为BlogEngine添加标题自动翻译功能
CopyRight © 2008 BlogEngine.NET 1.4.5.0 Modify By Moozi.NET 冀ICP备07501045号