summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 14:10:10 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2012-10-28 14:10:10 +0100
commitcf2a504d42d35a200cb611b11c8cfa394895fca9 (patch)
tree192816e2cc4c93f2655d8033b4481d9ad0207d3f /apps/files
parentfc280b28876bd1b57a8f4a5710da26adb8ebb3b9 (diff)
parent20e0432de8e635b742415cae58e1466daf7da9b5 (diff)
downloadnextcloud-server-cf2a504d42d35a200cb611b11c8cfa394895fca9.tar.gz
nextcloud-server-cf2a504d42d35a200cb611b11c8cfa394895fca9.zip
Merge branch 'master' into navigation
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/appinfo/routes.php12
-rw-r--r--apps/files/index.php4
-rw-r--r--apps/files/js/fileactions.js4
-rw-r--r--apps/files/js/filelist.js2
-rw-r--r--apps/files/l10n/es_AR.php14
-rw-r--r--apps/files/l10n/fr.php14
-rw-r--r--apps/files/l10n/vi.php14
7 files changed, 52 insertions, 12 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
new file mode 100644
index 00000000000..e1ab560803d
--- /dev/null
+++ b/apps/files/appinfo/routes.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+$this->create('download', 'download{file}')
+ ->requirements(array('file' => '.*'))
+ ->actionInclude('files/download.php');
+
diff --git a/apps/files/index.php b/apps/files/index.php
index 92fda5b21e5..3441e371a31 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -75,11 +75,11 @@ foreach( explode( '/', $dir ) as $i ) {
// make breadcrumb und filelist markup
$list = new OCP\Template( 'files', 'part.list', '' );
$list->assign( 'files', $files, false );
-$list->assign( 'baseURL', OCP\Util::linkTo('files', 'index.php').'&dir=', false);
+$list->assign( 'baseURL', OCP\Util::linkTo('files', 'index.php').'?dir=', false);
$list->assign( 'downloadURL', OCP\Util::linkTo('files', 'download.php').'?file=', false);
$breadcrumbNav = new OCP\Template( 'files', 'part.breadcrumb', '' );
$breadcrumbNav->assign( 'breadcrumb', $breadcrumb, false );
-$breadcrumbNav->assign( 'baseURL', OCP\Util::linkTo('files', 'index.php').'&dir=', false);
+$breadcrumbNav->assign( 'baseURL', OCP\Util::linkTo('files', 'index.php').'?dir=', false);
$upload_max_filesize = OCP\Util::computerFileSize(ini_get('upload_max_filesize'));
$post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size'));
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js
index e184cbfa915..1cf80352bef 100644
--- a/apps/files/js/fileactions.js
+++ b/apps/files/js/fileactions.js
@@ -157,7 +157,7 @@ $(document).ready(function(){
var downloadScope = 'file';
}
FileActions.register(downloadScope,'Download', OC.PERMISSION_READ, function(){return OC.imagePath('core','actions/download');},function(filename){
- window.location=OC.filePath('files', 'ajax', 'download.php') + '&files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val());
+ window.location=OC.filePath('files', 'ajax', 'download.php') + '?files='+encodeURIComponent(filename)+'&dir='+encodeURIComponent($('#dir').val());
});
});
@@ -185,7 +185,7 @@ FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.
});
FileActions.register('dir','Open', OC.PERMISSION_READ, '', function(filename){
- window.location=OC.linkTo('files', 'index.php') + '&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
+ window.location=OC.linkTo('files', 'index.php') + '?dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename);
});
FileActions.setDefault('dir','Open');
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6b49f622668..f08e412921e 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -46,7 +46,7 @@ var FileList={
html = $('<tr></tr>').attr({ "data-type": "dir", "data-size": size, "data-file": name, "data-permissions": $('#permissions').val()});
td = $('<td></td>').attr({"class": "filename", "style": 'background-image:url('+OC.imagePath('core', 'filetypes/folder.png')+')' });
td.append('<input type="checkbox" />');
- link_elem = $('<a></a>').attr({ "class": "name", "href": OC.linkTo('files', 'index.php')+"&dir="+ encodeURIComponent($('#dir').val()+'/'+name).replace(/%2F/g, '/') });
+ link_elem = $('<a></a>').attr({ "class": "name", "href": OC.linkTo('files', 'index.php')+"?dir="+ encodeURIComponent($('#dir').val()+'/'+name).replace(/%2F/g, '/') });
link_elem.append($('<span></span>').addClass('nametext').text(name));
link_elem.append($('<span></span>').attr({'class': 'uploadtext', 'currentUploads': 0}));
td.append(link_elem);
diff --git a/apps/files/l10n/es_AR.php b/apps/files/l10n/es_AR.php
index 99e10aa7990..f9a943cf9f2 100644
--- a/apps/files/l10n/es_AR.php
+++ b/apps/files/l10n/es_AR.php
@@ -5,11 +5,11 @@
"The uploaded file was only partially uploaded" => "El archivo que intentás subir solo se subió parcialmente",
"No file was uploaded" => "El archivo no fue subido",
"Missing a temporary folder" => "Falta un directorio temporal",
-"Failed to write to disk" => "La escritura en disco falló",
+"Failed to write to disk" => "Error al escribir en el disco",
"Files" => "Archivos",
"Unshare" => "Dejar de compartir",
"Delete" => "Borrar",
-"Rename" => "cambiar nombre",
+"Rename" => "Cambiar nombre",
"{new_name} already exists" => "{new_name} ya existe",
"replace" => "reemplazar",
"suggest name" => "sugerir nombre",
@@ -20,14 +20,14 @@
"unshared {files}" => "{files} se dejaron de compartir",
"deleted {files}" => "{files} borrados",
"generating ZIP-file, it may take some time." => "generando un archivo ZIP, puede llevar un tiempo.",
-"Unable to upload your file as it is a directory or has 0 bytes" => "No fue posible subir tu archivo porque es un directorio o su tamaño es 0 bytes",
+"Unable to upload your file as it is a directory or has 0 bytes" => "No fue posible subir el archivo porque es un directorio o porque su tamaño es 0 bytes",
"Upload Error" => "Error al subir el archivo",
"Pending" => "Pendiente",
"1 file uploading" => "Subiendo 1 archivo",
"{count} files uploading" => "Subiendo {count} archivos",
"Upload cancelled." => "La subida fue cancelada",
"File upload is in progress. Leaving the page now will cancel the upload." => "La subida del archivo está en proceso. Si salís de la página ahora, la subida se cancelará.",
-"Invalid name, '/' is not allowed." => "Nombre no válido, '/' no está permitido.",
+"Invalid name, '/' is not allowed." => "Nombre no válido, no se permite '/' en él.",
"{count} files scanned" => "{count} archivos escaneados",
"error while scanning" => "error mientras se escaneaba",
"Name" => "Nombre",
@@ -50,7 +50,7 @@
"File handling" => "Tratamiento de archivos",
"Maximum upload size" => "Tamaño máximo de subida",
"max. possible: " => "máx. posible:",
-"Needed for multi-file and folder downloads." => "Se necesita para descargas multi-archivo y de carpetas",
+"Needed for multi-file and folder downloads." => "Es necesario para descargas multi-archivo y de carpetas",
"Enable ZIP-download" => "Habilitar descarga en formato ZIP",
"0 is unlimited" => "0 significa ilimitado",
"Maximum input size for ZIP files" => "Tamaño máximo para archivos ZIP de entrada",
@@ -61,11 +61,11 @@
"From url" => "Desde la URL",
"Upload" => "Subir",
"Cancel upload" => "Cancelar subida",
-"Nothing in here. Upload something!" => "Aquí no hay nada. ¡Subí contenido!",
+"Nothing in here. Upload something!" => "No hay nada. ¡Subí contenido!",
"Share" => "Compartir",
"Download" => "Descargar",
"Upload too large" => "El archivo es demasiado grande",
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Los archivos que intentás subir sobrepasan el tamaño máximo ",
-"Files are being scanned, please wait." => "Se están escaneando los archivos, por favor espere.",
+"Files are being scanned, please wait." => "Se están escaneando los archivos, por favor esperá.",
"Current scanning" => "Escaneo actual"
);
diff --git a/apps/files/l10n/fr.php b/apps/files/l10n/fr.php
index 32348f94a83..4f0f01fb23d 100644
--- a/apps/files/l10n/fr.php
+++ b/apps/files/l10n/fr.php
@@ -10,25 +10,39 @@
"Unshare" => "Ne plus partager",
"Delete" => "Supprimer",
"Rename" => "Renommer",
+"{new_name} already exists" => "{new_name} existe déjà",
"replace" => "remplacer",
"suggest name" => "Suggérer un nom",
"cancel" => "annuler",
+"replaced {new_name}" => "{new_name} a été replacé",
"undo" => "annuler",
+"replaced {new_name} with {old_name}" => "{new_name} a été remplacé par {old_name}",
+"unshared {files}" => "Fichiers non partagés : {files}",
+"deleted {files}" => "Fichiers supprimés : {files}",
"generating ZIP-file, it may take some time." => "Fichier ZIP en cours d'assemblage ; cela peut prendre du temps.",
"Unable to upload your file as it is a directory or has 0 bytes" => "Impossible de charger vos fichiers car il s'agit d'un dossier ou le fichier fait 0 octet.",
"Upload Error" => "Erreur de chargement",
"Pending" => "En cours",
"1 file uploading" => "1 fichier en cours de téléchargement",
+"{count} files uploading" => "{count} fichiers téléversés",
"Upload cancelled." => "Chargement annulé.",
"File upload is in progress. Leaving the page now will cancel the upload." => "L'envoi du fichier est en cours. Quitter cette page maintenant annulera l'envoi du fichier.",
"Invalid name, '/' is not allowed." => "Nom invalide, '/' n'est pas autorisé.",
+"{count} files scanned" => "{count} fichiers indexés",
"error while scanning" => "erreur lors de l'indexation",
"Name" => "Nom",
"Size" => "Taille",
"Modified" => "Modifié",
+"1 folder" => "1 dossier",
+"{count} folders" => "{count} dossiers",
+"1 file" => "1 fichier",
+"{count} files" => "{count} fichiers",
"seconds ago" => "secondes passées",
+"1 minute ago" => "Il y a une minute",
+"{minutes} minutes ago" => "Il y a {minutes} minutes",
"today" => "aujourd'hui",
"yesterday" => "hier",
+"{days} days ago" => "Il y a {days} jours",
"last month" => "mois dernier",
"months ago" => "mois passés",
"last year" => "année dernière",
diff --git a/apps/files/l10n/vi.php b/apps/files/l10n/vi.php
index b8ddda15e2e..f933d6c7912 100644
--- a/apps/files/l10n/vi.php
+++ b/apps/files/l10n/vi.php
@@ -10,25 +10,39 @@
"Unshare" => "Không chia sẽ",
"Delete" => "Xóa",
"Rename" => "Sửa tên",
+"{new_name} already exists" => "{new_name} đã tồn tại",
"replace" => "thay thế",
"suggest name" => "tên gợi ý",
"cancel" => "hủy",
+"replaced {new_name}" => "đã thay thế {new_name}",
"undo" => "lùi lại",
+"replaced {new_name} with {old_name}" => "đã thay thế {new_name} bằng {old_name}",
+"unshared {files}" => "hủy chia sẽ {files}",
+"deleted {files}" => "đã xóa {files}",
"generating ZIP-file, it may take some time." => "Tạo tập tinh ZIP, điều này có thể mất một ít thời gian",
"Unable to upload your file as it is a directory or has 0 bytes" => "Không thể tải lên tập tin này do nó là một thư mục hoặc kích thước tập tin bằng 0 byte",
"Upload Error" => "Tải lên lỗi",
"Pending" => "Chờ",
"1 file uploading" => "1 tệp tin đang được tải lên",
+"{count} files uploading" => "{count} tập tin đang tải lên",
"Upload cancelled." => "Hủy tải lên",
"File upload is in progress. Leaving the page now will cancel the upload." => "Tập tin tải lên đang được xử lý. Nếu bạn rời khỏi trang bây giờ sẽ hủy quá trình này.",
"Invalid name, '/' is not allowed." => "Tên không hợp lệ ,không được phép dùng '/'",
+"{count} files scanned" => "{count} tập tin đã được quét",
"error while scanning" => "lỗi trong khi quét",
"Name" => "Tên",
"Size" => "Kích cỡ",
"Modified" => "Thay đổi",
+"1 folder" => "1 thư mục",
+"{count} folders" => "{count} thư mục",
+"1 file" => "1 tập tin",
+"{count} files" => "{count} tập tin",
"seconds ago" => "giây trước",
+"1 minute ago" => "1 phút trước",
+"{minutes} minutes ago" => "{minutes} phút trước",
"today" => "hôm nay",
"yesterday" => "hôm qua",
+"{days} days ago" => "{days} ngày trước",
"last month" => "tháng trước",
"months ago" => "tháng trước",
"last year" => "năm trước",