quick fix for javascript translations
This commit is contained in:
parent
ac188ec74b
commit
b366b0eb52
|
@ -6,10 +6,14 @@
|
||||||
*/
|
*/
|
||||||
function t(app,text){
|
function t(app,text){
|
||||||
if( !( app in t.cache )){
|
if( !( app in t.cache )){
|
||||||
|
$.ajax(OC.filePath('core','ajax','translations.php'),{
|
||||||
$.post( OC.filePath('core','ajax','translations.php'), {'app': app}, function(jsondata){
|
async:false,//todo a proper sollution for this without sync ajax calls
|
||||||
t.cache[app] = jsondata.data;
|
data:{'app': app},
|
||||||
});
|
type:'POST',
|
||||||
|
success:function(jsondata){
|
||||||
|
t.cache[app] = jsondata.data;
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
// Bad answer ...
|
// Bad answer ...
|
||||||
if( !( app in t.cache )){
|
if( !( app in t.cache )){
|
||||||
|
|
Loading…
Reference in New Issue