Migrate dictionary loading in extensions

This commit is contained in:
Antonin Delpeuch 2018-11-21 17:26:10 +00:00
parent 10931e1e4d
commit 6ac821c844
5 changed files with 15 additions and 10 deletions

View File

@ -39,10 +39,11 @@ $.ajax({
module : "database",
},
success : function(data) {
dictionary = data;
dictionary = data['dictionary'];
lang = data['lang'];
}
});
$.i18n.setDictionary(dictionary);
$.i18n().load(dictionary, lang);
// End internationalization
Refine.DatabaseImportController = function(createProjectUI) {

View File

@ -37,10 +37,11 @@ $.ajax({
},
success : function(data) {
dictionary = data;
dictionary = data['dictionary'];
dictionary = data['lang'];
}
});
$.i18n.setDictionary(dictionary);
$.i18n().load(dictionary, lang);
// End internationalization
(function() {

View File

@ -44,10 +44,11 @@ $.ajax({
// lang : lang
},
success : function(data) {
dictionary = data;
dictionary = data['dictionary'];
lang = data['lang'];
}
});
$.i18n.setDictionary(dictionary);
$.i18n().load(dictionary, lang);
// End internationalization
Refine.GDataImportingController = function(createProjectUI) {

View File

@ -41,10 +41,11 @@ $.ajax({
// lang : lang
},
success : function(data) {
dictionary = data;
dictionary = data['dictionary'];
lang = data['lang'];
}
});
$.i18n.setDictionary(dictionary);
$.i18n().load(dictionary, lang);
// End internationalization
(function() {

View File

@ -9,10 +9,11 @@ $.ajax({
// lang : lang
},
success : function(data) {
dictionary = data;
dictionary = data['dictionary'];
lang = data['lang'];
}
});
$.i18n.setDictionary(dictionary);
$.i18n().load(dictionary, lang);