Skip to content

Commit e0d3325

Browse files
committed
i18n: rename document to documentation
1 parent 5a1003a commit e0d3325

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

language/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"Upscale (1.5x)": "Upscale (1.5x)",
2727
"Upscale (2x)": "Upscale (2x)",
2828
"Upscale (Fast 2x)": "Upscale (Fast 2x)",
29-
"\ud83d\udcd4 Document": "\uD83D\uDCD4 Document",
29+
"\ud83d\udcd4 Documentation": "\uD83D\uDCD4 Documentation",
3030
"Image": "Image",
3131
"Stop At": "Stop At",
3232
"Weight": "Weight",

update_log.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Rename checkbox `Enable Mask Upload` to `Enable Advanced Masking Features` to better hint to mask auto-generation feature
1212
* Get upscale model filepath by calling downloading_upscale_model() to ensure the model exists
1313
* Rename tab titles and translations from singular to plural
14+
* Rename document to documentation
1415
* Update default models to latest versions
1516
* animaPencilXL_v400 => animaPencilXL_v500
1617
* DreamShaperXL_Turbo_dpmppSdeKarras => DreamShaperXL_Turbo_v2_1

webui.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def skip_clicked(currentTask):
189189
uov_input_image = grh.Image(label='Image', source='upload', type='numpy', show_label=False)
190190
with gr.Column():
191191
uov_method = gr.Radio(label='Upscale or Variation:', choices=flags.uov_list, value=flags.disabled)
192-
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/390" target="_blank">\U0001F4D4 Document</a>')
192+
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/390" target="_blank">\U0001F4D4 Documentation</a>')
193193
with gr.TabItem(label='Image Prompt') as ip_tab:
194194
with gr.Row():
195195
ip_images = []
@@ -222,7 +222,7 @@ def skip_clicked(currentTask):
222222
ip_type.change(lambda x: flags.default_parameters[x], inputs=[ip_type], outputs=[ip_stop, ip_weight], queue=False, show_progress=False)
223223
ip_ad_cols.append(ad_col)
224224
ip_advanced = gr.Checkbox(label='Advanced', value=False, container=False)
225-
gr.HTML('* \"Image Prompt\" is powered by Fooocus Image Mixture Engine (v1.0.1). <a href="https://github.com/lllyasviel/Fooocus/discussions/557" target="_blank">\U0001F4D4 Document</a>')
225+
gr.HTML('* \"Image Prompt\" is powered by Fooocus Image Mixture Engine (v1.0.1). <a href="https://github.com/lllyasviel/Fooocus/discussions/557" target="_blank">\U0001F4D4 Documentation</a>')
226226

227227
def ip_advance_checked(x):
228228
return [gr.update(visible=x)] * len(ip_ad_cols) + \
@@ -246,7 +246,7 @@ def ip_advance_checked(x):
246246
label='Additional Prompt Quick List',
247247
components=[inpaint_additional_prompt],
248248
visible=False)
249-
gr.HTML('* Powered by Fooocus Inpaint Engine <a href="https://github.com/lllyasviel/Fooocus/discussions/414" target="_blank">\U0001F4D4 Document</a>')
249+
gr.HTML('* Powered by Fooocus Inpaint Engine <a href="https://github.com/lllyasviel/Fooocus/discussions/414" target="_blank">\U0001F4D4 Documentation</a>')
250250
example_inpaint_prompts.click(lambda x: x[0], inputs=example_inpaint_prompts, outputs=inpaint_additional_prompt, show_progress=False, queue=False)
251251

252252
with gr.Column(visible=False) as inpaint_mask_generation_col:
@@ -322,7 +322,7 @@ def generate_mask(image, mask_model, cloth_category, dino_prompt_text, sam_model
322322
value=flags.desc_type_photo)
323323
desc_btn = gr.Button(value='Describe this Image into Prompt')
324324
desc_image_size = gr.Textbox(label='Image Size and Recommended Size', elem_id='desc_image_size', visible=False)
325-
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/1363" target="_blank">\U0001F4D4 Document</a>')
325+
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/1363" target="_blank">\U0001F4D4 Documentation</a>')
326326

327327
def trigger_show_image_properties(image):
328328
value = modules.util.get_image_size_info(image, modules.flags.sdxl_aspect_ratios)
@@ -335,7 +335,7 @@ def trigger_show_image_properties(image):
335335
with gr.Row():
336336
with gr.Column():
337337
enhance_input_image = grh.Image(label='Use with Enhance, skips image generation', source='upload', type='numpy')
338-
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/3281" target="_blank">\U0001F4D4 Document</a>')
338+
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/3281" target="_blank">\U0001F4D4 Documentation</a>')
339339

340340
with gr.TabItem(label='Metadata') as metadata_tab:
341341
with gr.Column():
@@ -379,7 +379,7 @@ def trigger_metadata_preview(filepath):
379379
inputs=enhance_uov_processing_order,
380380
outputs=enhance_uov_prompt_type,
381381
queue=False, show_progress=False)
382-
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/3281" target="_blank">\U0001F4D4 Document</a>')
382+
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/3281" target="_blank">\U0001F4D4 Documentation</a>')
383383
enhance_ctrls = []
384384
enhance_inpaint_mode_ctrls = []
385385
enhance_inpaint_engine_ctrls = []
@@ -471,7 +471,7 @@ def trigger_metadata_preview(filepath):
471471
'(default is 0, always processed before any mask invert)')
472472
enhance_mask_invert = gr.Checkbox(label='Invert Mask', value=False)
473473

474-
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/3281" target="_blank">\U0001F4D4 Document</a>')
474+
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/3281" target="_blank">\U0001F4D4 Documentation</a>')
475475

476476
enhance_ctrls += [
477477
enhance_enabled,
@@ -670,7 +670,7 @@ def update_history_link():
670670
sharpness = gr.Slider(label='Image Sharpness', minimum=0.0, maximum=30.0, step=0.001,
671671
value=modules.config.default_sample_sharpness,
672672
info='Higher value means image and texture are sharper.')
673-
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/117" target="_blank">\U0001F4D4 Document</a>')
673+
gr.HTML('<a href="https://github.com/lllyasviel/Fooocus/discussions/117" target="_blank">\U0001F4D4 Documentation</a>')
674674
dev_mode = gr.Checkbox(label='Developer Debug Mode', value=False, container=False)
675675

676676
with gr.Column(visible=False) as dev_tools:

0 commit comments

Comments
 (0)