Asteroid B612

Searx 0.15.0 中文首选项(preferences)HTTP 500问题与解决

Searx默认安装完毕后,中文界面点击首选项会报下述HTTP 500错误

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

通过与繁体翻译文件对比,发现是一个URL在翻译时出错:

msgstr "更改提交表单时使用的请求方法,<a href=\"https://zh.wikipedia.org/wiki/%E8%B6%85%E6%96%87%E6%9C%AC%E4%BC%A0%E8%BE%93%E5%8D%8F%E8%AE%AE#%E8%AF%B7%E6%B1%82%E6%96%B9%E6%B3%95\" rel=\"external\">深入了解请求方法</a>"

正确格式应当为下:

msgstr "更改提交表单时使用的请求方法,<a href=\"https://zh.wikipedia.org/wiki/%%E8%%B6%%85%%E6%%96%%87%%E6%%9C%%AC%%E4%%BC%%A0%%E8%%BE%%93%%E5%%8D%%8F%%E8%%AE%%AE#%%E8%%AF%%B7%%E6%%B1%%82%%E6%%96%%B9%%E6%%B3%%95\" rel=\"external\">深入了解请求方法</a>"

修改后重新生成mo文件并把po与mo文件覆盖到路径/searx/translations/zh_CN/LC_MESSAGES即可。

修改后的文件直接附在附件里了(
zh_CN.zip

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »