commit
5fe6129698
@ -1,3 +0,0 @@ |
||||
[submodule "3rdparty/Symfony/Component/Routing"] |
||||
path = 3rdparty/Symfony/Component/Routing |
||||
url = git://github.com/symfony/Routing.git |
||||
@ -1,5 +1,2 @@ |
||||
<?php |
||||
// FIXME: this should start a secure session if forcessl is enabled |
||||
// see lib/base.php for an example |
||||
//session_start(); |
||||
$_SESSION['timezone'] = $_GET['time']; |
||||
$_SESSION['timezone'] = $_GET['time']; |
||||
|
||||
@ -0,0 +1,11 @@ |
||||
<?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'); |
||||
@ -1,191 +1,192 @@ |
||||
var FileActions={ |
||||
actions:{}, |
||||
defaults:{}, |
||||
icons:{}, |
||||
currentFile:null, |
||||
register:function(mime,name,permissions,icon,action){ |
||||
if(!FileActions.actions[mime]){ |
||||
FileActions.actions[mime]={}; |
||||
var FileActions = { |
||||
actions: {}, |
||||
defaults: {}, |
||||
icons: {}, |
||||
currentFile: null, |
||||
register: function (mime, name, permissions, icon, action) { |
||||
if (!FileActions.actions[mime]) { |
||||
FileActions.actions[mime] = {}; |
||||
} |
||||
if (!FileActions.actions[mime][name]) { |
||||
FileActions.actions[mime][name] = {}; |
||||
} |
||||
FileActions.actions[mime][name]['action'] = action; |
||||
FileActions.actions[mime][name]['permissions'] = permissions; |
||||
FileActions.icons[name]=icon; |
||||
FileActions.icons[name] = icon; |
||||
}, |
||||
setDefault:function(mime,name){ |
||||
FileActions.defaults[mime]=name; |
||||
setDefault: function (mime, name) { |
||||
FileActions.defaults[mime] = name; |
||||
}, |
||||
get:function(mime,type,permissions){ |
||||
var actions={}; |
||||
if(FileActions.actions.all){ |
||||
actions=$.extend( actions, FileActions.actions.all ); |
||||
get: function (mime, type, permissions) { |
||||
var actions = {}; |
||||
if (FileActions.actions.all) { |
||||
actions = $.extend(actions, FileActions.actions.all); |
||||
} |
||||
if(mime){ |
||||
if(FileActions.actions[mime]){ |
||||
actions=$.extend( actions, FileActions.actions[mime] ); |
||||
if (mime) { |
||||
if (FileActions.actions[mime]) { |
||||
actions = $.extend(actions, FileActions.actions[mime]); |
||||
} |
||||
var mimePart=mime.substr(0,mime.indexOf('/')); |
||||
if(FileActions.actions[mimePart]){ |
||||
actions=$.extend( actions, FileActions.actions[mimePart] ); |
||||
var mimePart = mime.substr(0, mime.indexOf('/')); |
||||
if (FileActions.actions[mimePart]) { |
||||
actions = $.extend(actions, FileActions.actions[mimePart]); |
||||
} |
||||
} |
||||
if(type){//type is 'dir' or 'file'
|
||||
if(FileActions.actions[type]){ |
||||
actions=$.extend( actions, FileActions.actions[type] ); |
||||
if (type) {//type is 'dir' or 'file'
|
||||
if (FileActions.actions[type]) { |
||||
actions = $.extend(actions, FileActions.actions[type]); |
||||
} |
||||
} |
||||
var filteredActions = {}; |
||||
$.each(actions, function(name, action) { |
||||
$.each(actions, function (name, action) { |
||||
if (action.permissions & permissions) { |
||||
filteredActions[name] = action.action; |
||||
} |
||||
}); |
||||
return filteredActions; |
||||
}, |
||||
getDefault:function(mime,type,permissions){ |
||||
if(mime){ |
||||
var mimePart=mime.substr(0,mime.indexOf('/')); |
||||
getDefault: function (mime, type, permissions) { |
||||
if (mime) { |
||||
var mimePart = mime.substr(0, mime.indexOf('/')); |
||||
} |
||||
var name=false; |
||||
if(mime && FileActions.defaults[mime]){ |
||||
name=FileActions.defaults[mime]; |
||||
}else if(mime && FileActions.defaults[mimePart]){ |
||||
name=FileActions.defaults[mimePart]; |
||||
}else if(type && FileActions.defaults[type]){ |
||||
name=FileActions.defaults[type]; |
||||
}else{ |
||||
name=FileActions.defaults.all; |
||||
var name = false; |
||||
if (mime && FileActions.defaults[mime]) { |
||||
name = FileActions.defaults[mime]; |
||||
} else if (mime && FileActions.defaults[mimePart]) { |
||||
name = FileActions.defaults[mimePart]; |
||||
} else if (type && FileActions.defaults[type]) { |
||||
name = FileActions.defaults[type]; |
||||
} else { |
||||
name = FileActions.defaults.all; |
||||
} |
||||
var actions=this.get(mime,type,permissions); |
||||
var actions = this.get(mime, type, permissions); |
||||
return actions[name]; |
||||
}, |
||||
display:function(parent){ |
||||
FileActions.currentFile=parent; |
||||
$('#fileList span.fileactions, #fileList td.date a.action').remove(); |
||||
var actions=FileActions.get(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions()); |
||||
var file=FileActions.getCurrentFile(); |
||||
if($('tr').filterAttr('data-file',file).data('renaming')){ |
||||
display: function (parent) { |
||||
FileActions.currentFile = parent; |
||||
var actions = FileActions.get(FileActions.getCurrentMimeType(), FileActions.getCurrentType(), FileActions.getCurrentPermissions()); |
||||
var file = FileActions.getCurrentFile(); |
||||
if ($('tr').filterAttr('data-file', file).data('renaming')) { |
||||
return; |
||||
} |
||||
parent.children('a.name').append('<span class="fileactions" />'); |
||||
var defaultAction=FileActions.getDefault(FileActions.getCurrentMimeType(),FileActions.getCurrentType(), FileActions.getCurrentPermissions()); |
||||
for(name in actions){ |
||||
var defaultAction = FileActions.getDefault(FileActions.getCurrentMimeType(), FileActions.getCurrentType(), FileActions.getCurrentPermissions()); |
||||
|
||||
var actionHandler = function (event) { |
||||
event.stopPropagation(); |
||||
event.preventDefault(); |
||||
|
||||
FileActions.currentFile = event.data.elem; |
||||
var file = FileActions.getCurrentFile(); |
||||
|
||||
event.data.actionFunc(file); |
||||
}; |
||||
|
||||
$.each(actions, function (name, action) { |
||||
// NOTE: Temporary fix to prevent rename action in root of Shared directory
|
||||
if (name == 'Rename' && $('#dir').val() == '/Shared') { |
||||
continue; |
||||
if (name === 'Rename' && $('#dir').val() === '/Shared') { |
||||
return true; |
||||
} |
||||
if((name=='Download' || actions[name]!=defaultAction) && name!='Delete'){ |
||||
var img=FileActions.icons[name]; |
||||
if(img.call){ |
||||
img=img(file); |
||||
|
||||
if ((name === 'Download' || action !== defaultAction) && name !== 'Delete') { |
||||
var img = FileActions.icons[name]; |
||||
if (img.call) { |
||||
img = img(file); |
||||
} |
||||
var html = '<a href="#" class="action" data-action="'+name+'">'; |
||||
if (img) { |
||||
html += '<img class ="svg" src="' + img + '" /> '; |
||||
} |
||||
var html='<a href="#" class="action" style="display:none">'; |
||||
if(img) { html+='<img src="'+img+'"/> '; } |
||||
html += t('files', name) +'</a>'; |
||||
var element=$(html); |
||||
element.data('action',name); |
||||
element.click(function(event){ |
||||
event.stopPropagation(); |
||||
event.preventDefault(); |
||||
var action=actions[$(this).data('action')]; |
||||
var currentFile=FileActions.getCurrentFile(); |
||||
FileActions.hide(); |
||||
action(currentFile); |
||||
}); |
||||
element.hide(); |
||||
html += t('files', name) + '</a>'; |
||||
|
||||
var element = $(html); |
||||
element.data('action', name); |
||||
//alert(element);
|
||||
element.on('click',{a:null, elem:parent, actionFunc:actions[name]},actionHandler); |
||||
parent.find('a.name>span.fileactions').append(element); |
||||
} |
||||
} |
||||
if(actions['Delete']){ |
||||
var img=FileActions.icons['Delete']; |
||||
if(img.call){ |
||||
img=img(file); |
||||
|
||||
}); |
||||
|
||||
if (actions['Delete']) { |
||||
var img = FileActions.icons['Delete']; |
||||
if (img.call) { |
||||
img = img(file); |
||||
} |
||||
// NOTE: Temporary fix to allow unsharing of files in root of Shared folder
|
||||
if ($('#dir').val() == '/Shared') { |
||||
var html = '<a href="#" original-title="' + t('files', 'Unshare') + '" class="action delete" style="display:none" />'; |
||||
var html = '<a href="#" original-title="' + t('files', 'Unshare') + '" class="action delete" />'; |
||||
} else { |
||||
var html='<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" style="display:none" />'; |
||||
var html = '<a href="#" original-title="' + t('files', 'Delete') + '" class="action delete" />'; |
||||
} |
||||
var element=$(html); |
||||
if(img){ |
||||
element.append($('<img src="'+img+'"/>')); |
||||
var element = $(html); |
||||
if (img) { |
||||
element.append($('<img class ="svg" src="' + img + '"/>')); |
||||
} |
||||
element.data('action','Delete'); |
||||
element.click(function(event){ |
||||
event.stopPropagation(); |
||||
event.preventDefault(); |
||||
var action=actions[$(this).data('action')]; |
||||
var currentFile=FileActions.getCurrentFile(); |
||||
FileActions.hide(); |
||||
action(currentFile); |
||||
}); |
||||
element.hide(); |
||||
element.data('action', actions['Delete']); |
||||
element.on('click',{a:null, elem:parent, actionFunc:actions['Delete']},actionHandler); |
||||
parent.parent().children().last().append(element); |
||||
} |
||||
$('#fileList .action').css('-o-transition-property','none');//temporarly disable
|
||||
$('#fileList .action').fadeIn(200,function(){ |
||||
$('#fileList .action').css('-o-transition-property','opacity'); |
||||
}); |
||||
return false; |
||||
}, |
||||
hide:function(){ |
||||
$('#fileList span.fileactions, #fileList td.date a.action').fadeOut(200,function(){ |
||||
$(this).remove(); |
||||
}); |
||||
}, |
||||
getCurrentFile:function(){ |
||||
getCurrentFile: function () { |
||||
return FileActions.currentFile.parent().attr('data-file'); |
||||
}, |
||||
getCurrentMimeType:function(){ |
||||
getCurrentMimeType: function () { |
||||
return FileActions.currentFile.parent().attr('data-mime'); |
||||
}, |
||||
getCurrentType:function(){ |
||||
getCurrentType: function () { |
||||
return FileActions.currentFile.parent().attr('data-type'); |
||||
}, |
||||
getCurrentPermissions:function() { |
||||
getCurrentPermissions: function () { |
||||
return FileActions.currentFile.parent().data('permissions'); |
||||
} |
||||
}; |
||||
|
||||
$(document).ready(function(){ |
||||
if($('#allowZipDownload').val() == 1){ |
||||
$(document).ready(function () { |
||||
if ($('#allowZipDownload').val() == 1) { |
||||
var downloadScope = 'all'; |
||||
} else { |
||||
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()); |
||||
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()); |
||||
}); |
||||
|
||||
$('#fileList tr').each(function(){ |
||||
FileActions.display($(this).children('td.filename')); |
||||
}); |
||||
}); |
||||
|
||||
FileActions.register('all','Delete', OC.PERMISSION_DELETE, function(){return OC.imagePath('core','actions/delete');},function(filename){ |
||||
if(Files.cancelUpload(filename)) { |
||||
if(filename.substr){ |
||||
filename=[filename]; |
||||
FileActions.register('all', 'Delete', OC.PERMISSION_DELETE, function () { |
||||
return OC.imagePath('core', 'actions/delete'); |
||||
}, function (filename) { |
||||
if (Files.cancelUpload(filename)) { |
||||
if (filename.substr) { |
||||
filename = [filename]; |
||||
} |
||||
$.each(filename,function(index,file){ |
||||
var filename = $('tr').filterAttr('data-file',file); |
||||
$.each(filename, function (index, file) { |
||||
var filename = $('tr').filterAttr('data-file', file); |
||||
filename.hide(); |
||||
filename.find('input[type="checkbox"]').removeAttr('checked'); |
||||
filename.removeClass('selected'); |
||||
}); |
||||
procesSelection(); |
||||
}else{ |
||||
} else { |
||||
FileList.do_delete(filename); |
||||
} |
||||
$('.tipsy').remove(); |
||||
}); |
||||
|
||||
// t('files', 'Rename')
|
||||
FileActions.register('all','Rename', OC.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/rename');},function(filename){ |
||||
FileActions.register('all', 'Rename', OC.PERMISSION_UPDATE, function () { |
||||
return OC.imagePath('core', 'actions/rename'); |
||||
}, function (filename) { |
||||
FileList.rename(filename); |
||||
}); |
||||
|
||||
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); |
||||
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); |
||||
}); |
||||
|
||||
FileActions.setDefault('dir','Open'); |
||||
FileActions.setDefault('dir', 'Open'); |
||||
|
||||
@ -0,0 +1,165 @@ |
||||
/** |
||||
* Copyright (c) 2012 Erik Sargent <esthepiking at gmail dot com> |
||||
* This file is licensed under the Affero General Public License version 3 or |
||||
* later. |
||||
*/ |
||||
/***************************** |
||||
* Keyboard shortcuts for Files app |
||||
* ctrl/cmd+n: new folder |
||||
* ctrl/cmd+shift+n: new file |
||||
* esc (while new file context menu is open): close menu |
||||
* up/down: select file/folder |
||||
* enter: open file/folder |
||||
* delete/backspace: delete file/folder |
||||
*****************************/ |
||||
var Files = Files || {}; |
||||
(function(Files) { |
||||
var keys = []; |
||||
var keyCodes = { |
||||
shift: 16, |
||||
n: 78, |
||||
cmdFirefox: 224, |
||||
cmdOpera: 17, |
||||
leftCmdWebKit: 91, |
||||
rightCmdWebKit: 93, |
||||
ctrl: 17, |
||||
esc: 27, |
||||
downArrow: 40, |
||||
upArrow: 38, |
||||
enter: 13, |
||||
del: 46 |
||||
}; |
||||
|
||||
function removeA(arr) { |
||||
var what, a = arguments, |
||||
L = a.length, |
||||
ax; |
||||
while (L > 1 && arr.length) { |
||||
what = a[--L]; |
||||
while ((ax = arr.indexOf(what)) !== -1) { |
||||
arr.splice(ax, 1); |
||||
} |
||||
} |
||||
return arr; |
||||
} |
||||
|
||||
function newFile() { |
||||
$("#new").addClass("active"); |
||||
$(".popup.popupTop").toggle(true); |
||||
$('#new li[data-type="file"]').trigger('click'); |
||||
removeA(keys, keyCodes.n); |
||||
} |
||||
|
||||
function newFolder() { |
||||
$("#new").addClass("active"); |
||||
$(".popup.popupTop").toggle(true); |
||||
$('#new li[data-type="folder"]').trigger('click'); |
||||
removeA(keys, keyCodes.n); |
||||
} |
||||
|
||||
function esc() { |
||||
$("#controls").trigger('click'); |
||||
} |
||||
|
||||
function down() { |
||||
var select = -1; |
||||
$("#fileList tr").each(function(index) { |
||||
if ($(this).hasClass("mouseOver")) { |
||||
select = index + 1; |
||||
$(this).removeClass("mouseOver"); |
||||
} |
||||
}); |
||||
if (select === -1) { |
||||
$("#fileList tr:first").addClass("mouseOver"); |
||||
} else { |
||||
$("#fileList tr").each(function(index) { |
||||
if (index === select) { |
||||
$(this).addClass("mouseOver"); |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
|
||||
function up() { |
||||
var select = -1; |
||||
$("#fileList tr").each(function(index) { |
||||
if ($(this).hasClass("mouseOver")) { |
||||
select = index - 1; |
||||
$(this).removeClass("mouseOver"); |
||||
} |
||||
}); |
||||
if (select === -1) { |
||||
$("#fileList tr:last").addClass("mouseOver"); |
||||
} else { |
||||
$("#fileList tr").each(function(index) { |
||||
if (index === select) { |
||||
$(this).addClass("mouseOver"); |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
|
||||
function enter() { |
||||
$("#fileList tr").each(function(index) { |
||||
if ($(this).hasClass("mouseOver")) { |
||||
$(this).removeClass("mouseOver"); |
||||
$(this).find("span.nametext").trigger('click'); |
||||
} |
||||
}); |
||||
} |
||||
|
||||
function del() { |
||||
$("#fileList tr").each(function(index) { |
||||
if ($(this).hasClass("mouseOver")) { |
||||
$(this).removeClass("mouseOver"); |
||||
$(this).find("a.action.delete").trigger('click'); |
||||
} |
||||
}); |
||||
} |
||||
|
||||
function rename() { |
||||
$("#fileList tr").each(function(index) { |
||||
if ($(this).hasClass("mouseOver")) { |
||||
$(this).removeClass("mouseOver"); |
||||
$(this).find("a[data-action='Rename']").trigger('click'); |
||||
} |
||||
}); |
||||
} |
||||
Files.bindKeyboardShortcuts = function(document, $) { |
||||
$(document).keydown(function(event) { //check for modifier keys
|
||||
var preventDefault = false; |
||||
if ($.inArray(event.keyCode, keys) === -1) keys.push(event.keyCode); |
||||
if ( |
||||
$.inArray(keyCodes.n, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1 || event.ctrlKey)) { |
||||
preventDefault = true; //new file/folder prevent browser from responding
|
||||
} |
||||
if (preventDefault) { |
||||
event.preventDefault(); //Prevent web browser from responding
|
||||
event.stopPropagation(); |
||||
return false; |
||||
} |
||||
}); |
||||
$(document).keyup(function(event) { |
||||
// do your event.keyCode checks in here
|
||||
if ( |
||||
$.inArray(keyCodes.n, keys) !== -1 && ($.inArray(keyCodes.cmdFirefox, keys) !== -1 || $.inArray(keyCodes.cmdOpera, keys) !== -1 || $.inArray(keyCodes.leftCmdWebKit, keys) !== -1 || $.inArray(keyCodes.rightCmdWebKit, keys) !== -1 || $.inArray(keyCodes.ctrl, keys) !== -1 || event.ctrlKey)) { |
||||
if ($.inArray(keyCodes.shift, keys) !== -1) { //16=shift, New File
|
||||
newFile(); |
||||
} else { //New Folder
|
||||
newFolder(); |
||||
} |
||||
} else if ($("#new").hasClass("active") && $.inArray(keyCodes.esc, keys) !== -1) { //close new window
|
||||
esc(); |
||||
} else if ($.inArray(keyCodes.downArrow, keys) !== -1) { //select file
|
||||
down(); |
||||
} else if ($.inArray(keyCodes.upArrow, keys) !== -1) { //select file
|
||||
up(); |
||||
} else if (!$("#new").hasClass("active") && $.inArray(keyCodes.enter, keys) !== -1) { //open file
|
||||
enter(); |
||||
} else if (!$("#new").hasClass("active") && $.inArray(keyCodes.del, keys) !== -1) { //delete file
|
||||
del(); |
||||
} |
||||
removeA(keys, event.keyCode); |
||||
}); |
||||
}; |
||||
})(Files); |
||||
@ -1,43 +1,62 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"There is no error, the file uploaded with success" => "업로드에 성공하였습니다.", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini" => "업로드한 파일이 php.ini에서 지정한 upload_max_filesize보다 더 큼", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "업로드한 파일이 php.ini의 upload_max_filesize보다 큽니다:", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "업로드한 파일이 HTML 문서에 지정한 MAX_FILE_SIZE보다 더 큼", |
||||
"The uploaded file was only partially uploaded" => "파일이 부분적으로 업로드됨", |
||||
"No file was uploaded" => "업로드된 파일 없음", |
||||
"Missing a temporary folder" => "임시 폴더가 사라짐", |
||||
"Failed to write to disk" => "디스크에 쓰지 못했습니다", |
||||
"Files" => "파일", |
||||
"Unshare" => "공유 해제", |
||||
"Delete" => "삭제", |
||||
"replace" => "대체", |
||||
"Rename" => "이름 바꾸기", |
||||
"{new_name} already exists" => "{new_name}이(가) 이미 존재함", |
||||
"replace" => "바꾸기", |
||||
"suggest name" => "이름 제안", |
||||
"cancel" => "취소", |
||||
"undo" => "복구", |
||||
"generating ZIP-file, it may take some time." => "ZIP파일 생성에 시간이 걸릴 수 있습니다.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "이 파일은 디렉토리이거나 0 바이트이기 때문에 업로드 할 수 없습니다.", |
||||
"Upload Error" => "업로드 에러", |
||||
"replaced {new_name}" => "{new_name}을(를) 대체함", |
||||
"undo" => "실행 취소", |
||||
"replaced {new_name} with {old_name}" => "{old_name}이(가) {new_name}(으)로 대체됨", |
||||
"unshared {files}" => "{files} 공유 해제됨", |
||||
"deleted {files}" => "{files} 삭제됨", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "폴더 이름이 올바르지 않습니다. 이름에 문자 '\\', '/', '<', '>', ':', '\"', '|', '? ', '*'는 사용할 수 없습니다.", |
||||
"generating ZIP-file, it may take some time." => "ZIP 파일을 생성하고 있습니다. 시간이 걸릴 수도 있습니다.", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "이 파일은 디렉터리이거나 비어 있기 때문에 업로드할 수 없습니다", |
||||
"Upload Error" => "업로드 오류", |
||||
"Close" => "닫기", |
||||
"Pending" => "보류 중", |
||||
"Upload cancelled." => "업로드 취소.", |
||||
"Invalid name, '/' is not allowed." => "잘못된 이름, '/' 은 허용이 되지 않습니다.", |
||||
"1 file uploading" => "파일 1개 업로드 중", |
||||
"{count} files uploading" => "파일 {count}개 업로드 중", |
||||
"Upload cancelled." => "업로드가 취소되었습니다.", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "파일 업로드가 진행 중입니다. 이 페이지를 벗어나면 업로드가 취소됩니다.", |
||||
"Invalid folder name. Usage of \"Shared\" is reserved by Owncloud" => "폴더 이름이 올바르지 않습니다. \"Shared\" 폴더는 ownCloud에서 예약되었습니다.", |
||||
"{count} files scanned" => "파일 {count}개 검색됨", |
||||
"error while scanning" => "검색 중 오류 발생", |
||||
"Name" => "이름", |
||||
"Size" => "크기", |
||||
"Modified" => "수정됨", |
||||
"1 folder" => "폴더 1개", |
||||
"{count} folders" => "폴더 {count}개", |
||||
"1 file" => "파일 1개", |
||||
"{count} files" => "파일 {count}개", |
||||
"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 파일에 대한 최대 입력 크기", |
||||
"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 url" => "URL 에서", |
||||
"From link" => "링크에서", |
||||
"Upload" => "업로드", |
||||
"Cancel upload" => "업로드 취소", |
||||
"Nothing in here. Upload something!" => "내용이 없습니다. 업로드할 수 있습니다!", |
||||
"Share" => "공유", |
||||
"Download" => "다운로드", |
||||
"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" => "커런트 스캐닝" |
||||
"Files are being scanned, please wait." => "파일을 검색하고 있습니다. 기다려 주십시오.", |
||||
"Current scanning" => "현재 검색" |
||||
); |
||||
|
||||
@ -0,0 +1,3 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Save" => "Zapisz" |
||||
); |
||||
@ -1,22 +1,62 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"There is no error, the file uploaded with success" => "Нема грешке, фајл је успешно послат", |
||||
"The uploaded file exceeds the upload_max_filesize directive in php.ini" => "Послати фајл превазилази директиву upload_max_filesize из ", |
||||
"The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form" => "Послати фајл превазилази директиву MAX_FILE_SIZE која је наведена у ХТМЛ форми", |
||||
"The uploaded file was only partially uploaded" => "Послати фајл је само делимично отпремљен!", |
||||
"No file was uploaded" => "Ниједан фајл није послат", |
||||
"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" => "Недостаје привремена фасцикла", |
||||
"Files" => "Фајлови", |
||||
"Failed to write to disk" => "Не могу да пишем на диск", |
||||
"Files" => "Датотеке", |
||||
"Unshare" => "Укини дељење", |
||||
"Delete" => "Обриши", |
||||
"Name" => "Име", |
||||
"Rename" => "Преименуј", |
||||
"{new_name} already exists" => "{new_name} већ постоји", |
||||
"replace" => "замени", |
||||
"suggest name" => "предложи назив", |
||||
"cancel" => "откажи", |
||||
"replaced {new_name}" => "замењено {new_name}", |
||||
"undo" => "опозови", |
||||
"replaced {new_name} with {old_name}" => "замењено {new_name} са {old_name}", |
||||
"unshared {files}" => "укинуто дељење {files}", |
||||
"deleted {files}" => "обрисано {files}", |
||||
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Неисправан назив. Следећи знакови нису дозвољени: \\, /, <, >, :, \", |, ? и *.", |
||||
"generating ZIP-file, it may take some time." => "правим ZIP датотеку…", |
||||
"Unable to upload your file as it is a directory or has 0 bytes" => "Не могу да отпремим датотеку као фасциклу или она има 0 бајтова", |
||||
"Upload Error" => "Грешка при отпремању", |
||||
"Close" => "Затвори", |
||||
"Pending" => "На чекању", |
||||
"1 file uploading" => "Отпремам 1 датотеку", |
||||
"{count} files uploading" => "Отпремам {count} датотеке/а", |
||||
"Upload cancelled." => "Отпремање је прекинуто.", |
||||
"File upload is in progress. Leaving the page now will cancel the upload." => "Отпремање датотеке је у току. Ако сада напустите страницу, прекинућете отпремање.", |
||||
"Invalid folder name. Usage of \"Shared\" is reserved by Owncloud" => "Неисправан назив фасцикле. „Дељено“ користи Оунклауд.", |
||||
"{count} files scanned" => "Скенирано датотека: {count}", |
||||
"error while scanning" => "грешка при скенирању", |
||||
"Name" => "Назив", |
||||
"Size" => "Величина", |
||||
"Modified" => "Задња измена", |
||||
"Maximum upload size" => "Максимална величина пошиљке", |
||||
"New" => "Нови", |
||||
"Text file" => "текстуални фајл", |
||||
"Modified" => "Измењено", |
||||
"1 folder" => "1 фасцикла", |
||||
"{count} folders" => "{count} фасцикле/и", |
||||
"1 file" => "1 датотека", |
||||
"{count} files" => "{count} датотеке/а", |
||||
"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" => "фасцикла", |
||||
"Upload" => "Пошаљи", |
||||
"Nothing in here. Upload something!" => "Овде нема ничег. Пошаљите нешто!", |
||||
"From link" => "Са везе", |
||||
"Upload" => "Отпреми", |
||||
"Cancel upload" => "Прекини отпремање", |
||||
"Nothing in here. Upload something!" => "Овде нема ничег. Отпремите нешто!", |
||||
"Download" => "Преузми", |
||||
"Upload too large" => "Пошиљка је превелика", |
||||
"The files you are trying to upload exceed the maximum size for file uploads on this server." => "Фајлови које желите да пошаљете превазилазе ограничење максималне величине пошиљке на овом серверу." |
||||
"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" => "Тренутно скенирање" |
||||
); |
||||
|
||||
@ -1,16 +1,25 @@ |
||||
<?php OCP\Util::addscript('files','admin'); ?> |
||||
<?php OCP\Util::addscript('files', 'admin'); ?> |
||||
|
||||
<form name="filesForm" action='#' method='post'> |
||||
<fieldset class="personalblock"> |
||||
<legend><strong><?php echo $l->t('File handling');?></strong></legend>
|
||||
<?php if($_['uploadChangable']):?> |
||||
<label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label><input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/>(<?php echo $l->t('max. possible: '); echo $_['maxPossibleUploadSize'] ?>)<br/>
|
||||
<label for="maxUploadSize"><?php echo $l->t( 'Maximum upload size' ); ?> </label>
|
||||
<input name='maxUploadSize' id="maxUploadSize" value='<?php echo $_['uploadMaxFilesize'] ?>'/>
|
||||
(<?php echo $l->t('max. possible: '); echo $_['maxPossibleUploadSize'] ?>)<br/>
|
||||
<?php endif;?> |
||||
<input type="checkbox" name="allowZipDownload" id="allowZipDownload" value="1" title="<?php echo $l->t( 'Needed for multi-file and folder downloads.' ); ?>"<?php if ($_['allowZipDownload']) echo ' checked="checked"'; ?> /> <label for="allowZipDownload"><?php echo $l->t( 'Enable ZIP-download' ); ?></label> <br/>
|
||||
<input type="checkbox" name="allowZipDownload" id="allowZipDownload" value="1" |
||||
title="<?php echo $l->t( 'Needed for multi-file and folder downloads.' ); ?>"
|
||||
<?php if ($_['allowZipDownload']): ?> checked="checked"<?php endif; ?> />
|
||||
<label for="allowZipDownload"><?php echo $l->t( 'Enable ZIP-download' ); ?></label><br/>
|
||||
|
||||
<input name="maxZipInputSize" id="maxZipInputSize" style="width:180px;" value='<?php echo $_['maxZipInputSize'] ?>' title="<?php echo $l->t( '0 is unlimited' ); ?>"<?php if (!$_['allowZipDownload']) echo ' disabled="disabled"'; ?> />
|
||||
<label for="maxZipInputSize"><?php echo $l->t( 'Maximum input size for ZIP files' ); ?> </label><br />
|
||||
<input name="maxZipInputSize" id="maxZipInputSize" style="width:180px;" value='<?php echo $_['maxZipInputSize'] ?>'
|
||||
title="<?php echo $l->t( '0 is unlimited' ); ?>"
|
||||
<?php if (!$_['allowZipDownload']): ?> disabled="disabled"<?php endif; ?> />
|
||||
<label for="maxZipInputSize"><?php echo $l->t( 'Maximum input size for ZIP files' ); ?> </label><br />
|
||||
|
||||
<input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings" value="<?php echo $l->t( 'Save' ); ?>"/>
|
||||
<input type="hidden" value="<?php echo $_['requesttoken']; ?>" name="requesttoken" />
|
||||
<input type="submit" name="submitFilesAdminSettings" id="submitFilesAdminSettings" |
||||
value="<?php echo $l->t( 'Save' ); ?>"/>
|
||||
</fieldset> |
||||
</form> |
||||
</form> |
||||
@ -1,6 +1,9 @@ |
||||
<?php for($i=0; $i<count($_["breadcrumb"]); $i++): |
||||
$crumb = $_["breadcrumb"][$i]; ?> |
||||
<div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo urlencode($crumb["dir"]);?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'>
|
||||
<a href="<?php echo $_['baseURL'].urlencode($crumb["dir"]); ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
|
||||
$crumb = $_["breadcrumb"][$i]; |
||||
$dir = str_replace('+', '%20', urlencode($crumb["dir"])); ?> |
||||
<div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg"
|
||||
data-dir='<?php echo $dir;?>'
|
||||
style='background-image:url("<?php echo OCP\image_path('core', 'breadcrumb.png');?>")'>
|
||||
<a href="<?php echo $_['baseURL'].$dir; ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
|
||||
</div> |
||||
<?php endfor;?> |
||||
<?php endfor; |
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "التشفير", |
||||
"Exclude the following file types from encryption" => "استبعد أنواع الملفات التالية من التشفير", |
||||
"None" => "لا شيء", |
||||
"Enable Encryption" => "تفعيل التشفير" |
||||
); |
||||
@ -1,6 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Encriptado", |
||||
"Exclude the following file types from encryption" => "Excluír os seguintes tipos de ficheiro da encriptación", |
||||
"Encryption" => "Cifrado", |
||||
"Exclude the following file types from encryption" => "Excluír os seguintes tipos de ficheiro do cifrado", |
||||
"None" => "Nada", |
||||
"Enable Encryption" => "Habilitar encriptación" |
||||
"Enable Encryption" => "Activar o cifrado" |
||||
); |
||||
|
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "암호화", |
||||
"Exclude the following file types from encryption" => "다음 파일 형식은 암호화하지 않음", |
||||
"None" => "없음", |
||||
"Enable Encryption" => "암호화 사용" |
||||
); |
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Шифровање", |
||||
"Exclude the following file types from encryption" => "Не шифруј следеће типове датотека", |
||||
"None" => "Ништа", |
||||
"Enable Encryption" => "Омогући шифровање" |
||||
); |
||||
@ -1,6 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Mã hóa", |
||||
"Exclude the following file types from encryption" => "Loại trừ các loại tập tin sau đây từ mã hóa", |
||||
"None" => "none", |
||||
"None" => "Không có gì hết", |
||||
"Enable Encryption" => "BẬT mã hóa" |
||||
); |
||||
|
||||
@ -1,12 +1,14 @@ |
||||
<form id="calendar"> |
||||
<fieldset class="personalblock"> |
||||
<strong><?php echo $l->t('Encryption'); ?></strong>
|
||||
<?php echo $l->t("Exclude the following file types from encryption"); ?> |
||||
<?php echo $l->t('Exclude the following file types from encryption'); ?> |
||||
<select id='encryption_blacklist' title="<?php echo $l->t('None')?>" multiple="multiple">
|
||||
<?php foreach($_["blacklist"] as $type): ?> |
||||
<?php foreach ($_['blacklist'] as $type): ?> |
||||
<option selected="selected" value="<?php echo $type;?>"><?php echo $type;?></option>
|
||||
<?php endforeach;?> |
||||
</select> |
||||
<input type='checkbox' id='enable_encryption' <?php if($_['encryption_enabled']) {echo 'checked="checked"';} ?>></input><label for='enable_encryption'><?php echo $l->t('Enable Encryption')?></label>
|
||||
<input type='checkbox'<?php if ($_['encryption_enabled']): ?> checked="checked"<?php endif; ?> |
||||
id='enable_encryption' ></input> |
||||
<label for='enable_encryption'><?php echo $l->t('Enable Encryption')?></label>
|
||||
</fieldset> |
||||
</form> |
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue