diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-22 23:04:14 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-22 23:04:14 +0200 |
commit | 179b42c56deeb37cf8c3f782bcd145daac64404b (patch) | |
tree | 62d81da31b8dd32c03688f0eac35a7a1ab4db108 /lib/files.php | |
parent | 25e3c9cbeb7b6e643c748fcf393509c3a32b68d6 (diff) | |
download | nextcloud-server-179b42c56deeb37cf8c3f782bcd145daac64404b.tar.gz nextcloud-server-179b42c56deeb37cf8c3f782bcd145daac64404b.zip |
Fixed review issues
Diffstat (limited to 'lib/files.php')
-rw-r--r-- | lib/files.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/files.php b/lib/files.php index 0e5b5d54ff2..c705d2adb1a 100644 --- a/lib/files.php +++ b/lib/files.php @@ -62,7 +62,8 @@ class OC_Files { $zip = new ZipArchive(); $filename = OC_Helper::tmpFile('.zip'); if ($zip->open($filename, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE)!==true) { - throw new Exception("cannot open '$filename'\n"); + $l = OC_L10N::get('lib'); + throw new Exception($l->t('cannot open "%s"', array($filename))); } foreach ($files as $file) { $file = $dir . '/' . $file; @@ -93,7 +94,8 @@ class OC_Files { $zip = new ZipArchive(); $filename = OC_Helper::tmpFile('.zip'); if ($zip->open($filename, ZIPARCHIVE::CREATE | ZIPARCHIVE::OVERWRITE)!==true) { - throw new Exception("cannot open '$filename'\n"); + $l = OC_L10N::get('lib'); + throw new Exception($l->t('cannot open "%s"', array($filename))); } $file = $dir . '/' . $files; self::zipAddDir($file, $zip); @@ -249,8 +251,8 @@ class OC_Files { header("HTTP/1.0 409 Conflict"); OC_Template::printErrorPage( $l->t('Selected files too large to generate zip file.'), - 'Download the files in smaller chunks, seperately' - .' or kindly ask your administrator.<br/><a href="javascript:history.back()">' + $l->t('Download the files in smaller chunks, seperately or kindly ask your administrator.') + .'<br/><a href="javascript:history.back()">' . $l->t('Back to Files') . '</a>' ); exit; |