We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Cockpit的默认语言是:en 我们使用了2中语言en_US和zh_CN,Cockpit会自动根据浏览器选择默认语言,当用户的浏览器是en_US和zh_CN时,一切正常; 当非这两种语言时,cockpit将使用默认语言:en,那就意味着有些翻译是失效的,比如W9_ 开头了,都会显示原始的值,比如:W9_SSH_PORT_SET。 是因为在cockpit中,W9_SSH_PORT_SET 这个在网页中设定的值,cockpit就把它当成是默认语言en,所以当语言不匹配时,会直接显示。
涉及影响:appstore和myapps 插件
The text was updated successfully, but these errors were encountered:
在目前的情况下,修改方案: 1、因为前端实际显示的是:W9_ ,官方默认把它当做 en 语言,现在可以做一个json文件,将所有的 W9_ 都对应好 英文,例如: {"W9_HTTP_PORT_SET": "App HTTP Port"} 2、修改前端代码,读取json文件,根据key值,获取实际值,并显示,也就是将原先显示W9_ 的地方,根据json数据显示为标准英文; 3、将原先po.zh_CN.js中文翻译文件中的 W9_ 开头的数据修改为 英文:
{"W9_HTTP_PORT_SET": "App HTTP Port"}
"App HTTP Port": [ null, "应用HTTP端口" ]
Sorry, something went wrong.
zhaojing1987
qiaofeng1227
No branches or pull requests
Describe the bug
Cockpit的默认语言是:en
我们使用了2中语言en_US和zh_CN,Cockpit会自动根据浏览器选择默认语言,当用户的浏览器是en_US和zh_CN时,一切正常;
当非这两种语言时,cockpit将使用默认语言:en,那就意味着有些翻译是失效的,比如W9_ 开头了,都会显示原始的值,比如:W9_SSH_PORT_SET。
是因为在cockpit中,W9_SSH_PORT_SET 这个在网页中设定的值,cockpit就把它当成是默认语言en,所以当语言不匹配时,会直接显示。
涉及影响:appstore和myapps 插件
The text was updated successfully, but these errors were encountered: