pull/2/head
gorhill 10 years ago
parent 855833c978
commit 33708938da

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

Loading…
Cancel
Save