Updated i18n and fallback improved
This commit is contained in:
parent
e08559ef66
commit
2d4f18fbdc
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "HTML-Quelltext filtern",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
"description": "Disable"
|
||||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"message": "Filters HTML source code",
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
"description": "Disable"
|
||||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "Tweak HTML source code",
|
||||
"description": "Tweak HTML source code"
|
||||
"message": "Filters HTML source code",
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,6 +109,6 @@
|
|||
},
|
||||
"labelManipulateDOM": {
|
||||
"message": "",
|
||||
"description": "Tweak HTML source code"
|
||||
"description": "Filters HTML source code"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,14 +39,13 @@ helpers.insertI18nContentIntoDocument = function (document) {
|
|||
i18nElements.forEach(function (i18nElement) {
|
||||
|
||||
let i18nMessageName = i18nElement.getAttribute('data-i18n-content');
|
||||
if (i18nElement.id === 'button-copy-rule-set' && chrome.i18n.getMessage(i18nMessageName) !== '') {
|
||||
i18nElement.value = chrome.i18n.getMessage('copyRuleSet');
|
||||
} else if (i18nElement.id === 'manipulateDOM-indicator' && chrome.i18n.getMessage(i18nMessageName) === '') {
|
||||
i18nElement.innerText = "Tweak HTML source code";
|
||||
}
|
||||
|
||||
if(chrome.i18n.getMessage(i18nMessageName) !== '') {
|
||||
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
|
||||
if (i18nElement.type === "button") {
|
||||
i18nElement.value = chrome.i18n.getMessage(i18nMessageName);
|
||||
} else {
|
||||
i18nElement.innerText = chrome.i18n.getMessage(i18nMessageName);
|
||||
}
|
||||
i18nElement.setAttribute('dir', scriptDirection);
|
||||
} else {
|
||||
translationComplete = false;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="notice">
|
||||
<div class="subtle-hint"><div class="topic-label color-purple">FAQ: What is "Tweak HTML source code"?</div>
|
||||
<div class="subtle-hint"><div class="topic-label color-purple">FAQ: What is "Filters HTML source code"?</div>
|
||||
<p>In most cases LocalCDN can easily replace embedded frameworks and improves privacy. In some cases the website may try to prevent this by setting certain options in the HTML source code. LocalCDN reads the HTML source code before it is displayed in the browser and removes these options.</p>
|
||||
<p>Unfortunately, it sometimes happens that special characters are then displayed incorrectly. In this case you can deactivate the setting again, to display the umlauts correctly.</p>
|
||||
</div>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
</div>
|
||||
|
||||
<div id="label-manipulateDOM" class="label-domain">
|
||||
<span id="manipulateDOM-indicator" data-i18n-content="labelManipulateDOM"></span>
|
||||
<span id="manipulateDOM-indicator" data-i18n-content="labelManipulateDOM">Filter HTML source code</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue