diff options
author | gorhill <rhill@raymondhill.net> | 2015-03-03 09:37:15 -0500 |
---|---|---|
committer | gorhill <rhill@raymondhill.net> | 2015-03-03 09:37:15 -0500 |
commit | d5af32eaef8be2517238d69c337ff3d7e3954f2d (patch) | |
tree | 8eb3b26fc8b72ecffa3a6e4f6c8d520cad6d3322 /src/js/i18n.js | |
parent | 5edf394cac2ef6847b42b5b1bd7c25c913050482 (diff) | |
download | uBlock-d5af32eaef8be2517238d69c337ff3d7e3954f2d.zip uBlock-d5af32eaef8be2517238d69c337ff3d7e3954f2d.tar.gz uBlock-d5af32eaef8be2517238d69c337ff3d7e3954f2d.tar.bz2 |
use blank string if no translation found
Diffstat (limited to 'src/js/i18n.js')
-rw-r--r-- | src/js/i18n.js | 5 |
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( |