commit
81fd1badc3
@ -0,0 +1,3 @@ |
||||
[submodule "3rdparty"] |
||||
path = 3rdparty |
||||
url = git://github.com/owncloud/3rdparty.git |
||||
@ -0,0 +1 @@ |
||||
Subproject commit a13af72fbe8983686fc47489a750e60319f68ac2 |
||||
@ -1,26 +1,41 @@ |
||||
<?php |
||||
|
||||
// Init owncloud |
||||
|
||||
/** |
||||
* ownCloud - Core |
||||
* |
||||
* @author Morris Jobke |
||||
* @copyright 2013 Morris Jobke morris.jobke@gmail.com |
||||
* |
||||
* This library is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
* License as published by the Free Software Foundation; either |
||||
* version 3 of the License, or any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public |
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
||||
* |
||||
*/ |
||||
|
||||
OCP\JSON::checkLoggedIn(); |
||||
OCP\JSON::callCheck(); |
||||
|
||||
// Get data |
||||
$dir = stripslashes($_GET["dir"]); |
||||
$file = stripslashes($_GET["file"]); |
||||
$newname = stripslashes($_GET["newname"]); |
||||
|
||||
$l = OC_L10N::get('files'); |
||||
$files = new \OCA\Files\App( |
||||
\OC\Files\Filesystem::getView(), |
||||
\OC_L10n::get('files') |
||||
); |
||||
$result = $files->rename( |
||||
$_GET["dir"], |
||||
$_GET["file"], |
||||
$_GET["newname"] |
||||
); |
||||
|
||||
if ( $newname !== '.' and ($dir != '' || $file != 'Shared') and $newname !== '.') { |
||||
$targetFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $newname); |
||||
$sourceFile = \OC\Files\Filesystem::normalizePath($dir . '/' . $file); |
||||
if(\OC\Files\Filesystem::rename($sourceFile, $targetFile)) { |
||||
OCP\JSON::success(array("data" => array( "dir" => $dir, "file" => $file, "newname" => $newname ))); |
||||
} else { |
||||
OCP\JSON::error(array("data" => array( "message" => $l->t("Unable to rename file") ))); |
||||
} |
||||
}else{ |
||||
OCP\JSON::error(array("data" => array( "message" => $l->t("Unable to rename file") ))); |
||||
} |
||||
if($result['success'] === true){ |
||||
OCP\JSON::success(array('data' => $result['data'])); |
||||
} else { |
||||
OCP\JSON::error(array('data' => $result['data'])); |
||||
} |
||||
@ -1,24 +1,72 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s - File with this name already exists" => "فشل في نقل الملف %s - يوجد ملف بنفس هذا الاسم", |
||||
"Could not move %s" => "فشل في نقل %s", |
||||
"No file was uploaded. Unknown error" => "لم يتم رفع أي ملف , خطأ غير معروف", |
||||
"There is no error, the file uploaded with success" => "تم ترفيع الملفات بنجاح.", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "حجم الملف المرفوع تجاوز قيمة upload_max_filesize الموجودة في ملف php.ini ", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "حجم الملف الذي تريد ترفيعه أعلى مما MAX_FILE_SIZE يسمح به في واجهة ال HTML.", |
||||
"The uploaded file was only partially uploaded" => "تم ترفيع جزء من الملفات الذي تريد ترفيعها فقط", |
||||
"No file was uploaded" => "لم يتم ترفيع أي من الملفات", |
||||
"Missing a temporary folder" => "المجلد المؤقت غير موجود", |
||||
"Failed to write to disk" => "خطأ في الكتابة على القرص الصلب", |
||||
"Not enough storage available" => "لا يوجد مساحة تخزينية كافية", |
||||
"Invalid directory." => "مسار غير صحيح.", |
||||
"Files" => "الملفات", |
||||
"Delete" => "محذوف", |
||||
"Close" => "إغلق", |
||||
"Name" => "الاسم", |
||||
"Share" => "شارك", |
||||
"Delete permanently" => "حذف بشكل دائم", |
||||
"Delete" => "إلغاء", |
||||
"Rename" => "إعادة تسميه", |
||||
"Pending" => "قيد الانتظار", |
||||
"{new_name} already exists" => "{new_name} موجود مسبقا", |
||||
"replace" => "استبدال", |
||||
"suggest name" => "اقترح إسم", |
||||
"cancel" => "إلغاء", |
||||
"replaced {new_name} with {old_name}" => "استبدل {new_name} بـ {old_name}", |
||||
"undo" => "تراجع", |
||||
"perform delete operation" => "جاري تنفيذ عملية الحذف", |
||||
"1 file uploading" => "جاري رفع 1 ملف", |
||||
"'.' is an invalid file name." => "\".\" اسم ملف غير صحيح.", |
||||
"File name cannot be empty." => "اسم الملف لا يجوز أن يكون فارغا", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "اسم غير صحيح , الرموز '\\', '/', '<', '>', ':', '\"', '|', '?' و \"*\" غير مسموح استخدامها", |
||||
"Your storage is full, files can not be updated or synced anymore!" => "مساحتك التخزينية ممتلئة, لا يمكم تحديث ملفاتك أو مزامنتها بعد الآن !", |
||||
"Your storage is almost full ({usedSpacePercent}%)" => "مساحتك التخزينية امتلأت تقريبا ", |
||||
"Your download is being prepared. This might take some time if the files are big." => "جاري تجهيز عملية التحميل. قد تستغرق بعض الوقت اذا كان حجم الملفات كبير.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "فشل في رفع ملفاتك , إما أنها مجلد أو حجمها 0 بايت", |
||||
"Upload cancelled." => "تم إلغاء عملية رفع الملفات .", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "عملية رفع الملفات قيد التنفيذ. اغلاق الصفحة سوف يلغي عملية رفع الملفات.", |
||||
"URL cannot be empty." => "عنوان ال URL لا يجوز أن يكون فارغا.", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "إسم مجلد غير صحيح. استخدام مصطلح \"Shared\" محجوز للنظام", |
||||
"Error" => "خطأ", |
||||
"Name" => "اسم", |
||||
"Size" => "حجم", |
||||
"Modified" => "معدل", |
||||
"Upload" => "إرفع", |
||||
"1 folder" => "مجلد عدد 1", |
||||
"{count} folders" => "{count} مجلدات", |
||||
"1 file" => "ملف واحد", |
||||
"{count} files" => "{count} ملفات", |
||||
"Unable to rename file" => "فشل في اعادة تسمية الملف", |
||||
"Upload" => "رفع", |
||||
"File handling" => "التعامل مع الملف", |
||||
"Maximum upload size" => "الحد الأقصى لحجم الملفات التي يمكن رفعها", |
||||
"max. possible: " => "الحد الأقصى المسموح به", |
||||
"Needed for multi-file and folder downloads." => "اجباري للسماح بالتحميل المتعدد للمجلدات والملفات", |
||||
"Enable ZIP-download" => "تفعيل خاصية تحميل ملفات ZIP", |
||||
"0 is unlimited" => "0 = غير محدود", |
||||
"Maximum input size for ZIP files" => "الحد الأقصى المسموح به لملفات ZIP", |
||||
"Save" => "حفظ", |
||||
"New" => "جديد", |
||||
"Text file" => "ملف", |
||||
"Folder" => "مجلد", |
||||
"From link" => "من رابط", |
||||
"Deleted files" => "حذف الملفات", |
||||
"Cancel upload" => "إلغاء رفع الملفات", |
||||
"You don’t have write permissions here." => "لا تملك صلاحيات الكتابة هنا.", |
||||
"Nothing in here. Upload something!" => "لا يوجد شيء هنا. إرفع بعض الملفات!", |
||||
"Download" => "تحميل", |
||||
"Unshare" => "إلغاء مشاركة", |
||||
"Upload too large" => "حجم الترفيع أعلى من المسموح", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "حجم الملفات التي تريد ترفيعها أعلى من المسموح على الخادم." |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "حجم الملفات التي تريد ترفيعها أعلى من المسموح على الخادم.", |
||||
"Files are being scanned, please wait." => "يرجى الانتظار , جاري فحص الملفات .", |
||||
"Current scanning" => "الفحص الحالي", |
||||
"Upgrading filesystem cache..." => "تحديث ذاكرة التخزين المؤقت(الكاش) الخاصة بملفات النظام ..." |
||||
); |
||||
|
||||
@ -0,0 +1,74 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s - File with this name already exists" => "Methwyd symud %s - Mae ffeil gyda'r enw hwn eisoes yn bodoli", |
||||
"Could not move %s" => "Methwyd symud %s", |
||||
"No file was uploaded. Unknown error" => "Ni lwythwyd ffeil i fyny. Gwall anhysbys.", |
||||
"There is no error, the file uploaded with success" => "Does dim gwall, llwythodd y ffeil i fyny'n llwyddiannus", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "Mae'r ffeil lwythwyd i fyny'n fwy na chyfarwyddeb upload_max_filesize yn php.ini:", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Mae'r ffeil lwythwyd i fyny'n fwy na chyfarwyddeb MAX_FILE_SIZE bennwyd yn y ffurflen HTML", |
||||
"The uploaded file was only partially uploaded" => "Dim ond yn rhannol y llwythwyd y ffeil i fyny", |
||||
"No file was uploaded" => "Ni lwythwyd ffeil i fyny", |
||||
"Missing a temporary folder" => "Plygell dros dro yn eisiau", |
||||
"Failed to write to disk" => "Methwyd ysgrifennu i'r ddisg", |
||||
"Not enough storage available" => "Dim digon o le storio ar gael", |
||||
"Invalid directory." => "Cyfeiriadur annilys.", |
||||
"Files" => "Ffeiliau", |
||||
"Share" => "Rhannu", |
||||
"Delete permanently" => "Dileu'n barhaol", |
||||
"Delete" => "Dileu", |
||||
"Rename" => "Ailenwi", |
||||
"Pending" => "I ddod", |
||||
"{new_name} already exists" => "{new_name} yn bodoli'n barod", |
||||
"replace" => "amnewid", |
||||
"suggest name" => "awgrymu enw", |
||||
"cancel" => "diddymu", |
||||
"replaced {new_name} with {old_name}" => "newidiwyd {new_name} yn lle {old_name}", |
||||
"undo" => "dadwneud", |
||||
"perform delete operation" => "cyflawni gweithred dileu", |
||||
"1 file uploading" => "1 ffeil yn llwytho i fyny", |
||||
"files uploading" => "ffeiliau'n llwytho i fyny", |
||||
"'.' is an invalid file name." => "Mae '.' yn enw ffeil annilys.", |
||||
"File name cannot be empty." => "Does dim hawl cael enw ffeil gwag.", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Enw annilys, ni chaniateir, '\\', '/', '<', '>', ':', '\"', '|', '?' na '*'.", |
||||
"Your storage is full, files can not be updated or synced anymore!" => "Mae eich storfa'n llawn, ni ellir diweddaru a chydweddu ffeiliau mwyach!", |
||||
"Your storage is almost full ({usedSpacePercent}%)" => "Mae eich storfa bron a bod yn llawn ({usedSpacePercent}%)", |
||||
"Your download is being prepared. This might take some time if the files are big." => "Wrthi'n paratoi i lwytho i lawr. Gall gymryd peth amser os yw'r ffeiliau'n fawr.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Methu llwytho'ch ffeil i fyny gan ei fod yn gyferiadur neu'n cynnwys 0 beit", |
||||
"Not enough space available" => "Dim digon o le ar gael", |
||||
"Upload cancelled." => "Diddymwyd llwytho i fyny.", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Mae ffeiliau'n cael eu llwytho i fyny. Bydd gadael y dudalen hon nawr yn diddymu'r broses.", |
||||
"URL cannot be empty." => "Does dim hawl cael URL gwag.", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "Enw plygell annilys. Mae'r defnydd o 'Shared' yn cael ei gadw gan Owncloud", |
||||
"Error" => "Gwall", |
||||
"Name" => "Enw", |
||||
"Size" => "Maint", |
||||
"Modified" => "Addaswyd", |
||||
"1 folder" => "1 blygell", |
||||
"{count} folders" => "{count} plygell", |
||||
"1 file" => "1 ffeil", |
||||
"{count} files" => "{count} ffeil", |
||||
"Unable to rename file" => "Methu ailenwi ffeil", |
||||
"Upload" => "Llwytho i fyny", |
||||
"File handling" => "Trafod ffeiliau", |
||||
"Maximum upload size" => "Maint mwyaf llwytho i fyny", |
||||
"max. possible: " => "mwyaf. posib:", |
||||
"Needed for multi-file and folder downloads." => "Angen ar gyfer llwytho mwy nag un ffeil neu blygell i lawr yr un pryd.", |
||||
"Enable ZIP-download" => "Galluogi llwytho i lawr ZIP", |
||||
"0 is unlimited" => "0 yn ddiderfyn", |
||||
"Maximum input size for ZIP files" => "Maint mewnbynnu mwyaf ffeiliau ZIP", |
||||
"Save" => "Cadw", |
||||
"New" => "Newydd", |
||||
"Text file" => "Ffeil destun", |
||||
"Folder" => "Plygell", |
||||
"From link" => "Dolen o", |
||||
"Deleted files" => "Ffeiliau ddilewyd", |
||||
"Cancel upload" => "Diddymu llwytho i fyny", |
||||
"You don’t have write permissions here." => "Nid oes gennych hawliau ysgrifennu fan hyn.", |
||||
"Nothing in here. Upload something!" => "Does dim byd fan hyn. Llwythwch rhywbeth i fyny!", |
||||
"Download" => "Llwytho i lawr", |
||||
"Unshare" => "Dad-rannu", |
||||
"Upload too large" => "Maint llwytho i fyny'n rhy fawr", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Mae'r ffeiliau rydych yn ceisio llwytho i fyny'n fwy na maint mwyaf llwytho ffeiliau i fyny ar y gweinydd hwn.", |
||||
"Files are being scanned, please wait." => "Arhoswch, mae ffeiliau'n cael eu sganio.", |
||||
"Current scanning" => "Sganio cyfredol", |
||||
"Upgrading filesystem cache..." => "Uwchraddio storfa system ffeiliau..." |
||||
); |
||||
@ -0,0 +1,3 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Download" => "Download" |
||||
); |
||||
@ -0,0 +1,3 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Save" => "tallentaa" |
||||
); |
||||
@ -1,6 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Delete" => "Ջնջել", |
||||
"Close" => "Փակել", |
||||
"Save" => "Պահպանել", |
||||
"Download" => "Բեռնել" |
||||
); |
||||
|
||||
@ -1,46 +1,74 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s - File with this name already exists" => "Tidak dapat memindahkan %s - Berkas dengan nama ini sudah ada", |
||||
"Could not move %s" => "Tidak dapat memindahkan %s", |
||||
"No file was uploaded. Unknown error" => "Tidak ada berkas yang diunggah. Galat tidak dikenal.", |
||||
"There is no error, the file uploaded with success" => "Tidak ada galat, berkas sukses diunggah", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "File yang diunggah melampaui directive MAX_FILE_SIZE yang disebutan dalam form HTML.", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "Berkas yang diunggah melampaui direktif upload_max_filesize pada php.ini", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Berkas yang diunggah melampaui direktif MAX_FILE_SIZE yang ditentukan dalam formulir HTML.", |
||||
"The uploaded file was only partially uploaded" => "Berkas hanya diunggah sebagian", |
||||
"No file was uploaded" => "Tidak ada berkas yang diunggah", |
||||
"Missing a temporary folder" => "Kehilangan folder temporer", |
||||
"Missing a temporary folder" => "Folder sementara tidak ada", |
||||
"Failed to write to disk" => "Gagal menulis ke disk", |
||||
"Not enough storage available" => "Ruang penyimpanan tidak mencukupi", |
||||
"Invalid directory." => "Direktori tidak valid.", |
||||
"Files" => "Berkas", |
||||
"Share" => "Bagikan", |
||||
"Delete permanently" => "Hapus secara permanen", |
||||
"Delete" => "Hapus", |
||||
"Rename" => "Ubah nama", |
||||
"Pending" => "Menunggu", |
||||
"replace" => "mengganti", |
||||
"{new_name} already exists" => "{new_name} sudah ada", |
||||
"replace" => "ganti", |
||||
"suggest name" => "sarankan nama", |
||||
"cancel" => "batalkan", |
||||
"undo" => "batal dikerjakan", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Gagal mengunggah berkas anda karena berupa direktori atau mempunyai ukuran 0 byte", |
||||
"Upload Error" => "Terjadi Galat Pengunggahan", |
||||
"Close" => "tutup", |
||||
"replaced {new_name} with {old_name}" => "mengganti {new_name} dengan {old_name}", |
||||
"undo" => "urungkan", |
||||
"perform delete operation" => "Lakukan operasi penghapusan", |
||||
"1 file uploading" => "1 berkas diunggah", |
||||
"files uploading" => "berkas diunggah", |
||||
"'.' is an invalid file name." => "'.' bukan nama berkas yang valid.", |
||||
"File name cannot be empty." => "Nama berkas tidak boleh kosong.", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Nama tidak valid, karakter '\\', '/', '<', '>', ':', '\"', '|', '?' dan '*' tidak diizinkan.", |
||||
"Your storage is full, files can not be updated or synced anymore!" => "Ruang penyimpanan Anda penuh, berkas tidak dapat diperbarui atau disinkronkan lagi!", |
||||
"Your storage is almost full ({usedSpacePercent}%)" => "Ruang penyimpanan hampir penuh ({usedSpacePercent}%)", |
||||
"Your download is being prepared. This might take some time if the files are big." => "Unduhan Anda sedang disiapkan. Prosesnya dapat berlangsung agak lama jika ukuran berkasnya besar.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Gagal mengunggah berkas Anda karena berupa direktori atau mempunyai ukuran 0 byte", |
||||
"Not enough space available" => "Ruang penyimpanan tidak mencukupi", |
||||
"Upload cancelled." => "Pengunggahan dibatalkan.", |
||||
"URL cannot be empty." => "tautan tidak boleh kosong", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Berkas sedang diunggah. Meninggalkan halaman ini akan membatalkan proses.", |
||||
"URL cannot be empty." => "URL tidak boleh kosong", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "Nama folder salah. Nama 'Shared' telah digunakan oleh Owncloud.", |
||||
"Error" => "Galat", |
||||
"Name" => "Nama", |
||||
"Size" => "Ukuran", |
||||
"Modified" => "Dimodifikasi", |
||||
"1 folder" => "1 map", |
||||
"{count} folders" => "{count} map", |
||||
"1 folder" => "1 folder", |
||||
"{count} folders" => "{count} folder", |
||||
"1 file" => "1 berkas", |
||||
"{count} files" => "{count} berkas", |
||||
"Unable to rename file" => "Tidak dapat mengubah nama berkas", |
||||
"Upload" => "Unggah", |
||||
"File handling" => "Penanganan berkas", |
||||
"Maximum upload size" => "Ukuran unggah maksimum", |
||||
"max. possible: " => "Kemungkinan maks:", |
||||
"Needed for multi-file and folder downloads." => "Dibutuhkan untuk multi-berkas dan unduhan folder", |
||||
"Maximum upload size" => "Ukuran pengunggahan maksimum", |
||||
"max. possible: " => "Kemungkinan maks.:", |
||||
"Needed for multi-file and folder downloads." => "Dibutuhkan untuk pengunduhan multi-berkas dan multi-folder", |
||||
"Enable ZIP-download" => "Aktifkan unduhan ZIP", |
||||
"0 is unlimited" => "0 adalah tidak terbatas", |
||||
"Maximum input size for ZIP files" => "Ukuran masukan maksimal untuk berkas ZIP", |
||||
"Save" => "simpan", |
||||
"0 is unlimited" => "0 berarti tidak terbatas", |
||||
"Maximum input size for ZIP files" => "Ukuran masukan maksimum untuk berkas ZIP", |
||||
"Save" => "Simpan", |
||||
"New" => "Baru", |
||||
"Text file" => "Berkas teks", |
||||
"Folder" => "Folder", |
||||
"Cancel upload" => "Batal mengunggah", |
||||
"From link" => "Dari tautan", |
||||
"Deleted files" => "Berkas yang dihapus", |
||||
"Cancel upload" => "Batal pengunggahan", |
||||
"You don’t have write permissions here." => "Anda tidak memiliki izin menulis di sini.", |
||||
"Nothing in here. Upload something!" => "Tidak ada apa-apa di sini. Unggah sesuatu!", |
||||
"Download" => "Unduh", |
||||
"Unshare" => "batalkan berbagi", |
||||
"Upload too large" => "Unggahan terlalu besar", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Berkas yang anda coba unggah melebihi ukuran maksimum untuk pengunggahan berkas di server ini.", |
||||
"Files are being scanned, please wait." => "Berkas sedang dipindai, silahkan tunggu.", |
||||
"Current scanning" => "Sedang memindai" |
||||
"Unshare" => "Batalkan berbagi", |
||||
"Upload too large" => "Yang diunggah terlalu besar", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Berkas yang dicoba untuk diunggah melebihi ukuran maksimum pengunggahan berkas di server ini.", |
||||
"Files are being scanned, please wait." => "Berkas sedang dipindai, silakan tunggu.", |
||||
"Current scanning" => "Yang sedang dipindai", |
||||
"Upgrading filesystem cache..." => "Meningkatkan tembolok sistem berkas..." |
||||
); |
||||
|
||||
@ -1,23 +1,75 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s - File with this name already exists" => "Klarte ikkje flytta %s – det finst allereie ei fil med dette namnet", |
||||
"Could not move %s" => "Klarte ikkje flytta %s", |
||||
"No file was uploaded. Unknown error" => "Ingen filer lasta opp. Ukjend feil", |
||||
"There is no error, the file uploaded with success" => "Ingen feil, fila vart lasta opp", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "Fila du lasta opp er større enn det «upload_max_filesize» i php.ini tillater: ", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Den opplasta fila er større enn variabelen MAX_FILE_SIZE i HTML-skjemaet", |
||||
"The uploaded file was only partially uploaded" => "Fila vart berre delvis lasta opp", |
||||
"No file was uploaded" => "Ingen filer vart lasta opp", |
||||
"Missing a temporary folder" => "Manglar ei mellombels mappe", |
||||
"Failed to write to disk" => "Klarte ikkje skriva til disk", |
||||
"Not enough storage available" => "Ikkje nok lagringsplass tilgjengeleg", |
||||
"Invalid directory." => "Ugyldig mappe.", |
||||
"Files" => "Filer", |
||||
"Share" => "Del", |
||||
"Delete permanently" => "Slett for godt", |
||||
"Delete" => "Slett", |
||||
"Close" => "Lukk", |
||||
"Rename" => "Endra namn", |
||||
"Pending" => "Under vegs", |
||||
"{new_name} already exists" => "{new_name} finst allereie", |
||||
"replace" => "byt ut", |
||||
"suggest name" => "føreslå namn", |
||||
"cancel" => "avbryt", |
||||
"replaced {new_name} with {old_name}" => "bytte ut {new_name} med {old_name}", |
||||
"undo" => "angre", |
||||
"perform delete operation" => "utfør sletting", |
||||
"1 file uploading" => "1 fil lastar opp", |
||||
"files uploading" => "filer lastar opp", |
||||
"'.' is an invalid file name." => "«.» er eit ugyldig filnamn.", |
||||
"File name cannot be empty." => "Filnamnet kan ikkje vera tomt.", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Ugyldig namn, «\\», «/», «<», «>», «:», «\"», «|», «?» og «*» er ikkje tillate.", |
||||
"Your storage is full, files can not be updated or synced anymore!" => "Lagringa di er full, kan ikkje lenger oppdatera eller synkronisera!", |
||||
"Your storage is almost full ({usedSpacePercent}%)" => "Lagringa di er nesten full ({usedSpacePercent} %)", |
||||
"Your download is being prepared. This might take some time if the files are big." => "Gjer klar nedlastinga di. Dette kan ta ei stund viss filene er store.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Klarte ikkje lasta opp fila sidan ho er ei mappe eller er på 0 byte", |
||||
"Not enough space available" => "Ikkje nok lagringsplass tilgjengeleg", |
||||
"Upload cancelled." => "Opplasting avbroten.", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Fila lastar no opp. Viss du forlèt sida no vil opplastinga verta avbroten.", |
||||
"URL cannot be empty." => "Nettadressa kan ikkje vera tom.", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "Ugyldig mappenamn. Mappa «Shared» er reservert av ownCloud", |
||||
"Error" => "Feil", |
||||
"Name" => "Namn", |
||||
"Size" => "Storleik", |
||||
"Modified" => "Endra", |
||||
"1 folder" => "1 mappe", |
||||
"{count} folders" => "{count} mapper", |
||||
"1 file" => "1 fil", |
||||
"{count} files" => "{count} filer", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by ownCloud" => "Ugyldig mappenamn. Mappa «Shared» er reservert av ownCloud", |
||||
"Unable to rename file" => "Klarte ikkje endra filnamnet", |
||||
"Upload" => "Last opp", |
||||
"File handling" => "Filhandtering", |
||||
"Maximum upload size" => "Maksimal opplastingsstorleik", |
||||
"max. possible: " => "maks. moglege:", |
||||
"Needed for multi-file and folder downloads." => "Nødvendig for fleirfils- og mappenedlastingar.", |
||||
"Enable ZIP-download" => "Slå på ZIP-nedlasting", |
||||
"0 is unlimited" => "0 er ubegrensa", |
||||
"Maximum input size for ZIP files" => "Maksimal storleik for ZIP-filer", |
||||
"Save" => "Lagre", |
||||
"New" => "Ny", |
||||
"Text file" => "Tekst fil", |
||||
"Folder" => "Mappe", |
||||
"From link" => "Frå lenkje", |
||||
"Deleted files" => "Sletta filer", |
||||
"Cancel upload" => "Avbryt opplasting", |
||||
"You don’t have write permissions here." => "Du har ikkje skriverettar her.", |
||||
"Nothing in here. Upload something!" => "Ingenting her. Last noko opp!", |
||||
"Download" => "Last ned", |
||||
"Unshare" => "Udel", |
||||
"Upload too large" => "For stor opplasting", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Filene du prøver å laste opp er større enn maksgrensa til denne tenaren." |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Filene du prøver å lasta opp er større enn maksgrensa til denne tenaren.", |
||||
"Files are being scanned, please wait." => "Skannar filer, ver venleg og vent.", |
||||
"Current scanning" => "Køyrande skanning", |
||||
"Upgrading filesystem cache..." => "Oppgraderer mellomlageret av filsystemet …" |
||||
); |
||||
|
||||
@ -1,71 +1,3 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s - File with this name already exists" => "Неполучается перенести %s - Файл с таким именем уже существует", |
||||
"Could not move %s" => "Неполучается перенести %s ", |
||||
"Unable to rename file" => "Невозможно переименовать файл", |
||||
"No file was uploaded. Unknown error" => "Файл не был загружен. Неизвестная ошибка", |
||||
"There is no error, the file uploaded with success" => "Ошибка отсутствует, файл загружен успешно.", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "Размер загружаемого файла превышает upload_max_filesize директиву в php.ini:", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Размер загруженного", |
||||
"The uploaded file was only partially uploaded" => "Загружаемый файл был загружен частично", |
||||
"No file was uploaded" => "Файл не был загружен", |
||||
"Missing a temporary folder" => "Отсутствует временная папка", |
||||
"Failed to write to disk" => "Не удалось записать на диск", |
||||
"Not enough storage available" => "Недостаточно места в хранилище", |
||||
"Invalid directory." => "Неверный каталог.", |
||||
"Files" => "Файлы", |
||||
"Delete permanently" => "Удалить навсегда", |
||||
"Delete" => "Удалить", |
||||
"Rename" => "Переименовать", |
||||
"Pending" => "Ожидающий решения", |
||||
"{new_name} already exists" => "{новое_имя} уже существует", |
||||
"replace" => "отмена", |
||||
"suggest name" => "подобрать название", |
||||
"cancel" => "отменить", |
||||
"replaced {new_name} with {old_name}" => "заменено {новое_имя} с {старое_имя}", |
||||
"undo" => "отменить действие", |
||||
"perform delete operation" => "выполняется процесс удаления", |
||||
"'.' is an invalid file name." => "'.' является неверным именем файла.", |
||||
"File name cannot be empty." => "Имя файла не может быть пустым.", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Некорректное имя, '\\', '/', '<', '>', ':', '\"', '|', '?' и '*' не допустимы.", |
||||
"Your storage is full, files can not be updated or synced anymore!" => "Ваше хранилище переполнено, фалы больше не могут быть обновлены или синхронизированы!", |
||||
"Your storage is almost full ({usedSpacePercent}%)" => "Ваше хранилище почти полно ({usedSpacePercent}%)", |
||||
"Your download is being prepared. This might take some time if the files are big." => "Идёт подготовка к скачке Вашего файла. Это может занять некоторое время, если фалы большие.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Невозможно загрузить файл,\n так как он имеет нулевой размер или является директорией", |
||||
"Upload Error" => "Ошибка загрузки", |
||||
"Close" => "Закрыть", |
||||
"1 file uploading" => "загрузка 1 файла", |
||||
"{count} files uploading" => "{количество} загружено файлов", |
||||
"Upload cancelled." => "Загрузка отменена", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Процесс загрузки файла. Если покинуть страницу сейчас, загрузка будет отменена.", |
||||
"URL cannot be empty." => "URL не должен быть пустым.", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "Неверное имя папки. Использование наименования 'Опубликовано' зарезервировано Owncloud", |
||||
"Name" => "Имя", |
||||
"Size" => "Размер", |
||||
"Modified" => "Изменен", |
||||
"1 folder" => "1 папка", |
||||
"{count} folders" => "{количество} папок", |
||||
"1 file" => "1 файл", |
||||
"{count} files" => "{количество} файлов", |
||||
"Upload" => "Загрузить ", |
||||
"File handling" => "Работа с файлами", |
||||
"Maximum upload size" => "Максимальный размер загружаемого файла", |
||||
"max. possible: " => "Максимально возможный", |
||||
"Needed for multi-file and folder downloads." => "Необходимо для множественной загрузки.", |
||||
"Enable ZIP-download" => "Включение ZIP-загрузки", |
||||
"0 is unlimited" => "0 без ограничений", |
||||
"Maximum input size for ZIP files" => "Максимальный размер входящих ZIP-файлов ", |
||||
"Save" => "Сохранить", |
||||
"New" => "Новый", |
||||
"Text file" => "Текстовый файл", |
||||
"Folder" => "Папка", |
||||
"From link" => "По ссылке", |
||||
"Cancel upload" => "Отмена загрузки", |
||||
"Nothing in here. Upload something!" => "Здесь ничего нет. Загрузите что-нибудь!", |
||||
"Download" => "Загрузить", |
||||
"Unshare" => "Скрыть", |
||||
"Upload too large" => "Загрузка слишком велика", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Размер файлов, которые Вы пытаетесь загрузить, превышает максимально допустимый размер для загрузки на данный сервер.", |
||||
"Files are being scanned, please wait." => "Файлы сканируются, пожалуйста, подождите.", |
||||
"Current scanning" => "Текущее сканирование", |
||||
"Upgrading filesystem cache..." => "Обновление кэша файловой системы... " |
||||
"Error" => "Ошибка" |
||||
); |
||||
|
||||
@ -0,0 +1,74 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s - File with this name already exists" => "%s nuk u spostua - Aty ekziston një skedar me të njëjtin emër", |
||||
"Could not move %s" => "%s nuk u spostua", |
||||
"No file was uploaded. Unknown error" => "Nuk u ngarkua asnjë skedar. Veprim i gabuar i panjohur", |
||||
"There is no error, the file uploaded with success" => "Nuk pati veprime të gabuara, skedari u ngarkua me sukses", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "Skedari i ngarkuar tejkalon udhëzimin upload_max_filesize tek php.ini:", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Skedari i ngarkuar tejkalon udhëzimin MAX_FILE_SIZE të specifikuar në formularin HTML", |
||||
"The uploaded file was only partially uploaded" => "Skedari i ngarkuar u ngarkua vetëm pjesërisht", |
||||
"No file was uploaded" => "Nuk u ngarkua asnjë skedar", |
||||
"Missing a temporary folder" => "Një dosje e përkohshme nuk u gjet", |
||||
"Failed to write to disk" => "Ruajtja në disk dështoi", |
||||
"Not enough storage available" => "Nuk ka mbetur hapësirë memorizimi e mjaftueshme", |
||||
"Invalid directory." => "Dosje e pavlefshme.", |
||||
"Files" => "Skedarët", |
||||
"Share" => "Nda", |
||||
"Delete permanently" => "Elimino përfundimisht", |
||||
"Delete" => "Elimino", |
||||
"Rename" => "Riemërto", |
||||
"Pending" => "Pezulluar", |
||||
"{new_name} already exists" => "{new_name} ekziston", |
||||
"replace" => "zëvëndëso", |
||||
"suggest name" => "sugjero një emër", |
||||
"cancel" => "anulo", |
||||
"replaced {new_name} with {old_name}" => "U zëvëndësua {new_name} me {old_name}", |
||||
"undo" => "anulo", |
||||
"perform delete operation" => "ekzekuto operacionin e eliminimit", |
||||
"1 file uploading" => "Po ngarkohet 1 skedar", |
||||
"files uploading" => "po ngarkoj skedarët", |
||||
"'.' is an invalid file name." => "'.' është emër i pavlefshëm.", |
||||
"File name cannot be empty." => "Emri i skedarit nuk mund të jetë bosh.", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Emër i pavlefshëm, '\\', '/', '<', '>', ':', '\"', '|', '?' dhe '*' nuk lejohen.", |
||||
"Your storage is full, files can not be updated or synced anymore!" => "Hapësira juaj e memorizimit është plot, nuk mund të ngarkoni apo sinkronizoni më skedarët.", |
||||
"Your storage is almost full ({usedSpacePercent}%)" => "Hapësira juaj e memorizimit është gati plot ({usedSpacePercent}%)", |
||||
"Your download is being prepared. This might take some time if the files are big." => "Shkarkimi juaj po përgatitet. Mund të duhet pak kohë nqse skedarët janë të mëdhenj.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Nuk është i mundur ngarkimi i skedarit tuaj sepse është dosje ose ka dimension 0 byte", |
||||
"Not enough space available" => "Nuk ka hapësirë memorizimi e mjaftueshme", |
||||
"Upload cancelled." => "Ngarkimi u anulua.", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Ngarkimi i skedarit është në vazhdim. Nqse ndërroni faqen tani ngarkimi do të anulohet.", |
||||
"URL cannot be empty." => "URL-i nuk mund të jetë bosh.", |
||||
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "Emri i dosjes është i pavlefshëm. Përdorimi i \"Shared\" është i rezervuar nga Owncloud-i.", |
||||
"Error" => "Veprim i gabuar", |
||||
"Name" => "Emri", |
||||
"Size" => "Dimensioni", |
||||
"Modified" => "Modifikuar", |
||||
"1 folder" => "1 dosje", |
||||
"{count} folders" => "{count} dosje", |
||||
"1 file" => "1 skedar", |
||||
"{count} files" => "{count} skedarë", |
||||
"Unable to rename file" => "Nuk është i mundur riemërtimi i skedarit", |
||||
"Upload" => "Ngarko", |
||||
"File handling" => "Trajtimi i skedarit", |
||||
"Maximum upload size" => "Dimensioni maksimal i ngarkimit", |
||||
"max. possible: " => "maks. i mundur:", |
||||
"Needed for multi-file and folder downloads." => "Duhet për shkarkimin e dosjeve dhe të skedarëve", |
||||
"Enable ZIP-download" => "Aktivizo shkarkimin e ZIP-eve", |
||||
"0 is unlimited" => "0 është i pakufizuar", |
||||
"Maximum input size for ZIP files" => "Dimensioni maksimal i ngarkimit të skedarëve ZIP", |
||||
"Save" => "Ruaj", |
||||
"New" => "I ri", |
||||
"Text file" => "Skedar teksti", |
||||
"Folder" => "Dosje", |
||||
"From link" => "Nga lidhja", |
||||
"Deleted files" => "Skedarë të eliminuar", |
||||
"Cancel upload" => "Anulo ngarkimin", |
||||
"You don’t have write permissions here." => "Nuk keni të drejta për të shkruar këtu.", |
||||
"Nothing in here. Upload something!" => "Këtu nuk ka asgjë. Ngarkoni diçka!", |
||||
"Download" => "Shkarko", |
||||
"Unshare" => "Hiq ndarjen", |
||||
"Upload too large" => "Ngarkimi është shumë i madh", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Skedarët që doni të ngarkoni tejkalojnë dimensionet maksimale për ngarkimet në këtë server.", |
||||
"Files are being scanned, please wait." => "Skedarët po analizohen, ju lutemi pritni.", |
||||
"Current scanning" => "Analizimi aktual", |
||||
"Upgrading filesystem cache..." => "Po përmirësoj memorjen e filesystem-it..." |
||||
); |
||||
@ -0,0 +1,44 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Could not move %s" => "%s يۆتكىيەلمەيدۇ", |
||||
"No file was uploaded. Unknown error" => "ھېچقانداق ھۆججەت يۈكلەنمىدى. يوچۇن خاتالىق", |
||||
"No file was uploaded" => "ھېچقانداق ھۆججەت يۈكلەنمىدى", |
||||
"Missing a temporary folder" => "ۋاقىتلىق قىسقۇچ كەم.", |
||||
"Failed to write to disk" => "دىسكىغا يازالمىدى", |
||||
"Not enough storage available" => "يېتەرلىك ساقلاش بوشلۇقى يوق", |
||||
"Files" => "ھۆججەتلەر", |
||||
"Share" => "ھەمبەھىر", |
||||
"Delete permanently" => "مەڭگۈلۈك ئۆچۈر", |
||||
"Delete" => "ئۆچۈر", |
||||
"Rename" => "ئات ئۆزگەرت", |
||||
"Pending" => "كۈتۈۋاتىدۇ", |
||||
"{new_name} already exists" => "{new_name} مەۋجۇت", |
||||
"replace" => "ئالماشتۇر", |
||||
"suggest name" => "تەۋسىيە ئات", |
||||
"cancel" => "ۋاز كەچ", |
||||
"undo" => "يېنىۋال", |
||||
"1 file uploading" => "1 ھۆججەت يۈكلىنىۋاتىدۇ", |
||||
"files uploading" => "ھۆججەت يۈكلىنىۋاتىدۇ", |
||||
"Not enough space available" => "يېتەرلىك بوشلۇق يوق", |
||||
"Upload cancelled." => "يۈكلەشتىن ۋاز كەچتى.", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "ھۆججەت يۈكلەش مەشغۇلاتى ئېلىپ بېرىلىۋاتىدۇ. Leaving the page now will cancel the upload.", |
||||
"Error" => "خاتالىق", |
||||
"Name" => "ئاتى", |
||||
"Size" => "چوڭلۇقى", |
||||
"Modified" => "ئۆزگەرتكەن", |
||||
"1 folder" => "1 قىسقۇچ", |
||||
"1 file" => "1 ھۆججەت", |
||||
"{count} files" => "{count} ھۆججەت", |
||||
"Unable to rename file" => "ھۆججەت ئاتىنى ئۆزگەرتكىلى بولمايدۇ", |
||||
"Upload" => "يۈكلە", |
||||
"Save" => "ساقلا", |
||||
"New" => "يېڭى", |
||||
"Text file" => "تېكىست ھۆججەت", |
||||
"Folder" => "قىسقۇچ", |
||||
"Deleted files" => "ئۆچۈرۈلگەن ھۆججەتلەر", |
||||
"Cancel upload" => "يۈكلەشتىن ۋاز كەچ", |
||||
"Nothing in here. Upload something!" => "بۇ جايدا ھېچنېمە يوق. Upload something!", |
||||
"Download" => "چۈشۈر", |
||||
"Unshare" => "ھەمبەھىرلىمە", |
||||
"Upload too large" => "يۈكلەندىغىنى بەك چوڭ", |
||||
"Upgrading filesystem cache..." => "ھۆججەت سىستېما غەملىكىنى يۈكسەلدۈرۈۋاتىدۇ…" |
||||
); |
||||
@ -0,0 +1,4 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Error" => "ایرر", |
||||
"Unshare" => "شئیرنگ ختم کریں" |
||||
); |
||||
@ -0,0 +1,12 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Files" => "文件", |
||||
"Share" => "分享", |
||||
"Delete" => "刪除", |
||||
"Error" => "錯誤", |
||||
"Name" => "名稱", |
||||
"{count} folders" => "{}文件夾", |
||||
"Upload" => "上傳", |
||||
"Save" => "儲存", |
||||
"Download" => "下載", |
||||
"Unshare" => "取消分享" |
||||
); |
||||
@ -0,0 +1,79 @@ |
||||
<?php |
||||
|
||||
/** |
||||
* ownCloud - Core |
||||
* |
||||
* @author Morris Jobke |
||||
* @copyright 2013 Morris Jobke morris.jobke@gmail.com |
||||
* |
||||
* This library is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
* License as published by the Free Software Foundation; either |
||||
* version 3 of the License, or any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public |
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
||||
* |
||||
*/ |
||||
|
||||
|
||||
namespace OCA\Files; |
||||
|
||||
class App { |
||||
private $l10n; |
||||
private $view; |
||||
|
||||
public function __construct($view, $l10n) { |
||||
$this->view = $view; |
||||
$this->l10n = $l10n; |
||||
} |
||||
|
||||
/** |
||||
* rename a file |
||||
* |
||||
* @param string $dir |
||||
* @param string $oldname |
||||
* @param string $newname |
||||
* @return array |
||||
*/ |
||||
public function rename($dir, $oldname, $newname) { |
||||
$result = array( |
||||
'success' => false, |
||||
'data' => NULL |
||||
); |
||||
|
||||
// rename to "/Shared" is denied |
||||
if( $dir === '/' and $newname === 'Shared' ) { |
||||
$result['data'] = array( |
||||
'message' => $this->l10n->t("Invalid folder name. Usage of 'Shared' is reserved by ownCloud") |
||||
); |
||||
} elseif( |
||||
// rename to "." is denied |
||||
$newname !== '.' and |
||||
// rename of "/Shared" is denied |
||||
!($dir === '/' and $oldname === 'Shared') and |
||||
// THEN try to rename |
||||
$this->view->rename($dir . '/' . $oldname, $dir . '/' . $newname) |
||||
) { |
||||
// successful rename |
||||
$result['success'] = true; |
||||
$result['data'] = array( |
||||
'dir' => $dir, |
||||
'file' => $oldname, |
||||
'newname' => $newname |
||||
); |
||||
} else { |
||||
// rename failed |
||||
$result['data'] = array( |
||||
'message' => $this->l10n->t('Unable to rename file') |
||||
); |
||||
} |
||||
return $result; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,24 @@ |
||||
<?php |
||||
/** |
||||
* Copyright (c) 2013 Tom Needham <tom@owncloud.com> |
||||
* This file is licensed under the Affero General Public License version 3 or |
||||
* later. |
||||
* See the COPYING-README file. |
||||
*/ |
||||
|
||||
namespace OCA\Files; |
||||
|
||||
class Capabilities { |
||||
|
||||
public static function getCapabilities() { |
||||
return new \OC_OCS_Result(array( |
||||
'capabilities' => array( |
||||
'files' => array( |
||||
'bigfilechunking' => true, |
||||
'undelete' => true, |
||||
), |
||||
), |
||||
)); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,117 @@ |
||||
<?php |
||||
|
||||
/** |
||||
* ownCloud - Core |
||||
* |
||||
* @author Morris Jobke |
||||
* @copyright 2013 Morris Jobke morris.jobke@gmail.com |
||||
* |
||||
* This library is free software; you can redistribute it and/or |
||||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
* License as published by the Free Software Foundation; either |
||||
* version 3 of the License, or any later version. |
||||
* |
||||
* This library is distributed in the hope that it will be useful, |
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. |
||||
* |
||||
* You should have received a copy of the GNU Affero General Public |
||||
* License along with this library. If not, see <http://www.gnu.org/licenses/>. |
||||
* |
||||
*/ |
||||
|
||||
class Test_OC_Files_App_Rename extends \PHPUnit_Framework_TestCase { |
||||
|
||||
function setUp() { |
||||
// mock OC_L10n |
||||
$l10nMock = $this->getMock('\OC_L10N', array('t'), array(), '', false); |
||||
$l10nMock->expects($this->any()) |
||||
->method('t') |
||||
->will($this->returnArgument(0)); |
||||
$viewMock = $this->getMock('\OC\Files\View', array('rename', 'normalizePath'), array(), '', false); |
||||
$viewMock->expects($this->any()) |
||||
->method('normalizePath') |
||||
->will($this->returnArgument(0)); |
||||
$viewMock->expects($this->any()) |
||||
->method('rename') |
||||
->will($this->returnValue(true)); |
||||
$this->files = new \OCA\Files\App($viewMock, $l10nMock); |
||||
} |
||||
|
||||
/** |
||||
* @brief test rename of file/folder named "Shared" |
||||
*/ |
||||
function testRenameSharedFolder() { |
||||
$dir = '/'; |
||||
$oldname = 'Shared'; |
||||
$newname = 'new_name'; |
||||
|
||||
$result = $this->files->rename($dir, $oldname, $newname); |
||||
$expected = array( |
||||
'success' => false, |
||||
'data' => array('message' => 'Unable to rename file') |
||||
); |
||||
|
||||
$this->assertEquals($expected, $result); |
||||
} |
||||
|
||||
/** |
||||
* @brief test rename of file/folder named "Shared" |
||||
*/ |
||||
function testRenameSharedFolderInSubdirectory() { |
||||
$dir = '/test'; |
||||
$oldname = 'Shared'; |
||||
$newname = 'new_name'; |
||||
|
||||
$result = $this->files->rename($dir, $oldname, $newname); |
||||
$expected = array( |
||||
'success' => true, |
||||
'data' => array( |
||||
'dir' => $dir, |
||||
'file' => $oldname, |
||||
'newname' => $newname |
||||
) |
||||
); |
||||
|
||||
$this->assertEquals($expected, $result); |
||||
} |
||||
|
||||
/** |
||||
* @brief test rename of file/folder to "Shared" |
||||
*/ |
||||
function testRenameFolderToShared() { |
||||
$dir = '/'; |
||||
$oldname = 'oldname'; |
||||
$newname = 'Shared'; |
||||
|
||||
$result = $this->files->rename($dir, $oldname, $newname); |
||||
$expected = array( |
||||
'success' => false, |
||||
'data' => array('message' => "Invalid folder name. Usage of 'Shared' is reserved by ownCloud") |
||||
); |
||||
|
||||
$this->assertEquals($expected, $result); |
||||
} |
||||
|
||||
/** |
||||
* @brief test rename of file/folder |
||||
*/ |
||||
function testRenameFolder() { |
||||
$dir = '/'; |
||||
$oldname = 'oldname'; |
||||
$newname = 'newname'; |
||||
|
||||
$result = $this->files->rename($dir, $oldname, $newname); |
||||
$expected = array( |
||||
'success' => true, |
||||
'data' => array( |
||||
'dir' => $dir, |
||||
'file' => $oldname, |
||||
'newname' => $newname |
||||
) |
||||
); |
||||
|
||||
$this->assertEquals($expected, $result); |
||||
} |
||||
} |
||||
@ -0,0 +1,9 @@ |
||||
<?php |
||||
/** |
||||
* Copyright (c) 2013, Tom Needham <tom@owncloud.com> |
||||
* This file is licensed under the Affero General Public License version 3 or later. |
||||
* See the COPYING-README file. |
||||
*/ |
||||
|
||||
// Register with the capabilities API |
||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Encryption\Capabilities', 'getCapabilities'), 'files_encryption', OC_API::USER_AUTH); |
||||
@ -1,4 +1,7 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "التشفير", |
||||
"File encryption is enabled." => "تشفير الملفات فعال.", |
||||
"The following file types will not be encrypted:" => "الملفات الاتية لن يتم تشفيرها:", |
||||
"Exclude the following file types from encryption:" => "إستثناء أنواع الملفات الاتية من التشفير: ", |
||||
"None" => "لا شيء" |
||||
); |
||||
|
||||
@ -1,7 +1,7 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Encriptatge", |
||||
"File encryption is enabled." => "L'encriptació de fitxers està activada.", |
||||
"The following file types will not be encrypted:" => "Els tipus de fitxers següents no s'encriptaran:", |
||||
"Exclude the following file types from encryption:" => "Exclou els tipus de fitxers següents de l'encriptatge:", |
||||
"Encryption" => "Xifrat", |
||||
"File encryption is enabled." => "El xifrat de fitxers està activat.", |
||||
"The following file types will not be encrypted:" => "Els tipus de fitxers següents no es xifraran:", |
||||
"Exclude the following file types from encryption:" => "Exclou els tipus de fitxers següents del xifratge:", |
||||
"None" => "Cap" |
||||
); |
||||
|
||||
@ -0,0 +1,7 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Amgryptiad", |
||||
"File encryption is enabled." => "Galluogwyd amgryptio ffeiliau.", |
||||
"The following file types will not be encrypted:" => "Ni fydd ffeiliau o'r math yma'n cael eu hamgryptio:", |
||||
"Exclude the following file types from encryption:" => "Eithrio'r mathau canlynol o ffeiliau rhag cael eu hamgryptio:", |
||||
"None" => "Dim" |
||||
); |
||||
@ -0,0 +1,7 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "ენკრიპცია", |
||||
"File encryption is enabled." => "ფაილის ენკრიპცია ჩართულია.", |
||||
"The following file types will not be encrypted:" => "შემდეგი ფაილური ტიპების ენკრიპცია არ მოხდება:", |
||||
"Exclude the following file types from encryption:" => "ამოიღე შემდეგი ფაილის ტიპები ენკრიპციიდან:", |
||||
"None" => "არა" |
||||
); |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue