aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris <chris@chrismatic.io>2015-03-03 00:22:26 -0700
committerChris <chris@chrismatic.io>2015-03-03 00:22:26 -0700
commit09deb9906e39d9f651f180a58c64608e326abd04 (patch)
tree3f7238405dd03330d0ab3e72844841716bd2d82f /src
parentc15a943ec0e0423bed6716557dc41065d44e0716 (diff)
downloaduBlock-09deb9906e39d9f651f180a58c64608e326abd04.zip
uBlock-09deb9906e39d9f651f180a58c64608e326abd04.tar.gz
uBlock-09deb9906e39d9f651f180a58c64608e326abd04.tar.bz2
request log filtering: add i18n prompt
Diffstat (limited to 'src')
-rw-r--r--src/_locales/en/messages.json4
-rw-r--r--src/devtool-log.html3
-rw-r--r--src/js/i18n.js6
3 files changed, 12 insertions, 1 deletions
diff --git a/src/_locales/en/messages.json b/src/_locales/en/messages.json
index 5c88964..6be607e 100644
--- a/src/_locales/en/messages.json
+++ b/src/_locales/en/messages.json
@@ -35,6 +35,10 @@
"message":"µBlock — Network request log",
"description":"Title for the network request log window"
},
+ "statsFilterPrompt":{
+ "message":"filter log entries",
+ "description": "English: filter log entries"
+ },
"aboutPageName":{
"message":"About",
"description":"appears as tab name in dashboard"
diff --git a/src/devtool-log.html b/src/devtool-log.html
index e97ac1e..8733ee9 100644
--- a/src/devtool-log.html
+++ b/src/devtool-log.html
@@ -10,7 +10,7 @@
<div id="toolbar">
<span id="reload" class="button fa">&#xf021;</span>
<span id="clear" class="button fa">&#xf12d;</span>
- <span id="filterButton" class="button fa">&#xf0b0;</span><input id="filterExpression" type="text">
+ <span id="filterButton" class="button fa">&#xf0b0;</span><input id="filterExpression" type="text" placeholder="statsFilterPrompt">
</div>
<div id="content">
<table><tbody></tbody></table>
@@ -18,6 +18,7 @@
<script src="js/vapi-common.js"></script>
<script src="js/vapi-client.js"></script>
<script src="js/udom.js"></script>
+<script src="js/i18n.js"></script>
<script src="js/devtool-log.js"></script>
</body>
</html>
diff --git a/src/js/i18n.js b/src/js/i18n.js
index bee0b96..95304f5 100644
--- a/src/js/i18n.js
+++ b/src/js/i18n.js
@@ -36,6 +36,12 @@ uDom.onLoad(function() {
elem.attr('title', title);
}
});
+ uDom('[placeholder]').forEach(function(elem) {
+ var placeholder = vAPI.i18n(elem.attr('placeholder'));
+ if ( placeholder ) {
+ elem.attr('placeholder', placeholder);
+ }
+ });
uDom('[data-i18n-tip]').forEach(function(elem) {
elem.attr(
'data-tip',