mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-09-30 09:06:56 +13:00
this fixes #212
This commit is contained in:
parent
855833c978
commit
33708938da
3 changed files with 14 additions and 1 deletions
|
@ -587,6 +587,10 @@
|
||||||
"message": "filter expression(s)",
|
"message": "filter expression(s)",
|
||||||
"description": "Appears in the input filed where filter expressions are entered"
|
"description": "Appears in the input filed where filter expressions are entered"
|
||||||
},
|
},
|
||||||
|
"loggerMaxEntriesTip" : {
|
||||||
|
"message": "Maximum number of entries",
|
||||||
|
"description": "Appears as a tooltip when hovering the input field"
|
||||||
|
},
|
||||||
"loggerEntryUserAgentSpoofing" : {
|
"loggerEntryUserAgentSpoofing" : {
|
||||||
"message": "spoofing user agent with: {{value}}",
|
"message": "spoofing user agent with: {{value}}",
|
||||||
"description": "An entry for when a new user agent string is selected"
|
"description": "An entry for when a new user agent string is selected"
|
||||||
|
|
|
@ -30,6 +30,8 @@
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
var text;
|
||||||
|
|
||||||
var nodeList = document.querySelectorAll('[data-i18n]');
|
var nodeList = document.querySelectorAll('[data-i18n]');
|
||||||
var i = nodeList.length;
|
var i = nodeList.length;
|
||||||
var node;
|
var node;
|
||||||
|
@ -51,6 +53,13 @@ while ( i-- ) {
|
||||||
node = nodeList[i];
|
node = nodeList[i];
|
||||||
node.setAttribute('data-tip', vAPI.i18n(node.getAttribute('data-i18n-tip')));
|
node.setAttribute('data-tip', vAPI.i18n(node.getAttribute('data-i18n-tip')));
|
||||||
}
|
}
|
||||||
|
nodeList = document.querySelectorAll('[title]');
|
||||||
|
i = nodeList.length;
|
||||||
|
while ( i-- ) {
|
||||||
|
node = nodeList[i];
|
||||||
|
text = node.getAttribute('title');
|
||||||
|
node.setAttribute('title', vAPI.i18n(text) || text);
|
||||||
|
}
|
||||||
|
|
||||||
nodeList = document.querySelectorAll('input[placeholder]');
|
nodeList = document.querySelectorAll('input[placeholder]');
|
||||||
i = nodeList.length;
|
i = nodeList.length;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
<span id="clean" class="button fa disabled"></span>
|
<span id="clean" class="button fa disabled"></span>
|
||||||
<span id="clear" class="button fa disabled"></span>
|
<span id="clear" class="button fa disabled"></span>
|
||||||
<span id="filterButton" class="button fa"></span><input id="filterInput" type="text" placeholder="loggerFilterInputPlaceholder">
|
<span id="filterButton" class="button fa"></span><input id="filterInput" type="text" placeholder="loggerFilterInputPlaceholder">
|
||||||
<input id="maxEntries" type="text" size="5" title="logMaxEntriesTip">
|
<input id="maxEntries" type="text" size="5" title="loggerMaxEntriesTip">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue