You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2015/02/12 20:10:28 UTC
svn commit: r1659367 - /vcl/trunk/web/js/code.js
Author: jfthomps
Date: Thu Feb 12 19:10:28 2015
New Revision: 1659367
URL: http://svn.apache.org/r1659367
Log:
code.js: modified _() function to check for value of translated string in nlsmessages being '' and, if so, return the passed in string rather than the empty string
Modified:
vcl/trunk/web/js/code.js
Modified: vcl/trunk/web/js/code.js
URL: http://svn.apache.org/viewvc/vcl/trunk/web/js/code.js?rev=1659367&r1=1659366&r2=1659367&view=diff
==============================================================================
--- vcl/trunk/web/js/code.js (original)
+++ vcl/trunk/web/js/code.js Thu Feb 12 19:10:28 2015
@@ -38,7 +38,8 @@ setBrowser();
function _(str) {
if(typeof usenls == 'undefined' ||
typeof nlsmessages == 'undefined' ||
- ! (str in nlsmessages))
+ ! (str in nlsmessages) ||
+ nlsmessages[str] == '')
return str;
return nlsmessages[str];
}