diff --git a/ui/v2.5/src/components/Dialogs/IdentifyDialog/FieldOptions.tsx b/ui/v2.5/src/components/Dialogs/IdentifyDialog/FieldOptions.tsx index 142023e65..fad0ff7a0 100644 --- a/ui/v2.5/src/components/Dialogs/IdentifyDialog/FieldOptions.tsx +++ b/ui/v2.5/src/components/Dialogs/IdentifyDialog/FieldOptions.tsx @@ -77,12 +77,12 @@ const FieldOptionsEditor: React.FC = ({ if (!editing) { if (strategy === undefined) { - return intl.formatMessage({ id: "use_default" }); + return intl.formatMessage({ id: "actions.use_default" }); } const f = strategies.find((s) => s[1] === strategy); return intl.formatMessage({ - id: `config.tasks.identify.field_strategies.${f![0].toLowerCase()}`, + id: `actions.${f![0].toLowerCase()}`, }); } @@ -104,7 +104,7 @@ const FieldOptionsEditor: React.FC = ({ }) } disabled={!editing} - label={intl.formatMessage({ id: "use_default" })} + label={intl.formatMessage({ id: "actions.use_default" })} /> ) : undefined} {strategies.map((f) => ( @@ -121,7 +121,7 @@ const FieldOptionsEditor: React.FC = ({ } disabled={!editing} label={intl.formatMessage({ - id: `config.tasks.identify.field_strategies.${f[0].toLowerCase()}`, + id: `actions.${f[0].toLowerCase()}`, })} /> ))} @@ -145,7 +145,7 @@ const FieldOptionsEditor: React.FC = ({ if (!editing) { if (value === undefined && allowSetDefault) { - return intl.formatMessage({ id: "use_default" }); + return intl.formatMessage({ id: "actions.use_default" }); } if (value) { return ; @@ -311,9 +311,15 @@ export const FieldOptionsList: React.FC = ({ - - - + + + {/* eslint-disable-next-line jsx-a11y/control-has-associated-label */} diff --git a/ui/v2.5/src/components/Dialogs/IdentifyDialog/Sources.tsx b/ui/v2.5/src/components/Dialogs/IdentifyDialog/Sources.tsx index 127adbdc4..81d213115 100644 --- a/ui/v2.5/src/components/Dialogs/IdentifyDialog/Sources.tsx +++ b/ui/v2.5/src/components/Dialogs/IdentifyDialog/Sources.tsx @@ -56,6 +56,7 @@ export const SourcesEditor: React.FC = ({ { count: 1, singularEntity: source?.displayName, + pluralEntity: source?.displayName, } )} accept={{ diff --git a/ui/v2.5/src/components/Dialogs/IdentifyDialog/ThreeStateBoolean.tsx b/ui/v2.5/src/components/Dialogs/IdentifyDialog/ThreeStateBoolean.tsx index 636b613b6..527bb5165 100644 --- a/ui/v2.5/src/components/Dialogs/IdentifyDialog/ThreeStateBoolean.tsx +++ b/ui/v2.5/src/components/Dialogs/IdentifyDialog/ThreeStateBoolean.tsx @@ -55,7 +55,7 @@ export const ThreeStateBoolean: React.FC = ({ ); return ( - {intl.formatMessage({ id: "use_default" })} + {intl.formatMessage({ id: "actions.use_default" })} {defaultVal} ); diff --git a/ui/v2.5/src/components/Galleries/DeleteGalleriesDialog.tsx b/ui/v2.5/src/components/Galleries/DeleteGalleriesDialog.tsx index c241cec1f..2c671a4bb 100644 --- a/ui/v2.5/src/components/Galleries/DeleteGalleriesDialog.tsx +++ b/ui/v2.5/src/components/Galleries/DeleteGalleriesDialog.tsx @@ -135,7 +135,7 @@ export const DeleteGalleriesDialog: React.FC = ( id="delete-file" checked={deleteFile} label={intl.formatMessage({ - id: "actions.delete_gallery_files", + id: "dialogs.delete_gallery_files", })} onChange={() => setDeleteFile(!deleteFile)} /> diff --git a/ui/v2.5/src/locales/en-GB.json b/ui/v2.5/src/locales/en-GB.json index 80ee61239..f1a48bc08 100644 --- a/ui/v2.5/src/locales/en-GB.json +++ b/ui/v2.5/src/locales/en-GB.json @@ -21,7 +21,6 @@ "create_marker": "Create Marker", "created_entity": "Created {entity_type}: {entity_name}", "delete": "Delete", - "delete_gallery_files": "Delete gallery folder/zip file and any images not attached to any other gallery.", "delete_entity": "Delete {entityType}", "delete_file": "Delete file", "delete_generated_supporting_files": "Delete generated supporting files", @@ -94,7 +93,9 @@ "open_random": "Open Random", "next_action": "Next", "previous_action": "Back", - "finish": "Finish" + "finish": "Finish", + "use_default": "Use default", + "ignore": "Ignore" }, "actions_name": "Actions", "age": "Age", @@ -316,11 +317,6 @@ "explicit_set_description": "The following options will be used where not overridden in the source-specific options.", "field_behaviour": "{strategy} {field}", "field_options": "Field Options", - "field_strategies": { - "ignore": "Ignore", - "merge": "Merge", - "overwrite": "Overwrite" - }, "identifying_scenes": "Identifying {num} {scene}", "identifying_from_paths": "Identifying scenes from the following paths", "include_male_performers": "Include male performers", @@ -328,7 +324,9 @@ "set_organized": "Set organised flag", "source_options": "{source} Options", "source": "Source", - "sources": "Sources" + "sources": "Sources", + "field": "Field", + "strategy": "Strategy" }, "import_from_exported_json": "Import from exported JSON in the metadata directory. Wipes the existing database.", "incremental_import": "Incremental import from a supplied export zip file.", @@ -465,7 +463,8 @@ "performers": "{count, plural, one {Performer} other {Performers}}", "scenes": "{count, plural, one {Scene} other {Scenes}}", "studios": "{count, plural, one {Studio} other {Studios}}", - "tags": "{count, plural, one {Tag} other {Tags}}" + "tags": "{count, plural, one {Tag} other {Tags}}", + "files": "{count, plural, one {File} other {Files}}" }, "country": "Country", "cover_image": "Cover Image", @@ -566,7 +565,8 @@ "scrape_results_scraped": "Scraped", "set_image_url_title": "Image URL", "unsaved_changes": "Unsaved changes. Are you sure you want to leave?", - "aliases_must_be_unique": "aliases must be unique" + "aliases_must_be_unique": "aliases must be unique", + "delete_gallery_files": "Delete gallery folder/zip file and any images not attached to any other gallery." }, "dimensions": "Dimensions", "director": "Director", @@ -745,7 +745,6 @@ "up-dir": "Up a directory", "updated_at": "Updated At", "url": "URL", - "use_default": "Use default", "weight": "Weight", "years_old": "years old", "stats": { diff --git a/ui/v2.5/src/locales/zh-TW.json b/ui/v2.5/src/locales/zh-TW.json index c1b940409..26e0203b6 100644 --- a/ui/v2.5/src/locales/zh-TW.json +++ b/ui/v2.5/src/locales/zh-TW.json @@ -90,7 +90,12 @@ "clear": "清除", "next_action": "下一步", "previous_action": "上一步", - "finish": "完成" + "finish": "完成", + "scrape": "爬取", + "identify": "辨認", + "save_delete_settings": "當刪除項目時,使用下列設定", + "use_default": "使用預設選項", + "ignore": "忽略" }, "actions_name": "動作", "age": "年齡", @@ -267,7 +272,8 @@ "supported_types": "支援類型", "supported_urls": "支援網址", "excluded_tag_patterns_head": "排除符合正則表達式的標籤", - "excluded_tag_patterns_desc": "自爬蟲結果中,排除符合以下正則表達式的標籤" + "excluded_tag_patterns_desc": "自爬蟲結果中,排除符合以下正則表達式的標籤", + "scraper": "爬蟲" }, "stashbox": { "add_instance": "新增 Stash-box 端點", @@ -304,7 +310,27 @@ "plugin_tasks": "插件排程", "scan_for_content_desc": "掃描新內容,並將其新增到資料庫中。", "set_name_date_details_from_metadata_if_present": "使用多媒體檔案中內建的標題、日期、詳細資訊(如果適用的話)", - "generate_thumbnails_during_scan": "掃描圖片時,順便產生縮圖。" + "generate_thumbnails_during_scan": "掃描圖片時,順便產生縮圖。", + "identify": { + "create_missing": "新增尚有的欄位", + "set_organized": "設為『已整理』", + "source": "來源", + "include_male_performers": "包含男優", + "identifying_from_paths": "辨認下列路徑中的短片", + "set_cover_images": "設定封面", + "identifying_scenes": "辨認{num}{scene}中", + "heading": "自動辨識檔案", + "and_create_missing": "及建立尚有欄位", + "default_options": "預設選項", + "description": "自動套用 Stash-box 及爬蟲搜尋結果套用至短片資料中。", + "field": "欄位", + "field_options": "欄位選項", + "source_options": "{source} 選項", + "explicit_set_description": "當尚未指定來源選項時,將會使用下列設定。", + "sources": "來源", + "strategy": "方法", + "field_behaviour": "{strategy}{field}" + } }, "tools": { "scene_duplicate_checker": "短片相近性檢查工具", @@ -405,6 +431,14 @@ "description": "關閉下拉選單建立物件功能", "heading": "關閉下拉選單建立" } + }, + "delete_options": { + "options": { + "delete_file": "將『刪除檔案』設為預設選項", + "delete_generated_supporting_files": "將『刪除已生成的資訊檔案』設為預設選項" + }, + "description": "刪除圖片、圖庫、及短片時的預設設定", + "heading": "刪除選項" } }, "plugins": { @@ -421,7 +455,8 @@ "performers": "演員", "scenes": "短片", "studios": "工作室", - "tags": "標籤" + "tags": "標籤", + "files": "檔案" }, "country": "國家", "cover_image": "封面圖片", @@ -513,7 +548,10 @@ "zoom": "放大" } }, - "aliases_must_be_unique": "別名不可重複" + "aliases_must_be_unique": "別名不可重複", + "delete_galleries_extra": "…及其他不在圖庫內的圖片檔案。", + "delete_alert": "以下{count, plural, one {{singularEntity}} other {{pluralEntity}}}將被永久刪除:", + "delete_gallery_files": "刪除所有不在任一圖庫內的圖庫資料夾、壓縮檔、及圖檔" }, "dimensions": "解析度", "director": "導演", @@ -776,5 +814,11 @@ "backup_database_path_leave_empty_to_disable_backup": "備份資料庫路徑(留空以關閉備份):", "perform_schema_migration": "執行架構遷移" } - } + }, + "all": "所有", + "false": "否", + "true": "是", + "stash_ids": "Stash IDs", + "file": "檔案", + "files": "檔案" }
FieldStrategyCreate missing + + + + + +