Please upgrade cpedialog to version 2.0 RC to fix the permanent link error
cpedialog 的 permanent link 是通过调用 Google Translate 站点而得到的,由于 Google 最近更新了 translate 站点,导致 cpedialog 不能计算正确的 permanent link。
本来打算替换使用 Microsoft 的翻译服务,因为 Microsoft 的翻译服务不像 Google 仅仅只是提供了一个 Ajax API. cpedialog 需要在后台对 permanent link 做一些处理和判断,通过js前端获取后传到后台并不是很方便。但是通过仔细阅读 Google AJAX Language API 的文档后发现,原来 Google 是提供了直接调用的 REST API 的,具体可以参考:Class Reference for Translation API, 于是赶紧使用新的 API 修复了这个严重的问题.
这次发布的2.0RC版本还修复了其他一些bug,并对界面做了细微的调整。
PS:感谢网友celeron首先报告该问题。
Reactions