Adapt javascript-i18n to latest changes

This commit is contained in:
Jakob Sack 2011-06-20 22:57:28 +02:00
parent fb7f00edbc
commit bcfd1ff304
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
*/
// Init owncloud
require_once('../lib/base.php');
require_once('../../lib/base.php');
$app = $_POST["app"];

View File

@ -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;
});