Organize disable translation options

This commit is contained in:
sienori 2021-03-08 23:25:44 +09:00
parent 7c953f8244
commit 21f16c00af
2 changed files with 35 additions and 25 deletions

View file

@ -89,6 +89,9 @@
"ifChangeSecondLangOnPageCaptionLabel": {
"message": "Detects the language of the selected text, and if it is the same as the default target language, translate it into the second language."
},
"disableTranslationLabel": {
"message": "Disable translation"
},
"isDisabledInTextFieldsLabel": {
"message": "Disable translation in text fields"
},
@ -138,10 +141,10 @@
"message": "Select the second target language."
},
"ignoredDocumentLangLabel": {
"message": "Ignore documents in the following languages"
"message": "Disable translation by lang attribute"
},
"ignoredDocumentLangCaptionLabel": {
"message": "Comma separated languages that do not need to be translated."
"message": "Disable translation if the lang attribute in the html element of the page matches the list. Enter comma-separated language tags."
},
"waitTimeLabel": {
"message": "Waiting time to translate"

View file

@ -39,15 +39,6 @@ export default [
options: langListOptions,
useRawOptionName: true
},
{
id: "ignoredDocumentLang",
title: "ignoredDocumentLangLabel",
captions: ["ignoredDocumentLangCaptionLabel"],
type: "text",
default: "",
placeholder: "en, ru, ch",
new: true,
},
{
id: "ifShowCandidate",
title: "ifShowCandidateLabel",
@ -144,6 +135,11 @@ export default [
type: "checkbox",
default: false
},
{
title: "disableTranslationLabel",
captions: [],
type: "none",
childElements: [
{
id: "isDisabledInTextFields",
title: "isDisabledInTextFieldsLabel",
@ -151,6 +147,15 @@ export default [
type: "checkbox",
default: false
},
{
id: "ignoredDocumentLang",
title: "ignoredDocumentLangLabel",
captions: ["ignoredDocumentLangCaptionLabel"],
type: "text",
default: "",
placeholder: "en, ru, zh",
new: true,
},
{
id: "disableUrlList",
title: "disableUrlListLabel",
@ -160,6 +165,8 @@ export default [
placeholder: "https://example.com/*\nhttps://example.net/*"
}
]
}
]
},
{
category: "toolbarLabel",