diff --git a/README.md b/README.md index e7eab44..8ee6277 100644 --- a/README.md +++ b/README.md @@ -1,48 +1,49 @@ -

sd-webui-zh_cn

+[中文文档](README_ZH.md) -# sd-webui-zh_cn -[Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 双语对照翻译插件 +

sd-webui-bilingual-localization

-![Snipaste_2023-02-26_16-53-50](https://user-images.githubusercontent.com/16256221/221403701-a972abe4-8ca8-40d6-a867-5732377eaafe.png) -
-展开截图 - -
+# sd-webui-bilingual-localization +[Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) bilingual localization extensions. -## 功能 -- 全界面双语对照翻译,包括设置界面/ControlNet插件等 -- 支持 prompt 翻译 +![Snipaste_2023-02-28_00-23-45](https://user-images.githubusercontent.com/16256221/221622328-a4e46b1c-f202-4a41-9a56-3df96c823f42.png) -## 安装 +## Features +- Bilingual translation, no need to worry about how to find the original button. +- Compatible with language pack extensions, no need to re-import. -以下方式选择其一,需要使用支持扩展功能的 webui (2023年之后的版本) +## Installation -### 方式1 +Choose one of the following methods, Need to use webui with extension support (Versions after 2023) -使用 webui 提供的`Install from URL`功能安装 +### Method 1 -按下图所示,依次点击Extensions - Install from URL +Use the `Install from URL` provided by webui to install -然后在第一个文本框内填入`https://github.com/journey-ad/sd-webui-zh_cn.git`,点击Install按钮 +Click in order Extensions - Install from URL -![Snipaste_2023-02-26_15-26-11](https://user-images.githubusercontent.com/16256221/221398043-764f6b63-53c2-4700-88c4-e8c73576ded8.png) +Then fill in the first text box with `https://github.com/journey-ad/sd-webui-bilingual-localization`, click the Install button. +![Snipaste_2023-02-28_00-27-48](https://user-images.githubusercontent.com/16256221/221625310-a6ef0b4c-a1e0-46bb-be9c-6d88cd0ad684.png) -之后切换到Installed面板,点击Apply and restart UI按钮 - -![Snipaste_2023-02-26_16-00-39](https://user-images.githubusercontent.com/16256221/221399100-fe6af1d2-f7e2-4abe-bd02-9598db6afaca.png) +After that, switch to the Installed panel and click the Apply and restart UI button. +![Snipaste_2023-02-28_00-29-14](https://user-images.githubusercontent.com/16256221/221625345-9e656f25-89dd-4361-8ee5-f4ab39d18ca4.png) -### 方式2 +### Method 2 -手动克隆到你的扩展目录里 +Clone to your extension directory manually. ```bash -git clone "https://github.com/journey-ad/sd-webui-zh_cn.git" extensions/sd-webui-zh_cn +git clone https://github.com/journey-ad/sd-webui-bilingual-localization extensions/sd-webui-bilingual-localization ``` -或者在扩展目录创建一个名为`sd-webui-zh_cn`的文件夹,下载仓库文件,将 `javascript`和`i18n`文件夹放在其中 +## Usage -## Credits +> **⚠️Important⚠️** +> Make sure Settings - User interface - Localization is set to `None` -[VinsonLaro/stable-diffusion-webui-chinese](https://github.com/VinsonLaro/stable-diffusion-webui-chinese) -[dtlnor/stable-diffusion-webui-localization-zh_CN](https://github.com/dtlnor/stable-diffusion-webui-localization-zh_CN) +In Settings - Bilingual Localization panel, select the localization file you want to enable and click on the Apply settings and Reload UI buttons in turn. +![Snipaste_2023-02-28_00-04-21](https://user-images.githubusercontent.com/16256221/221625729-73519629-8c1f-4eb5-99db-a1d3f4b58a87.png) + +## How to get localization file + +Localization files are no longer provided with the plugin, please install a third-party language extensions and set it up as described in the [Usage](#usage) section of this article. diff --git a/README_ZH.md b/README_ZH.md new file mode 100644 index 0000000..974694d --- /dev/null +++ b/README_ZH.md @@ -0,0 +1,51 @@ +[English Version](README.md) + +

sd-webui-bilingual-localization

+ +# sd-webui-bilingual-localization +[Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui) 双语对照翻译插件 + +![Snipaste_2023-02-28_00-23-45](https://user-images.githubusercontent.com/16256221/221622328-a4e46b1c-f202-4a41-9a56-3df96c823f42.png) + +## 功能 +- 全新实现的双语对照翻译功能,不必再担心切换翻译后找不到原始功能 +- 兼容原生语言包扩展,无需重新导入多语言语料 + +## 安装 + +以下方式选择其一,需要使用支持扩展功能的 webui (2023年之后的版本) + +### 方式1 + +使用 webui 提供的`Install from URL`功能安装 + +按下图所示,依次点击Extensions - Install from URL + +然后在第一个文本框内填入`https://github.com/journey-ad/sd-webui-bilingual-localization`,点击Install按钮 +![Snipaste_2023-02-28_00-27-48](https://user-images.githubusercontent.com/16256221/221625310-a6ef0b4c-a1e0-46bb-be9c-6d88cd0ad684.png) + +之后切换到Installed面板,点击Apply and restart UI按钮 +![Snipaste_2023-02-28_00-29-14](https://user-images.githubusercontent.com/16256221/221625345-9e656f25-89dd-4361-8ee5-f4ab39d18ca4.png) + + +### 方式2 + +手动克隆到你的扩展目录里 + +```bash +git clone https://github.com/journey-ad/sd-webui-bilingual-localization extensions/sd-webui-bilingual-localization +``` + +## 使用 + +> **⚠️重要⚠️** +> 确保Settings - User interface - Localization 已设置为了 `None` + +在Settings - Bilingual Localization中选择要启用的本地化文件,依次点击Apply settingsReload UI按钮 +![Snipaste_2023-02-28_00-04-21](https://user-images.githubusercontent.com/16256221/221625729-73519629-8c1f-4eb5-99db-a1d3f4b58a87.png) + +## 获取本地化文件 + +本地化文件不再随插件提供,请安装第三方语言包并按照本文[使用](#使用)部分的方式设置使用 + +*预览图片中的语言包可以在这里找到 https://gist.github.com/journey-ad/d98ed173321658be6e51f752d6e6163c*