js/tinymce/tinymce.jquery.js
function (text) {
        if (text && Tools.is(text, 'string')) {
          var lang = this.settings.language || 'en', i18n = this.editorManager.i18n;

          text = i18n.data[lang + '.' + text] || text.replace(/\{\#([^\}]+)\}/g, function (a, b) {
            return i18n.data[lang + '.' + b] || '{#' + b + '}';
          });
        }

        return this.editorManager.translate(text);
      }
function (text) {
        if (text && Tools.is(text, 'string')) {
          var lang = this.settings.language || 'en', i18n = this.editorManager.i18n;

          text = i18n.data[lang + '.' + text] || text.replace(/\{\#([^\}]+)\}/g, function (a, b) {
            return i18n.data[lang + '.' + b] || '{#' + b + '}';
          });
        }

        return this.editorManager.translate(text);
      }
function ( text ) { if ( text && Tools . is ( text , 'string' ) ) { var lang = this . settings . language || 'en' , i18n = this . editorManager . i18n ; text = i18n . data [ lang + '.' + text ] || text . replace ( / \{\#([^\}]+)\} / g , function ( a , b ) { return i18n . data [ lang + '.' + b ] || '{#' + b + '}' ; } ) ; } return this . editorManager . translate ( text ) ; }
Translates the specified string by replacing variables with language pack items it will also check if there is
a key matching the input.

@method translate
@param {String} text String to translate by the language pack data.
@return {String} Translated string.
Translates the specified string by replacing variables with language pack items it will also check if there is a key matching the input .