Update zh-tw strings & fix various hard strings (#1666)

* Update unlocalized strings & fix various hard strings
* Fix incorrect placement of ignore_organized in en-US
* Add missing strings
* Fix hard string in PerformerList
This commit is contained in:
Still Hsu 2021-08-26 06:51:54 +08:00 committed by GitHub
parent cb6dab3c5f
commit 177339c14e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 18 deletions

View file

@ -13,5 +13,14 @@
"src/locales"
],
"i18n-ally.keystyle": "nested",
"i18n-ally.sourceLanguage": "en-GB"
"i18n-ally.sourceLanguage": "en-GB",
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext",
"typescriptreact"
]
}

View file

@ -39,7 +39,7 @@ export const PerformerList: React.FC<IPerformerList> = ({
const otherOperations = [
{
text: "Open Random",
text: intl.formatMessage({ id: "actions.open_random" }),
onClick: getRandom,
},
{

View file

@ -35,12 +35,12 @@ export const DirectorySelectionDialog: React.FC<IDirectorySelectionDialogProps>
show
disabled={paths.length === 0}
icon="pencil-alt"
header="Select folders"
header={intl.formatMessage({ id: "actions.select_folders" })}
accept={{
onClick: () => {
props.onClose(paths);
},
text: "Confirm",
text: intl.formatMessage({ id: "actions.confirm" }),
}}
cancel={{
onClick: () => props.onClose(),

View file

@ -36,7 +36,9 @@ export const ImageInput: React.FC<IImageInput> = ({
// just return the file input
return (
<Form.Label className="image-input">
<Button variant="secondary">{text ?? "Browse for image..."}</Button>
<Button variant="secondary">
{text ?? intl.formatMessage({ id: "actions.browse_for_image" })}
</Button>
<Form.Control
type="file"
onChange={onImageChange}
@ -61,7 +63,10 @@ export const ImageInput: React.FC<IImageInput> = ({
show={!!isShowDialog}
onHide={() => setIsShowDialog(false)}
header={intl.formatMessage({ id: "dialogs.set_image_url_title" })}
accept={{ onClick: onConfirmURL, text: "Confirm" }}
accept={{
onClick: onConfirmURL,
text: intl.formatMessage({ id: "actions.confirm" }),
}}
>
<div className="dialog-content">
<Form.Group controlId="url" as={Row}>

View file

@ -79,7 +79,11 @@
},
"temp_disable": "Disable temporarily…",
"temp_enable": "Enable temporarily…",
"view_random": "View Random"
"view_random": "View Random",
"confirm": "Confirm",
"select_folders": "Select folders",
"browse_for_image": "Browse for image…",
"open_random": "Open Random"
},
"actions_name": "Actions",
"age": "Age",

View file

@ -3,9 +3,11 @@
"favourite": "Favorite",
"hair_color": "Hair Color",
"organized": "Organized",
"tools": {
"scene_filename_parser": {
"ignore_organized": "Ignore organized scenes"
"config": {
"tools": {
"scene_filename_parser": {
"ignore_organized": "Ignore organized scenes"
}
}
}
}

View file

@ -79,7 +79,11 @@
"merge_from": "與其他項目合併",
"save_filter": "儲存過濾條件",
"set_as_default": "設為預設",
"merge_into": "合併至其他項目"
"merge_into": "合併至其他項目",
"confirm": "確認",
"select_folders": "選擇資料夾",
"browse_for_image": "選擇圖像…",
"open_random": "隨機開啟"
},
"actions_name": "動作",
"age": "年齡",
@ -220,7 +224,7 @@
"maximum_streaming_transcode_size_head": "最大的串流轉碼解析度大小",
"maximum_transcode_size_desc": "轉碼生成的影片最大大小",
"maximum_transcode_size_head": "最大的轉碼解析度大小",
"number_of_parallel_task_for_scan_generation_desc": "設置為 0 以自動偵測。請注意,運行比使用 100% CPU 使用率所需的排數量,可能會降低性能並導致其他問題。",
"number_of_parallel_task_for_scan_generation_desc": "設置為 0 以自動偵測。請注意,運行比使用 100% CPU 使用率所需的排數量,可能會降低性能並導致其他問題。",
"number_of_parallel_task_for_scan_generation_head": "掃描/生成的並行排程數量",
"parallel_scan_head": "並行掃描/生成",
"preview_generation": "預覽檔案生成",
@ -255,7 +259,7 @@
"title": "Stash-box 端點"
},
"tasks": {
"added_job_to_queue": "已新增『{operation_name}』至作業排成",
"added_job_to_queue": "已將『{operation_name}』加入至工作排程",
"auto_tag_based_on_filenames": "根據檔案名稱自動標記內容。",
"auto_tagging": "自動套用標籤",
"backing_up_database": "備份資料庫中",
@ -295,7 +299,8 @@
"select_parser_recipe": "選擇預設分析字串",
"title": "短片名稱分析工具",
"whitespace_chars": "空白字元",
"whitespace_chars_desc": "這些字元將在標題中被的空格替換"
"whitespace_chars_desc": "這些字元將在標題中被的空格替換",
"ignore_organized": "忽略已整理的短片"
},
"scene_tools": "短片工具"
},
@ -390,7 +395,9 @@
"matches_regex": "符合正則表達式",
"not_equals": "不是",
"not_matches_regex": "不符合正則表達式",
"not_null": "不為空"
"not_null": "不為空",
"between": "與 ... 之間",
"not_between": "不與 ... 之間"
},
"date": "日期",
"death_date": "去世日期",
@ -580,12 +587,12 @@
"title": "標題",
"toast": {
"added_entity": "已新增{singularEntity}",
"added_generation_job_to_queue": "將生成作業新增至工作排程",
"added_generation_job_to_queue": "已將『生成作業』加入至工作排程",
"delete_entity": "刪除{singularEntity}",
"delete_past_tense": "已刪除{singularEntity}",
"generating_screenshot": "產生截圖中…",
"rescanning_entity": "重新掃描{singularEntity}中…",
"started_auto_tagging": "已開始自動套用標籤",
"started_auto_tagging": "已將『自動套用標籤』加入至工作排程",
"updated_entity": "已更新{entity}",
"merged_tags": "已合併的標籤",
"create_entity": "已建立 {entity}",
@ -605,5 +612,18 @@
"filter": "過濾",
"filter_name": "過濾條件名稱",
"detail": "詳情",
"include_child_studios": "包含子工作室"
"include_child_studios": "包含子工作室",
"criterion": {
"greater_than": "大於",
"less_than": "小於",
"value": "數值"
},
"custom": "自訂",
"frames_per_second": "{value} 幀/秒",
"megabits_per_second": "{value} megabits/秒",
"tools": {
"scene_filename_parser": {
"ignore_organized": "忽略已整理的短片"
}
}
}