WP Manifestindependent plugin directory
manifest / i18n / wptranslate

小半多语言翻译 WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

WordPress 小半多语言翻译 免费翻译插件

★ 7stars
33release downloads
≈10active sites
样式latest · 2 years ago

Install

Download wptranslate.zip From the 样式 release on GitHub, Sep 29, 2024

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wujiit/wptranslate/releases/download/%E6%A0%B7%E5%BC%8F/wptranslate.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

这款插件是基于translate翻译服务实现的WordPress网页自动翻译,只能实现前端翻译,如果要实现HTML源码翻译,可以联系官方使用他们的TCDN服务。

插件名称:小半多语言翻译(WPTR)

功能:

可以设置翻译按钮显示位置(网页顶部、底部、菜单、小工具)
如果设置了小工具,需要到后台小工具去添加翻译按钮
网页顶部和底部是直接显示语言切换按钮
菜单和小工具是有一个Language按钮带Emoji符号,点击了才能出现语言切换框
自定义语言(图标可以不设置)
用的client.edge方式(就是基于微软翻译来实现),我没有把官方所有内容看完,稳定性、速度大概率会受微软翻译影响吧?

默认改为本地调用translate.js文件,没有用官方的staticfile,可以自己把translate.js上传到对象存储加权限,改为远程调用.
默认会根据用户客户端ip自动显示对应语言(有设置的前提下),官方说准确率为96%。

其他说明:

翻译按钮显示错乱或者按钮无反应,是因为和你的主题不兼容,最完美的兼容是联系你的主题作者内置.

怎么把本地调用translate.js文件改成远程调用?

先把translate.js文件上传到你的对象存储里面。(或者看看大厂提供的静态资源库有没有这个)
然后复制对应的translate.js文件链接。

修改插件代码158行,把远程translate.js链接填写进来,删掉注释,然后给本地调用159的代码加上注释保存就行了。
如果是用自己的对象存储,一定要加只能自己网站调用的权限以及禁止直接访问!

常见语言简码:

简体中文:chinese_simplified
繁体中文:chinese_traditional
英文:english
韩语:korean
日语:japanese
法语:french
德语:deutsch
意大利语:italian

Releases

2 releases. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
样式 latest
Sep 29, 2024 2 years ago
wptranslate.zip
22
Sep 17, 2024 2 years ago
wptranslate.zip
11

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

小半多语言翻译 1.3 · audited by WP Registry

No security issues found.

Audited release
1.3
Findings
none
Worst severity
—
Content hash
d786a9a35d6e3c46e1825563…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.