Adapt javascript-i18n to latest changes
This commit is contained in:
parent
fb7f00edbc
commit
bcfd1ff304
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
// Init owncloud
|
||||
require_once('../lib/base.php');
|
||||
require_once('../../lib/base.php');
|
||||
|
||||
$app = $_POST["app"];
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
var _l10ncache = {};
|
||||
function t(app,text){
|
||||
if( !( app in _l10ncache )){
|
||||
$.post( oc_webroot+'/l10n/javascript.php', {'app': app}, function(jsondata){
|
||||
$.post( oc_webroot+'/core/ajax/translations.php', {'app': app}, function(jsondata){
|
||||
_l10ncache[app] = jsondata.data;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue