[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/webroot/rsrc/js/core/ -> phtize.js (source)

   1  /**
   2   * @provides phabricator-phtize
   3   * @requires javelin-util
   4   * @javelin-installs JX.phtize
   5   * @javelin
   6   */
   7  
   8  JX.phtize = function(config) {
   9  
  10    return function(text) {
  11      if (!(text in config)) {
  12        if (__DEV__) {
  13          JX.$E('pht("' + text + '"): translation was not configured.');
  14        }
  15  
  16        return text;
  17      }
  18  
  19      return config[text];
  20    };
  21  
  22  };


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1