From 934bdb180a97d6689d047bf13fc9f70f6d6913d6 Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Fri, 2 Feb 2024 01:35:49 +0100 Subject: [PATCH] feat: add translations and hint for image prompt parameters --- language/en.json | 9 ++++++++- webui.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/language/en.json b/language/en.json index fd40ca2f..0617ae1e 100644 --- a/language/en.json +++ b/language/en.json @@ -368,5 +368,12 @@ "* Powered by Fooocus Inpaint Engine (beta)": "* Powered by Fooocus Inpaint Engine (beta)", "Fooocus Enhance": "Fooocus Enhance", "Fooocus Cinematic": "Fooocus Cinematic", - "Fooocus Sharp": "Fooocus Sharp" + "Fooocus Sharp": "Fooocus Sharp", + "Drag any image generated by Fooocus here": "Drag any image generated by Fooocus here", + "Metadata": "Metadata", + "Apply Metadata": "Apply Metadata", + "Metadata Scheme": "Metadata Scheme", + "Image Prompt parameters are not included. Use A1111 for compatibility with Civitai.": "Image Prompt parameters are not included. Use A1111 for compatibility with Civitai.", + "Fooocus (json)": "Fooocus (json)", + "A1111 (plain text)": "A1111 (plain text)" } \ No newline at end of file diff --git a/webui.py b/webui.py index 51193fac..cb641b4e 100644 --- a/webui.py +++ b/webui.py @@ -412,7 +412,7 @@ with shared.gradio_root: save_metadata_to_images = gr.Checkbox(label='Save Metadata to Images', value=modules.config.default_save_metadata_to_images, info='Adds parameters to generated images allowing manual regeneration.') metadata_scheme = gr.Radio(label='Metadata Scheme', choices=flags.metadata_scheme, value=modules.config.default_metadata_scheme, - info='Use A1111 for compatibility with Civitai.', + info='Image Prompt parameters are not included. Use A1111 for compatibility with Civitai.', visible=modules.config.default_save_metadata_to_images) save_metadata_to_images.change(lambda x: gr.update(visible=x), inputs=[save_metadata_to_images], outputs=[metadata_scheme],