Organize disable translation options
This commit is contained in:
parent
7c953f8244
commit
21f16c00af
|
@ -89,6 +89,9 @@
|
||||||
"ifChangeSecondLangOnPageCaptionLabel": {
|
"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."
|
"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": {
|
"isDisabledInTextFieldsLabel": {
|
||||||
"message": "Disable translation in text fields"
|
"message": "Disable translation in text fields"
|
||||||
},
|
},
|
||||||
|
@ -138,10 +141,10 @@
|
||||||
"message": "Select the second target language."
|
"message": "Select the second target language."
|
||||||
},
|
},
|
||||||
"ignoredDocumentLangLabel": {
|
"ignoredDocumentLangLabel": {
|
||||||
"message": "Ignore documents in the following languages"
|
"message": "Disable translation by lang attribute"
|
||||||
},
|
},
|
||||||
"ignoredDocumentLangCaptionLabel": {
|
"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": {
|
"waitTimeLabel": {
|
||||||
"message": "Waiting time to translate"
|
"message": "Waiting time to translate"
|
||||||
|
@ -365,4 +368,4 @@
|
||||||
"openPopupDescription": {
|
"openPopupDescription": {
|
||||||
"message": "Open toolbar popup"
|
"message": "Open toolbar popup"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -39,15 +39,6 @@ export default [
|
||||||
options: langListOptions,
|
options: langListOptions,
|
||||||
useRawOptionName: true
|
useRawOptionName: true
|
||||||
},
|
},
|
||||||
{
|
|
||||||
id: "ignoredDocumentLang",
|
|
||||||
title: "ignoredDocumentLangLabel",
|
|
||||||
captions: ["ignoredDocumentLangCaptionLabel"],
|
|
||||||
type: "text",
|
|
||||||
default: "",
|
|
||||||
placeholder: "en, ru, ch",
|
|
||||||
new: true,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: "ifShowCandidate",
|
id: "ifShowCandidate",
|
||||||
title: "ifShowCandidateLabel",
|
title: "ifShowCandidateLabel",
|
||||||
|
@ -145,19 +136,35 @@ export default [
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "isDisabledInTextFields",
|
title: "disableTranslationLabel",
|
||||||
title: "isDisabledInTextFieldsLabel",
|
captions: [],
|
||||||
captions: ["isDisabledInTextFieldsCaptionLabel"],
|
type: "none",
|
||||||
type: "checkbox",
|
childElements: [
|
||||||
default: false
|
{
|
||||||
},
|
id: "isDisabledInTextFields",
|
||||||
{
|
title: "isDisabledInTextFieldsLabel",
|
||||||
id: "disableUrlList",
|
captions: ["isDisabledInTextFieldsCaptionLabel"],
|
||||||
title: "disableUrlListLabel",
|
type: "checkbox",
|
||||||
captions: ["disableUrlListCaptionLabel"],
|
default: false
|
||||||
type: "textarea",
|
},
|
||||||
default: "",
|
{
|
||||||
placeholder: "https://example.com/*\nhttps://example.net/*"
|
id: "ignoredDocumentLang",
|
||||||
|
title: "ignoredDocumentLangLabel",
|
||||||
|
captions: ["ignoredDocumentLangCaptionLabel"],
|
||||||
|
type: "text",
|
||||||
|
default: "",
|
||||||
|
placeholder: "en, ru, zh",
|
||||||
|
new: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "disableUrlList",
|
||||||
|
title: "disableUrlListLabel",
|
||||||
|
captions: ["disableUrlListCaptionLabel"],
|
||||||
|
type: "textarea",
|
||||||
|
default: "",
|
||||||
|
placeholder: "https://example.com/*\nhttps://example.net/*"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue