# SD web UI 日本語化プロジェクト
## これはなに
日本語訳用の言語ファイルです。 [AUTOMATIC1111版Stable Diffusion web UI](https://github.com/AUTOMATIC1111/stable-diffusion-webui)で使用します。
## 翻訳がおかしい/翻訳を手伝う📘
### [Crowdin](https://crowdin.com/project/stable-diffusion-webui-localization-ja_JP/invite?h=cb87e52376d1e1f2ba920b1a8bcccebe1650449)から翻訳ができます!
Crowdinの使い方に関して、[sp8999](https://twitter.com/sp8999)さんがまとめてくださいました!
[コチラの記事](https://sp8999.com/stable-diffusion/2023/03/20/870/)からどうぞ!
翻訳のソースは[stable-diffusion-webui-localization-source](https://github.com/harukaxxxx/stable-diffusion-webui-localization-source)からお借りしています
また、ご自身で翻訳を始めたいという方へ向けて[テンプレート](https://github.com/Katsuyuki-Karasawa/stable-diffusion-webui-localization-template)を公開しています!
## 2ヶ国語同時表示対応について
以下のように2ヶ国語同時表示を可能にする[Bilingual Localization](https://github.com/journey-ad/sd-webui-bilingual-localization)拡張機能との併用を推奨します。
**バイリンガル対応の拡張機能を標準で組み込んでおり、有効化すればすぐに使えます!** ([9d2551d](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/9d2551d593a683d3bd3344cf708df85648210e1c)以降)
詳しくは[Bilingual-Localizationの利用方法](#Bilingual-Localizationの利用方法)をご覧ください

### バイリンガル拡張機能が動作しない!
webuiの[9d2551d](https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/9d2551d593a683d3bd3344cf708df85648210e1c)のコミットから`git submodule`がサポートされました。
これにより、古いバージョンでのバイリンガル拡張機能の組み込みは機能しません。
継続してご利用されたい方は、webui側のアップデートを行う、もしくはご自身で[Bilingual Localization](https://github.com/journey-ad/sd-webui-bilingual-localization)のインストールを行ってください。
# Getting Started
## インストール
1. Extensionsタブをクリックし、Availableをクリックします。
2. `Extension index URL`が以下のURLであることを確認したらLoad From:をクリックします。

```
https://raw.githubusercontent.com/wiki/AUTOMATIC1111/stable-diffusion-webui/Extensions-index.md
```
or
```
https://raw.githubusercontent.com/Katsuyuki-Karasawa/sd.webui-Extension-ja_JP/main/index.json
```
3. 読込まれたことが確認できたら、`Hide extensions with tags`をlocalization**以外**にチェックマークを付けます。(localizationにはつけません)
4. 各言語が出てきますので、`ja_JP Localization`の項目のInstallをクリックします。

5. `Installed into...`と表示されたら、[利用方法](#利用方法)へ移動してください。
その他のインストール方法
## 拡張機能のリポジトリのURLからインストール
1. Extensionsタブをクリックし、`URL for extension's git repository`のテキストボックスに以下のURLをペーストします。
```
https://github.com/Katsuyuki-Karasawa/stable-diffusion-webui-localization-ja_JP
```
2. Installをクリックします。
3. `Installed into...`と表示されたら、[利用方法](#利用方法)へ移動してください。

## 手動でインストール
1. [zipファイル](https://github.com/Katsuyuki-Karasawa/stable-diffusion-webui-localization-ja_JP/archive/refs/heads/main.zip)をダウンロードします。
2. ダウンロードしたzipを`stable-diffusion-webui`以下の`extensions`に移動させます。

3. zipファイルを右クリックして、**すべて展開**します。
4. 展開されたことが確認できたら、[利用方法](#利用方法)へ移動してください。
## 日本語化ファイルを直接読み込む(非推奨)
**この手順はWeb UIからのアップデートができません。**
**また、この手順はアップデートにて廃止される可能性があるためご注意ください。**
1. [jsonファイル](https://raw.githubusercontent.com/Katsuyuki-Karasawa/stable-diffusion-webui-localization-ja_JP/main/localizations/ja_JP.json)にアクセスする。
2. 右クリックから`名前を付けて保存...`、もしくは`Ctrl+S`で保存します。

3. 保存先は`stable-diffusion-webui`以下の`localizations`です。

4. 保存されたことを確認したら、[利用方法](#利用方法)へ移動してください。
## 利用方法
### 日本語化ファイルを読み込む
1. Settingsタブへ移動します。
2. Settingsタブから`Localization (requires restart)`の項目を探します。

3. ドロップダウンリストから`ja-JP`を選択します。(もし、出てこない場合は右側の🔄から再読込してください。)
### Bilingual-Localizationの利用方法
- Settings - Bilingual Localizationパネルから、`ja_JP`を選択

> **⚠️注意⚠️**
Settings - User interface - Localizationが`None`に設定されていることを確認してください。
### 設定を適用する
1. ページ上部のオレンジ色のボタン(Apply settings)をクリックして設定を保存します。

2. ページ下部のオレンジ色のボタン(Restart Gradio and Refresh components)をクリックして、web UIを再起動します。

## ディレクトリ構造
```
📦 main branch
├─ .github
│ └─ workflows
│ ├─ Merge.yaml
│ ├─ translation_progress.yaml
│ └─ update-source.yaml
├─ .gitignore
├─ LICENSE
├─ README.md
├─ crowdin.yml
├─ images
├─ javascript
│ └─ bilingual_localization.js
├─ localizations
│ └─ ja_JP.json - 実際にWebUIで使用する言語ファイル
├─ scripts
│ └─ bilingual_localization_helper.py
├─ template
│ ├─ ja_JP - 翻訳の後のソースになる部分 マージすると/localizaions/ja_JP.jsonになる
│ │ ├─ ExtensionList.json
│ │ ├─ StableDiffusion.json
│ │ └─ extensions
│ │ └─ extension.json
│ └─ source - 翻訳前のソースとなる部分
│ ├─ ExtensionList.json
│ ├─ StableDiffusion.json
│ └─ extensions
│ └─ extension.json
└─ tools - いろいろなツール群
```
- `/localizations/ja_JP.json` - 実際にWebUIで使用される言語ファイル `Merge.yaml`を手動実行し、マージする
- `/template/source/`以下 - `update_source.yaml`で[翻訳ソース](https://github.com/harukaxxxx/stable-diffusion-webui-localization-source)から取得してきたファイル こちらには基本変更を加えません
- `/template/ja_JP/`以下 - Crowdinなどで翻訳後に出力されるファイル **もし直接翻訳のPRを出す場合はこちらになります**
## ローカライズの進捗
WebUI
- [x]  [ExtensionList](https://raw.githubusercontent.com/wiki/AUTOMATIC1111/stable-diffusion-webui/Extensions-index.md)
- [x]  [StableDiffusion](https://github.com/AUTOMATIC1111/stable-diffusion-webui)
拡張機能
- [x]  [DreamArtist-sd-webui-extension](https://github.com/7eu7d7/DreamArtist-sd-webui-extension)
- [x]  [SD-latent-mirroring](https://github.com/dfaker/SD-latent-mirroring)
- [x]  [a1111-sd-webui-haku-img](https://github.com/KohakuBlueleaf/a1111-sd-webui-haku-img)
- [x]  [a1111-sd-webui-tagcomplete](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete)
- [x]  [a1111-stable-diffusion-webui-vram-estimator](https://github.com/space-nuko/a1111-stable-diffusion-webui-vram-estimator)
- [x]  [auto-sd-paint-ext](https://github.com/Interpause/auto-sd-paint-ext)
- [x]  [deforum-for-automatic1111-webui](https://github.com/deforum-art/deforum-for-automatic1111-webui)
- [x]  [novelai-2-local-prompt](https://github.com/animerl/novelai-2-local-prompt)
- [x]  [openOutpaint-webUI-extension](https://github.com/zero01101/openOutpaint-webUI-extension)
- [x]  [openpose-editor](https://github.com/fkunn1326/openpose-editor)
- [x]  [posex](https://github.com/hnmr293/posex)
- [x]  [sd-3dmodel-loader](https://github.com/jtydhr88/sd-3dmodel-loader)
- [ ]  [sd-dynamic-prompts]()
- [x]  [sd-model-preview-xd](https://github.com/CurtisDS/sd-model-preview-xd)
- [x]  [sd-webui-additional-networks](https://github.com/kohya-ss/sd-webui-additional-networks)
- [x]  [sd-webui-bilingual-localization](https://github.com/journey-ad/sd-webui-bilingual-localization)
- [x]  [sd-webui-controlnet](https://github.com/Mikubill/sd-webui-controlnet)
- [x]  [sd-webui-depth-lib](https://github.com/jexom/sd-webui-depth-lib)
- [x]  [sd-webui-llul](https://github.com/hnmr293/sd-webui-llul)
- [x]  [sd-webui-tunnels](https://github.com/Bing-su/sd-webui-tunnels)
- [ ]  [sd_dreambooth_extension]()
- [x]  [sd_smartprocess](https://github.com/d8ahazard/sd_smartprocess)
- [x]  [seed_travel](https://github.com/yownas/seed_travel)
- [x]  [stable-diffusion-webui-aesthetic-gradients](https://github.com/AUTOMATIC1111/stable-diffusion-webui-aesthetic-gradients)
- [x]  [stable-diffusion-webui-aesthetic-image-scorer](https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer)
- [x]  [stable-diffusion-webui-artists-to-study](https://github.com/camenduru/stable-diffusion-webui-artists-to-study)
- [x]  [stable-diffusion-webui-conditioning-highres-fix](https://github.com/klimaleksus/stable-diffusion-webui-conditioning-highres-fix)
- [x]  [stable-diffusion-webui-daam](https://github.com/toriato/stable-diffusion-webui-daam)
- [x]  [stable-diffusion-webui-dataset-tag-editor](https://github.com/toshiaki1729/stable-diffusion-webui-dataset-tag-editor)
- [x]  [stable-diffusion-webui-depthmap-script](https://github.com/thygate/stable-diffusion-webui-depthmap-script)
- [x]  [stable-diffusion-webui-embedding-editor]()
- [x]  [stable-diffusion-webui-images-browser]()
- [x]  [stable-diffusion-webui-inspiration](https://github.com/yfszzx/stable-diffusion-webui-inspiration)
- [x]  [stable-diffusion-webui-pixelization](https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization)
- [x]  [stable-diffusion-webui-randomize]()
- [x]  [stable-diffusion-webui-text2prompt](https://github.com/toshiaki1729/stable-diffusion-webui-text2prompt)
- [x]  [stable-diffusion-webui-tokenizer](https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer)
- [x]  [stable-diffusion-webui-two-shot](https://github.com/opparco/stable-diffusion-webui-two-shot)
- [x]  [training-picker](https://github.com/Maurdekye/training-picker)
- [x]  [ultimate-upscale-for-automatic1111](https://github.com/Coyote-A/ultimate-upscale-for-automatic1111)
- [x]  [unprompted](https://github.com/ThereforeGames/unprompted)
- [x]  [multidiffusion-upscaler-for-automatic1111](https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111)
- [x]  [stable-diffusion-webui-rembg](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg)
- [x]  [shift-attention](https://github.com/yownas/shift-attention)
- [x]  [sd-webui-aspect-ratio-helper](https://github.com/thomasasfk/sd-webui-aspect-ratio-helper)
- [x]  [stable-diffusion-webui-state](https://github.com/ilian6806/stable-diffusion-webui-state)
- [x]  [stable-diffusion-webui-wd14-tagger]()
- [x]  [sd-webui-cutoff]()
- [x]  [stable-diffusion-webui-auto-translate-language]()
- [x]  [stable-diffusion-webui-blip2-captioner]()
- [x]  [stable-diffusion-webui-cafe-aesthetic]()
## Special Thanks!✨