aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgorhill <rhill@raymondhill.net>2015-03-03 09:37:15 -0500
committergorhill <rhill@raymondhill.net>2015-03-03 09:37:15 -0500
commitd5af32eaef8be2517238d69c337ff3d7e3954f2d (patch)
tree8eb3b26fc8b72ecffa3a6e4f6c8d520cad6d3322 /src
parent5edf394cac2ef6847b42b5b1bd7c25c913050482 (diff)
downloaduBlock-d5af32eaef8be2517238d69c337ff3d7e3954f2d.zip
uBlock-d5af32eaef8be2517238d69c337ff3d7e3954f2d.tar.gz
uBlock-d5af32eaef8be2517238d69c337ff3d7e3954f2d.tar.bz2
use blank string if no translation found
Diffstat (limited to 'src')
-rw-r--r--src/js/i18n.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/js/i18n.js b/src/js/i18n.js
index 95304f5..231a1db 100644
--- a/src/js/i18n.js
+++ b/src/js/i18n.js
@@ -37,10 +37,7 @@ uDom.onLoad(function() {
}
});
uDom('[placeholder]').forEach(function(elem) {
- var placeholder = vAPI.i18n(elem.attr('placeholder'));
- if ( placeholder ) {
- elem.attr('placeholder', placeholder);
- }
+ elem.attr('placeholder', vAPI.i18n(elem.attr('placeholder')));
});
uDom('[data-i18n-tip]').forEach(function(elem) {
elem.attr(