Bugfix. Translate method called before it was defined.
This commit is contained in:
parent
640a344ee2
commit
35a542da83
13
converse.js
13
converse.js
@ -164,9 +164,7 @@
|
|||||||
|
|
||||||
// Logging
|
// Logging
|
||||||
Strophe.log = function (level, msg) { console.log(level+' '+msg); };
|
Strophe.log = function (level, msg) { console.log(level+' '+msg); };
|
||||||
Strophe.error = function (msg) {
|
Strophe.error = function (msg) { console.log('ERROR: '+msg); };
|
||||||
console.log('ERROR: '+msg);
|
|
||||||
};
|
|
||||||
|
|
||||||
// Add Strophe Namespaces
|
// Add Strophe Namespaces
|
||||||
Strophe.addNamespace('REGISTER', 'jabber:iq:register');
|
Strophe.addNamespace('REGISTER', 'jabber:iq:register');
|
||||||
@ -216,6 +214,11 @@
|
|||||||
var OPENED = 'opened';
|
var OPENED = 'opened';
|
||||||
var CLOSED = 'closed';
|
var CLOSED = 'closed';
|
||||||
|
|
||||||
|
// Translation machinery
|
||||||
|
// ---------------------
|
||||||
|
var __ = $.proxy(utils.__, this);
|
||||||
|
var ___ = utils.___;
|
||||||
|
|
||||||
// Default configuration values
|
// Default configuration values
|
||||||
// ----------------------------
|
// ----------------------------
|
||||||
var default_settings = {
|
var default_settings = {
|
||||||
@ -286,10 +289,6 @@
|
|||||||
// Only use OTR by default if allow OTR is enabled to begin with
|
// Only use OTR by default if allow OTR is enabled to begin with
|
||||||
this.use_otr_by_default = this.use_otr_by_default && this.allow_otr;
|
this.use_otr_by_default = this.use_otr_by_default && this.allow_otr;
|
||||||
|
|
||||||
// Translation machinery
|
|
||||||
// ---------------------
|
|
||||||
var __ = $.proxy(utils.__, this);
|
|
||||||
var ___ = utils.___;
|
|
||||||
// Translation aware constants
|
// Translation aware constants
|
||||||
// ---------------------------
|
// ---------------------------
|
||||||
var OTR_CLASS_MAPPING = {};
|
var OTR_CLASS_MAPPING = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user