1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-29 03:21:09 +12:00
This commit is contained in:
gorhill 2015-05-17 15:11:57 -04:00
parent 855833c978
commit 33708938da
3 changed files with 14 additions and 1 deletions

View file

@ -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"

View file

@ -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;

View file

@ -21,7 +21,7 @@
<span id="clean" class="button fa disabled">&#xf00d;</span> <span id="clean" class="button fa disabled">&#xf00d;</span>
<span id="clear" class="button fa disabled">&#xf12d;</span> <span id="clear" class="button fa disabled">&#xf12d;</span>
<span id="filterButton" class="button fa">&#xf0b0;</span><input id="filterInput" type="text" placeholder="loggerFilterInputPlaceholder"> <span id="filterButton" class="button fa">&#xf0b0;</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>