From d5af32eaef8be2517238d69c337ff3d7e3954f2d Mon Sep 17 00:00:00 2001 From: gorhill Date: Tue, 3 Mar 2015 09:37:15 -0500 Subject: [PATCH] use blank string if no translation found --- src/js/i18n.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/js/i18n.js b/src/js/i18n.js index 95304f51d..231a1dbf5 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(