Migrate dictionary loading in extensions
This commit is contained in:
parent
10931e1e4d
commit
6ac821c844
@ -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) {
|
||||
|
@ -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() {
|
||||
|
@ -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) {
|
||||
|
@ -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() {
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user