Commit 45bd5675 authored by JC Brand's avatar JC Brand

Bugfix in translation files. Make sure Jed is defined.

parent 63a4a57b
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
"en": "locale/en/LC_MESSAGES/en", "en": "locale/en/LC_MESSAGES/en",
"de": "locale/de/LC_MESSAGES/de", "de": "locale/de/LC_MESSAGES/de",
"es": "locale/es/LC_MESSAGES/es", "es": "locale/es/LC_MESSAGES/es",
"hu": "locale/hu/LC_MESSAGES/hu",
"it": "locale/it/LC_MESSAGES/it", "it": "locale/it/LC_MESSAGES/it",
"pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR", "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR",
"sjcl": "Libraries/sjcl", "sjcl": "Libraries/sjcl",
......
(function (root, factory) { (function (root, factory) {
var af = new Jed({ var translations = {
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -450,16 +450,16 @@ ...@@ -450,16 +450,16 @@
] ]
} }
} }
}); };
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define("af", ['jed'], function () { define("af", ['jed'], function () {
return factory(af); return factory(new Jed(translations));
}); });
} else { } else {
if (!window.locales) { if (!window.locales) {
window.locales = {}; window.locales = {};
} }
window.locales.af = af; window.locales.af = factory(new Jed(translations));
} }
}(this, function (af) { }(this, function (af) {
return af; return af;
......
(function (root, factory) { (function (root, factory) {
var de = new Jed({ var translations = {
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -450,16 +450,16 @@ ...@@ -450,16 +450,16 @@
] ]
} }
} }
}); };
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define("de", ['jed'], function () { define("de", ['jed'], function () {
return factory(de); return factory(new Jed(translations));
}); });
} else { } else {
if (!window.locales) { if (!window.locales) {
window.locales = {}; window.locales = {};
} }
window.locales.de = de; window.locales.de = factory(new Jed(translations));
} }
}(this, function (de) { }(this, function (de) {
return de; return de;
......
(function (root, factory) { (function (root, factory) {
var en = new Jed({ var translations = {
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -10,16 +10,16 @@ ...@@ -10,16 +10,16 @@
} }
} }
} }
}); };
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define("en", ['jed'], function () { define("en", ['jed'], function () {
return factory(en); return factory(new Jed(translations));
}); });
} else { } else {
if (!window.locales) { if (!window.locales) {
window.locales = {}; window.locales = {};
} }
window.locales.en = en; window.locales.en = factory(new Jed(translations));
} }
}(this, function (en) { }(this, function (en) {
return en; return en;
......
(function (root, factory) { (function (root, factory) {
var es = new Jed({ var translations = {
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -450,16 +450,16 @@ ...@@ -450,16 +450,16 @@
] ]
} }
} }
}); };
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define("es", ['jed'], function () { define("es", ['jed'], function () {
return factory(es); return factory(new Jed(translations));
}); });
} else { } else {
if (!window.locales) { if (!window.locales) {
window.locales = {}; window.locales = {};
} }
window.locales.es = es; window.locales.es = factory(new Jed(translations));
} }
}(this, function (es) { }(this, function (es) {
return es; return es;
......
(function (root, factory) { (function (root, factory) {
var it = new Jed({ var translations = {
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -461,16 +461,16 @@ ...@@ -461,16 +461,16 @@
] ]
} }
} }
}); };
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define("it", ['jed'], function () { define("it", ['jed'], function () {
return factory(it); return factory(new Jed(translations));
}); });
} else { } else {
if (!window.locales) { if (!window.locales) {
window.locales = {}; window.locales = {};
} }
window.locales.it = it; window.locales.it = factory(new Jed(translations));
} }
}(this, function (it) { }(this, function (it) {
return it; return it;
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
"en": "locale/en/LC_MESSAGES/en", "en": "locale/en/LC_MESSAGES/en",
"es": "locale/es/LC_MESSAGES/es", "es": "locale/es/LC_MESSAGES/es",
"de": "locale/de/LC_MESSAGES/de", "de": "locale/de/LC_MESSAGES/de",
"hu": "locale/hu/LC_MESSAGES/hu",
"it": "locale/it/LC_MESSAGES/it", "it": "locale/it/LC_MESSAGES/it",
"pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR" "pt_BR": "locale/pt_BR/LC_MESSAGES/pt_BR"
} }
...@@ -25,16 +24,14 @@ ...@@ -25,16 +24,14 @@
'en', 'en',
'es', 'es',
'de', 'de',
'hu',
"it", "it",
"pt_BR" "pt_BR"
], function (jed, af, en, es, de, hu, it, pt_BR) { ], function (jed, af, en, es, de, it, pt_BR) {
root.locales = {}; root.locales = {};
root.locales.af = af; root.locales.af = af;
root.locales.en = en; root.locales.en = en;
root.locales.es = es; root.locales.es = es;
root.locales.de = de; root.locales.de = de;
root.locales.hu = hu;
root.locales.it = it; root.locales.it = it;
root.locales.pt_BR = pt_BR; root.locales.pt_BR = pt_BR;
}); });
......
(function (root, factory) { (function (root, factory) {
var pt_BR = new Jed({ var translations = {
"domain": "converse", "domain": "converse",
"locale_data": { "locale_data": {
"converse": { "converse": {
...@@ -461,16 +461,16 @@ ...@@ -461,16 +461,16 @@
] ]
} }
} }
}); };
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
define("pt_BR", ['jed'], function () { define("pt_BR", ['jed'], function () {
return factory(pt_BR); return factory(new Jed(translations));
}); });
} else { } else {
if (!window.locales) { if (!window.locales) {
window.locales = {}; window.locales = {};
} }
window.locales.pt_BR = pt_BR; window.locales.pt_BR = factory(new Jed(translations));
} }
}(this, function (i18n) { }(this, function (i18n) {
return i18n; return i18n;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment