From 22c6b48d2f07109c784b85791da093cba36da65b Mon Sep 17 00:00:00 2001 From: scambra Date: Fri, 21 Sep 2012 11:48:20 +0200 Subject: [PATCH] translate files_sharing app --- apps/files_sharing/public.php | 6 +-- apps/files_sharing/templates/public.php | 8 +++- core/js/share.js | 52 ++++++++++++------------- 3 files changed, 35 insertions(+), 31 deletions(-) diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index bed1a19fd63..dbaf29e962d 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -119,7 +119,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { $folder->assign('uploadMaxHumanFilesize', 0); $folder->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true))); $tmpl->assign('folder', $folder->fetchPage(), false); - $tmpl->assign('details', $uidOwner.' shared the folder '.$baseDir.' with you'); + $tmpl->assign('uidOwner', $uidOwner); $tmpl->assign('dir', basename($dir)); $tmpl->assign('filename', basename($path)); $tmpl->assign('mimetype', OC_Filesystem::getMimeType($path)); @@ -132,7 +132,7 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { $tmpl->assign('downloadURL', OCP\Util::linkToPublic('files').'&download&dir='.$_GET['dir'].'&path='.$getPath, false); } else { // Show file preview if viewer is available - $tmpl->assign('details', $uidOwner.' shared the file '.basename($path).' with you'); + $tmpl->assign('uidOwner', $uidOwner); $tmpl->assign('dir', dirname($path)); $tmpl->assign('filename', basename($path)); $tmpl->assign('mimetype', OC_Filesystem::getMimeType($path)); @@ -155,4 +155,4 @@ if (isset($_GET['file']) || isset($_GET['dir'])) { } header('HTTP/1.0 404 Not Found'); $tmpl = new OCP\Template('', '404', 'guest'); -$tmpl->printPage(); \ No newline at end of file +$tmpl->printPage(); diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index cd92d7b9dc2..fd9b79e6f17 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -5,7 +5,11 @@