fix multiplelanguage issue
parent
95568ac091
commit
6f60b36099
13
README.cn.md
13
README.cn.md
|
|
@ -173,6 +173,11 @@ Enjoy!
|
|||
|
||||
## 常见问题
|
||||
### 4个卡片按钮不显示
|
||||
#### 汉化原因
|
||||
下载新版,最新版已经处理汉化导致的问题。
|
||||
|
||||
|
||||
#### 其他情况
|
||||
首先,确保你点过了"Refresh Civitai Helper"刷新按钮。
|
||||
|
||||
然后,如果还有这个问题,那么唯一原因,是你没有使用最新版SD webui。
|
||||
|
|
@ -181,13 +186,7 @@ Enjoy!
|
|||
|
||||
git在很多时候,会拒绝升级,并告诉你有些冲突需要你手动先解决。如果你不看命令行输出,你就会以为你已经更新成功了,但其实并没有。
|
||||
|
||||
#### 汉化原因
|
||||
这个插件,需要在模型卡片上,找到一段叫"replace preview"的文字。这段文字,是不会被汉化插件汉化的,SD webui的多语言接口,也不会汉化这个地方。所以,按道理是一定能找到的。
|
||||
|
||||
但是,国内某些汉化版,手动修改SD Webui的源码,把这段文字,替换成了"用当前生成图片替换预览"。那这样的话,插件就找不到原本的英文了。于是,4个按钮就无法出现。
|
||||
|
||||
解决方法是,让给你汉化的那个人,把这个地方给改回去。如果不想等人家给你改,你可以自己从SD Webui的源码里,把这段中文,改回`replace preview`。这段文字藏在:
|
||||
`你的SD目录\html\extra-networks-card.html`里面。
|
||||
|
||||
|
||||
### Request model info from civitai
|
||||
意思就是正在连接civitai,如果没有后面的信息,就是连不上,请挂代理。
|
||||
|
|
|
|||
|
|
@ -174,6 +174,13 @@ Enjoy!
|
|||
|
||||
## Common Issue
|
||||
### 4 Button on card didn't show
|
||||
#### Localization
|
||||
There was a Localization issue if you are not using Englist version of SD webui. This is fixed in the latest version of this extension.
|
||||
|
||||
Update to v.1.5.7 to fix it.
|
||||
|
||||
|
||||
#### Other case
|
||||
First of all, make sure you clicked "Refresh Civitai Helper" button.
|
||||
|
||||
If issue is still there, then, only reason is you are not using the latest SD webui. So, Make sure you updated it.
|
||||
|
|
|
|||
|
|
@ -321,6 +321,12 @@ onUiLoaded(() => {
|
|||
let btn_thumb_background = "rgba(0, 0, 0, 0.8)";
|
||||
|
||||
let ch_btn_txts = ['🌐', '💡', '🏷'];
|
||||
let replace_preview_text = getTranslation("replace preview");
|
||||
if (!replace_preview_text) {
|
||||
replace_preview_text = "replace preview";
|
||||
}
|
||||
|
||||
|
||||
|
||||
// get component
|
||||
let ch_always_display_ckb = gradioApp().querySelector("#ch_always_display_ckb input");
|
||||
|
|
@ -424,7 +430,7 @@ onUiLoaded(() => {
|
|||
ul_node.removeChild(atag);
|
||||
} else {
|
||||
//do not remove, just reset
|
||||
atag.innerHTML = "replace preview";
|
||||
atag.innerHTML = replace_preview_text;
|
||||
atag.style.display = null;
|
||||
atag.style.fontSize = null;
|
||||
atag.style.position = null;
|
||||
|
|
@ -462,7 +468,7 @@ onUiLoaded(() => {
|
|||
|
||||
// change replace preview text button into icon
|
||||
if (replace_preview_btn) {
|
||||
if (replace_preview_btn.innerHTML == "replace preview") {
|
||||
if (replace_preview_btn.innerHTML == replace_preview_text) {
|
||||
need_to_add_buttons = true;
|
||||
replace_preview_btn.innerHTML = "🖼";
|
||||
if (!is_thumb_mode) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import hashlib
|
|||
import requests
|
||||
import shutil
|
||||
|
||||
version = "1.5.6"
|
||||
version = "1.5.7"
|
||||
|
||||
def_headers = {'User-Agent': 'Mozilla/5.0 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue