diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-23 11:18:00 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-09-23 11:18:00 +0200 |
commit | fc76a13c520d1d5345c721e0616d770e1fd344ea (patch) | |
tree | 1dc8e108588a52182e0c8c346423aab171e66944 /apps/files_trashbin | |
parent | 534d93d2d3d549039db2661cdc4b9e939a0abe0d (diff) | |
parent | 9851f0f4f2a97dc6ac1382bcd533eb23feffa4e0 (diff) | |
download | nextcloud-server-fc76a13c520d1d5345c721e0616d770e1fd344ea.tar.gz nextcloud-server-fc76a13c520d1d5345c721e0616d770e1fd344ea.zip |
Merge branch 'master' into sharing_mail_notification_master
Conflicts:
lib/public/share.php
Diffstat (limited to 'apps/files_trashbin')
27 files changed, 162 insertions, 11 deletions
diff --git a/apps/files_trashbin/ajax/list.php b/apps/files_trashbin/ajax/list.php index e72e67b01d7..c9dc13b7840 100644 --- a/apps/files_trashbin/ajax/list.php +++ b/apps/files_trashbin/ajax/list.php @@ -15,7 +15,7 @@ $data = array(); // Make breadcrumb if($doBreadcrumb) { - $breadcrumb = \OCA\files_trashbin\lib\Helper::makeBreadcrumb($dir); + $breadcrumb = \OCA\Files_Trashbin\Helper::makeBreadcrumb($dir); $breadcrumbNav = new OCP\Template('files_trashbin', 'part.breadcrumb', ''); $breadcrumbNav->assign('breadcrumb', $breadcrumb, false); @@ -26,7 +26,7 @@ if($doBreadcrumb) { } // make filelist -$files = \OCA\files_trashbin\lib\Helper::getTrashFiles($dir); +$files = \OCA\Files_Trashbin\Helper::getTrashFiles($dir); if ($files === null){ header("HTTP/1.0 404 Not Found"); diff --git a/apps/files_trashbin/appinfo/app.php b/apps/files_trashbin/appinfo/app.php index 2c101f0a723..d30a601ef56 100644 --- a/apps/files_trashbin/appinfo/app.php +++ b/apps/files_trashbin/appinfo/app.php @@ -1,7 +1,7 @@ <?php -OC::$CLASSPATH['OCA\Files_Trashbin\Hooks'] = 'files_trashbin/lib/hooks.php'; -OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php'; +//OC::$CLASSPATH['OCA\Files_Trashbin\Hooks'] = 'files_trashbin/lib/hooks.php'; +//OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php'; // register hooks \OCA\Files_Trashbin\Trashbin::registerHooks(); diff --git a/apps/files_trashbin/index.php b/apps/files_trashbin/index.php index 9f17448a757..d8661e170a5 100644 --- a/apps/files_trashbin/index.php +++ b/apps/files_trashbin/index.php @@ -36,7 +36,7 @@ if ($isIE8 && isset($_GET['dir'])){ $ajaxLoad = false; if (!$isIE8){ - $files = \OCA\files_trashbin\lib\Helper::getTrashFiles($dir); + $files = \OCA\Files_Trashbin\Helper::getTrashFiles($dir); } else{ $files = array(); @@ -54,7 +54,7 @@ if ($dir && $dir !== '/') { $dirlisting = true; } -$breadcrumb = \OCA\files_trashbin\lib\Helper::makeBreadcrumb($dir); +$breadcrumb = \OCA\Files_Trashbin\Helper::makeBreadcrumb($dir); $breadcrumbNav = new OCP\Template('files_trashbin', 'part.breadcrumb', ''); $breadcrumbNav->assign('breadcrumb', $breadcrumb); diff --git a/apps/files_trashbin/l10n/ach.php b/apps/files_trashbin/l10n/ach.php new file mode 100644 index 00000000000..5569f410cc9 --- /dev/null +++ b/apps/files_trashbin/l10n/ach.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n > 1);"; diff --git a/apps/files_trashbin/l10n/af_ZA.php b/apps/files_trashbin/l10n/af_ZA.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/af_ZA.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/be.php b/apps/files_trashbin/l10n/be.php new file mode 100644 index 00000000000..50df7ff5a97 --- /dev/null +++ b/apps/files_trashbin/l10n/be.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("","","",""), +"_%n file_::_%n files_" => array("","","","") +); +$PLURAL_FORMS = "nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"; diff --git a/apps/files_trashbin/l10n/bs.php b/apps/files_trashbin/l10n/bs.php new file mode 100644 index 00000000000..af7033bd183 --- /dev/null +++ b/apps/files_trashbin/l10n/bs.php @@ -0,0 +1,7 @@ +<?php +$TRANSLATIONS = array( +"Name" => "Ime", +"_%n folder_::_%n folders_" => array("","",""), +"_%n file_::_%n files_" => array("","","") +); +$PLURAL_FORMS = "nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);"; diff --git a/apps/files_trashbin/l10n/de_AT.php b/apps/files_trashbin/l10n/de_AT.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/de_AT.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/de_CH.php b/apps/files_trashbin/l10n/de_CH.php new file mode 100644 index 00000000000..92290a0de50 --- /dev/null +++ b/apps/files_trashbin/l10n/de_CH.php @@ -0,0 +1,19 @@ +<?php +$TRANSLATIONS = array( +"Couldn't delete %s permanently" => "Konnte %s nicht dauerhaft löschen", +"Couldn't restore %s" => "Konnte %s nicht wiederherstellen", +"perform restore operation" => "Wiederherstellung ausführen", +"Error" => "Fehler", +"delete file permanently" => "Datei dauerhaft löschen", +"Delete permanently" => "Endgültig löschen", +"Name" => "Name", +"Deleted" => "Gelöscht", +"_%n folder_::_%n folders_" => array("%n Ordner","%n Ordner"), +"_%n file_::_%n files_" => array("%n Datei","%n Dateien"), +"restored" => "Wiederhergestellt", +"Nothing in here. Your trash bin is empty!" => "Nichts zu löschen, Ihr Papierkorb ist leer!", +"Restore" => "Wiederherstellen", +"Delete" => "Löschen", +"Deleted Files" => "Gelöschte Dateien" +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/en@pirate.php b/apps/files_trashbin/l10n/en@pirate.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/en@pirate.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/en_GB.php b/apps/files_trashbin/l10n/en_GB.php new file mode 100644 index 00000000000..be9d8b9f520 --- /dev/null +++ b/apps/files_trashbin/l10n/en_GB.php @@ -0,0 +1,19 @@ +<?php +$TRANSLATIONS = array( +"Couldn't delete %s permanently" => "Couldn't delete %s permanently", +"Couldn't restore %s" => "Couldn't restore %s", +"perform restore operation" => "perform restore operation", +"Error" => "Error", +"delete file permanently" => "delete file permanently", +"Delete permanently" => "Delete permanently", +"Name" => "Name", +"Deleted" => "Deleted", +"_%n folder_::_%n folders_" => array("%n folder","%n folders"), +"_%n file_::_%n files_" => array("%n file","%n files"), +"restored" => "restored", +"Nothing in here. Your trash bin is empty!" => "Nothing in here. Your recycle bin is empty!", +"Restore" => "Restore", +"Delete" => "Delete", +"Deleted Files" => "Deleted Files" +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/es_MX.php b/apps/files_trashbin/l10n/es_MX.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/es_MX.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/hi.php b/apps/files_trashbin/l10n/hi.php new file mode 100644 index 00000000000..71711218b14 --- /dev/null +++ b/apps/files_trashbin/l10n/hi.php @@ -0,0 +1,7 @@ +<?php +$TRANSLATIONS = array( +"Error" => "त्रुटि", +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/ka.php b/apps/files_trashbin/l10n/ka.php new file mode 100644 index 00000000000..70f10d7c0bf --- /dev/null +++ b/apps/files_trashbin/l10n/ka.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array(""), +"_%n file_::_%n files_" => array("") +); +$PLURAL_FORMS = "nplurals=1; plural=0;"; diff --git a/apps/files_trashbin/l10n/km.php b/apps/files_trashbin/l10n/km.php new file mode 100644 index 00000000000..70f10d7c0bf --- /dev/null +++ b/apps/files_trashbin/l10n/km.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array(""), +"_%n file_::_%n files_" => array("") +); +$PLURAL_FORMS = "nplurals=1; plural=0;"; diff --git a/apps/files_trashbin/l10n/kn.php b/apps/files_trashbin/l10n/kn.php new file mode 100644 index 00000000000..70f10d7c0bf --- /dev/null +++ b/apps/files_trashbin/l10n/kn.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array(""), +"_%n file_::_%n files_" => array("") +); +$PLURAL_FORMS = "nplurals=1; plural=0;"; diff --git a/apps/files_trashbin/l10n/ml_IN.php b/apps/files_trashbin/l10n/ml_IN.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/ml_IN.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/my_MM.php b/apps/files_trashbin/l10n/my_MM.php new file mode 100644 index 00000000000..70f10d7c0bf --- /dev/null +++ b/apps/files_trashbin/l10n/my_MM.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array(""), +"_%n file_::_%n files_" => array("") +); +$PLURAL_FORMS = "nplurals=1; plural=0;"; diff --git a/apps/files_trashbin/l10n/ne.php b/apps/files_trashbin/l10n/ne.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/ne.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/nqo.php b/apps/files_trashbin/l10n/nqo.php new file mode 100644 index 00000000000..70f10d7c0bf --- /dev/null +++ b/apps/files_trashbin/l10n/nqo.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array(""), +"_%n file_::_%n files_" => array("") +); +$PLURAL_FORMS = "nplurals=1; plural=0;"; diff --git a/apps/files_trashbin/l10n/pa.php b/apps/files_trashbin/l10n/pa.php new file mode 100644 index 00000000000..e53707fd707 --- /dev/null +++ b/apps/files_trashbin/l10n/pa.php @@ -0,0 +1,8 @@ +<?php +$TRANSLATIONS = array( +"Error" => "ਗਲਤੀ", +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("",""), +"Delete" => "ਹਟਾਓ" +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/l10n/ro.php b/apps/files_trashbin/l10n/ro.php index 0b1d2cd9e17..12377bb0652 100644 --- a/apps/files_trashbin/l10n/ro.php +++ b/apps/files_trashbin/l10n/ro.php @@ -3,8 +3,8 @@ $TRANSLATIONS = array( "Error" => "Eroare", "Delete permanently" => "Stergere permanenta", "Name" => "Nume", -"_%n folder_::_%n folders_" => array("","",""), -"_%n file_::_%n files_" => array("","",""), +"_%n folder_::_%n folders_" => array("","","%n directoare"), +"_%n file_::_%n files_" => array("","","%n fișiere"), "Delete" => "Șterge" ); $PLURAL_FORMS = "nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));"; diff --git a/apps/files_trashbin/l10n/sk.php b/apps/files_trashbin/l10n/sk.php new file mode 100644 index 00000000000..94aaf9b3a94 --- /dev/null +++ b/apps/files_trashbin/l10n/sk.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("","",""), +"_%n file_::_%n files_" => array("","","") +); +$PLURAL_FORMS = "nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;"; diff --git a/apps/files_trashbin/l10n/sr@latin.php b/apps/files_trashbin/l10n/sr@latin.php index 483d1e3ca2b..fa30afcf4bf 100644 --- a/apps/files_trashbin/l10n/sr@latin.php +++ b/apps/files_trashbin/l10n/sr@latin.php @@ -1,5 +1,6 @@ <?php $TRANSLATIONS = array( +"Error" => "Greška", "Name" => "Ime", "_%n folder_::_%n folders_" => array("","",""), "_%n file_::_%n files_" => array("","",""), diff --git a/apps/files_trashbin/l10n/sw_KE.php b/apps/files_trashbin/l10n/sw_KE.php new file mode 100644 index 00000000000..0acad00e8b5 --- /dev/null +++ b/apps/files_trashbin/l10n/sw_KE.php @@ -0,0 +1,6 @@ +<?php +$TRANSLATIONS = array( +"_%n folder_::_%n folders_" => array("",""), +"_%n file_::_%n files_" => array("","") +); +$PLURAL_FORMS = "nplurals=2; plural=(n != 1);"; diff --git a/apps/files_trashbin/lib/helper.php b/apps/files_trashbin/lib/helper.php index 098fc0b54b7..99f534565f9 100644 --- a/apps/files_trashbin/lib/helper.php +++ b/apps/files_trashbin/lib/helper.php @@ -1,6 +1,6 @@ <?php -namespace OCA\files_trashbin\lib; +namespace OCA\Files_Trashbin; class Helper { @@ -62,11 +62,11 @@ class Helper } $i['permissions'] = \OCP\PERMISSION_READ; $i['isPreviewAvailable'] = \OCP\Preview::isMimeSupported($r['mime']); - $i['icon'] = \OCA\files\lib\Helper::determineIcon($i); + $i['icon'] = \OCA\Files\Helper::determineIcon($i); $files[] = $i; } - usort($files, array('\OCA\files\lib\Helper', 'fileCmp')); + usort($files, array('\OCA\Files\Helper', 'fileCmp')); return $files; } diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trashbin.php index c79afdc0c2e..c79afdc0c2e 100644 --- a/apps/files_trashbin/lib/trash.php +++ b/apps/files_trashbin/lib/trashbin.php |