Conflicts: lib/group.php lib/group/backend.php lib/group/database.php lib/group/interface.php lib/public/user.php lib/user.php lib/user/backend.php lib/user/database.php lib/user/interface.phpremotes/origin/stable45
commit
4c7fd8cd01
@ -0,0 +1,14 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"The php-json module is needed by the many applications for inter communications" => "El mòdul php-json és necessari per moltes aplicacions per comunicacions internes", |
||||
"The php-curl modude is needed to fetch the page title when adding a bookmarks" => "El mòdul php-curl és necessari per mostrar el títol de la pàgina quan s'afegeixen adreces d'interès", |
||||
"The php-gd module is needed to create thumbnails of your images" => "El mòdul php-gd és necessari per generar miniatures d'imatges", |
||||
"The php-ldap module is needed connect to your ldap server" => "El mòdul php-ldap és necessari per connectar amb el servidor ldap", |
||||
"The php-zip module is needed download multiple files at once" => "El mòdul php-zip és necessari per baixar múltiples fitxers de cop", |
||||
"The php-mb_multibyte module is needed to manage correctly the encoding." => "El mòdul php-mb_multibyte és necessari per gestionar correctament la codificació.", |
||||
"The php-ctype module is needed validate data." => "El mòdul php-ctype és necessari per validar dades.", |
||||
"The php-xml module is needed to share files with webdav." => "El mòdul php-xml és necessari per compatir els fitxers amb webdav.", |
||||
"The allow_url_fopen directive of your php.ini should be set to 1 to retrieve knowledge base from OCS servers" => "La directiva allow_url_fopen de php.ini hauria d'establir-se en 1 per accedir a la base de coneixements dels servidors OCS", |
||||
"The php-pdo module is needed to store owncloud data into a database." => "El mòdul php-pdo és necessari per desar les dades d'ownCloud en una base de dades.", |
||||
"Dependencies status" => "Estat de dependències", |
||||
"Used by :" => "Usat per:" |
||||
); |
||||
@ -0,0 +1,14 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"The php-json module is needed by the many applications for inter communications" => "Modulen php-json behövs av många applikationer som interagerar.", |
||||
"The php-curl modude is needed to fetch the page title when adding a bookmarks" => "Modulen php-curl behövs för att hämta sidans titel när du lägger till bokmärken.", |
||||
"The php-gd module is needed to create thumbnails of your images" => "Modulen php-gd behövs för att skapa miniatyrer av dina bilder.", |
||||
"The php-ldap module is needed connect to your ldap server" => "Modulen php-ldap behövs för att ansluta mot din ldapserver.", |
||||
"The php-zip module is needed download multiple files at once" => "Modulen php-zip behövs för att kunna ladda ner flera filer på en gång.", |
||||
"The php-mb_multibyte module is needed to manage correctly the encoding." => "Modulen php-mb_multibyte behövs för att hantera korrekt teckenkodning.", |
||||
"The php-ctype module is needed validate data." => "Modulen php-ctype behövs för att validera data.", |
||||
"The php-xml module is needed to share files with webdav." => "Modulen php-xml behövs för att kunna dela filer med webdav.", |
||||
"The allow_url_fopen directive of your php.ini should be set to 1 to retrieve knowledge base from OCS servers" => "Direktivet allow_url_fopen i php.ini bör sättas till 1 för att kunna hämta kunskapsbasen från OCS-servrar.", |
||||
"The php-pdo module is needed to store owncloud data into a database." => "Modulen php-pdo behövs för att kunna lagra ownCloud data i en databas.", |
||||
"Dependencies status" => "Beroenden status", |
||||
"Used by :" => "Används av:" |
||||
); |
||||
@ -0,0 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Export this ownCloud instance" => "Exporta aquesta instància de ownCloud", |
||||
"This will create a compressed file that contains the data of this owncloud instance.\n Please choose the export type:" => "Això crearà un fitxer comprimit amb les dades d'aquesta instància ownCloud.\n Escolliu el tipus d'exportació:", |
||||
"Export" => "Exporta" |
||||
); |
||||
@ -0,0 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Export this ownCloud instance" => "Exportar esta instancia de ownCloud", |
||||
"This will create a compressed file that contains the data of this owncloud instance.\n Please choose the export type:" => "Se creará un archivo comprimido que contendrá los datos de esta instancia de owncloud.\n Por favor elegir el tipo de exportación:", |
||||
"Export" => "Exportar" |
||||
); |
||||
@ -0,0 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Export this ownCloud instance" => "Exporta esta instancia de ownCloud", |
||||
"This will create a compressed file that contains the data of this owncloud instance.\n Please choose the export type:" => "Esto creará un ficheiro comprimido que contén os datos de esta instancia de ownCloud.\nPor favor escolla o modo de exportación:", |
||||
"Export" => "Exportar" |
||||
); |
||||
@ -0,0 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Export this ownCloud instance" => "Eksportuj instancję ownCloud", |
||||
"This will create a compressed file that contains the data of this owncloud instance.\n Please choose the export type:" => "Spowoduje to utworzenie pliku skompresowanego, który zawiera dane tej instancji ownCloud.⏎ proszę wybrać typ eksportu:", |
||||
"Export" => "Eksport" |
||||
); |
||||
@ -0,0 +1,5 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Export this ownCloud instance" => "Exportera denna instans av ownCloud", |
||||
"This will create a compressed file that contains the data of this owncloud instance.\n Please choose the export type:" => "Detta kommer att skapa en komprimerad fil som innehåller all data från denna instans av ownCloud.\n Välj exporttyp:", |
||||
"Export" => "Exportera" |
||||
); |
||||
@ -0,0 +1,121 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Wrong calendar" => "错误的日历", |
||||
"New Timezone:" => "新时区", |
||||
"Timezone changed" => "时区改变了", |
||||
"Invalid request" => "非法请求", |
||||
"Calendar" => "日历", |
||||
"Birthday" => "生日", |
||||
"Business" => "商务", |
||||
"Call" => "呼叫", |
||||
"Clients" => "客户端", |
||||
"Deliverer" => "交付者", |
||||
"Holidays" => "假期", |
||||
"Ideas" => "灵感", |
||||
"Journey" => "旅行", |
||||
"Jubilee" => "五十年纪念", |
||||
"Meeting" => "会面", |
||||
"Other" => "其它", |
||||
"Personal" => "个人的", |
||||
"Projects" => "项目", |
||||
"Questions" => "问题", |
||||
"Work" => "工作", |
||||
"New Calendar" => "新的日历", |
||||
"Does not repeat" => "不要重复", |
||||
"Daily" => "每天", |
||||
"Weekly" => "每星期", |
||||
"Every Weekday" => "每个周末", |
||||
"Bi-Weekly" => "每两周", |
||||
"Monthly" => "每个月", |
||||
"Yearly" => "每年", |
||||
"never" => "从不", |
||||
"by occurrences" => "根据发生时", |
||||
"by date" => "根据日期", |
||||
"by monthday" => "根据月天", |
||||
"by weekday" => "根据星期", |
||||
"Monday" => "星期一", |
||||
"Tuesday" => "星期二", |
||||
"Wednesday" => "星期三", |
||||
"Thursday" => "星期四", |
||||
"Friday" => "星期五", |
||||
"Saturday" => "星期六", |
||||
"Sunday" => "星期天", |
||||
"events week of month" => "时间每月发生的周数", |
||||
"first" => "首先", |
||||
"second" => "其次", |
||||
"third" => "第三", |
||||
"fourth" => "第四", |
||||
"fifth" => "第五", |
||||
"last" => "最后", |
||||
"January" => "一月", |
||||
"February" => "二月", |
||||
"March" => "三月", |
||||
"April" => "四月", |
||||
"May" => "五月", |
||||
"June" => "六月", |
||||
"July" => "七月", |
||||
"August" => "八月", |
||||
"September" => "九月", |
||||
"October" => "十月", |
||||
"November" => "十一月", |
||||
"December" => "十二月", |
||||
"by events date" => "根据时间日期", |
||||
"by yearday(s)" => "根据年数", |
||||
"by weeknumber(s)" => "根据周数", |
||||
"by day and month" => "根据天和月", |
||||
"Date" => "日期", |
||||
"Cal." => "Cal.", |
||||
"All day" => "整天", |
||||
"Missing fields" => "丢失的输入框", |
||||
"Title" => "标题", |
||||
"From Date" => "从日期", |
||||
"From Time" => "从时间", |
||||
"To Date" => "到日期", |
||||
"To Time" => "到时间", |
||||
"The event ends before it starts" => "在它开始前需要结束的事件", |
||||
"There was a database fail" => "发生了一个数据库失败", |
||||
"Week" => "星期", |
||||
"Month" => "月", |
||||
"List" => "列表", |
||||
"Today" => "今天", |
||||
"CalDav Link" => "CalDav 链接", |
||||
"Download" => "下载", |
||||
"Edit" => "编辑", |
||||
"Delete" => "删除", |
||||
"New calendar" => "新的日历", |
||||
"Edit calendar" => "编辑日历", |
||||
"Displayname" => "显示名称", |
||||
"Active" => "活动", |
||||
"Calendar color" => "日历颜色", |
||||
"Save" => "保存", |
||||
"Submit" => "提交", |
||||
"Cancel" => " 取消", |
||||
"Edit an event" => "编辑一个事件", |
||||
"Export" => "导出", |
||||
"Title of the Event" => "事件的标题", |
||||
"Category" => "分类", |
||||
"All Day Event" => "每天的事件", |
||||
"From" => "从", |
||||
"To" => "到", |
||||
"Advanced options" => "进阶选项", |
||||
"Location" => "地点", |
||||
"Location of the Event" => "事件的地点", |
||||
"Description" => "解释", |
||||
"Description of the Event" => "事件描述", |
||||
"Repeat" => "重复", |
||||
"Advanced" => "进阶", |
||||
"Select weekdays" => "选择星期", |
||||
"Select days" => "选择日", |
||||
"and the events day of year." => "选择每年时间发生天数", |
||||
"and the events day of month." => "选择每个月事件发生的天", |
||||
"Select months" => "选择月份", |
||||
"Select weeks" => "选择星期", |
||||
"and the events week of year." => "每年时间发生的星期", |
||||
"Interval" => "间隔", |
||||
"End" => "结束", |
||||
"occurrences" => "发生", |
||||
"Import" => "导入", |
||||
"Create a new event" => "新建一个时间", |
||||
"Timezone" => "时区", |
||||
"24h" => "24小时", |
||||
"12h" => "12小时" |
||||
); |
||||
@ -0,0 +1,52 @@ |
||||
<?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 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" => "删除", |
||||
"already exists" => "已经存在了", |
||||
"replace" => "替换", |
||||
"cancel" => "取消", |
||||
"replaced" => "替换过了", |
||||
"with" => "随着", |
||||
"undo" => "撤销", |
||||
"deleted" => "删除", |
||||
"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" => "上传错误", |
||||
"Pending" => "Pending", |
||||
"Upload cancelled." => "上传取消了", |
||||
"Invalid name, '/' is not allowed." => "非法文件名,\"/\"是不被许可的", |
||||
"Size" => "大小", |
||||
"Modified" => "修改日期", |
||||
"folder" => "文件夹", |
||||
"folders" => "文件夹", |
||||
"file" => "文件", |
||||
"files" => "文件", |
||||
"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文件输入大小", |
||||
"New" => "新建", |
||||
"Text file" => "文本文档", |
||||
"Folder" => "文件夹", |
||||
"From url" => "从URL:", |
||||
"Upload" => "上传", |
||||
"Cancel upload" => "取消上传", |
||||
"Nothing in here. Upload something!" => "这里没有东西.上传点什么!", |
||||
"Name" => "名字", |
||||
"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" => "正在扫描" |
||||
); |
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Encriptatge", |
||||
"Exclude the following file types from encryption" => "Exclou els tipus de fitxers següents de l'encriptatge", |
||||
"None" => "Cap", |
||||
"Enable Encryption" => "Activa l'encriptatge" |
||||
); |
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Verschlüsselung", |
||||
"Exclude the following file types from encryption" => "Die folgenden Dateitypen von der Verschlüsselung ausnehmen", |
||||
"None" => "Keine", |
||||
"Enable Encryption" => "Verschlüsselung aktivieren" |
||||
); |
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Szyfrowanie", |
||||
"Exclude the following file types from encryption" => "Wyłącz następujące typy plików z szyfrowania", |
||||
"None" => "Brak", |
||||
"Enable Encryption" => "Włącz szyfrowanie" |
||||
); |
||||
@ -0,0 +1,6 @@ |
||||
<?php $TRANSLATIONS = array( |
||||
"Encryption" => "Kryptering", |
||||
"Exclude the following file types from encryption" => "Exkludera följande filtyper från kryptering", |
||||
"None" => "Ingen", |
||||
"Enable Encryption" => "Aktivera kryptering" |
||||
); |
||||
@ -1,5 +1,7 @@ |
||||
.error { color: #FF3B3B; } |
||||
td.mountPoint, td.backend { width:10em; } |
||||
td.remove>img { visibility:hidden; padding-top:0.8em; } |
||||
tr:hover>td.remove>img { visibility:visible; cursor:pointer; } |
||||
#addMountPoint>td { border:none; } |
||||
#addMountPoint>td.applicable { visibility:hidden; } |
||||
#selectBackend { margin-left:-10px; } |
||||
@ -1,47 +1,76 @@ |
||||
$(document).ready(function() { |
||||
|
||||
$('#externalStorage tbody tr').each(function() { |
||||
if ($(this).find('.backend').data('class') == 'OC_Filestorage_Google') { |
||||
|
||||
$('#externalStorage tbody tr.OC_Filestorage_Google').each(function() { |
||||
var configured = $(this).find('[data-parameter="configured"]'); |
||||
if ($(configured).val() == 'true') { |
||||
$(this).find('.configuration').append('<span id="access" style="padding-left:0.5em;">Access granted</span>'); |
||||
} else { |
||||
var token = $(this).find('[data-parameter="token"]'); |
||||
var token_secret = $(this).find('[data-parameter="token_secret"]'); |
||||
if ($(token).val() == '' && $(token).val() == '') { |
||||
$(this).find('.configuration').append('<a class="button google">Grant access</a>'); |
||||
} else { |
||||
var params = {}; |
||||
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) { |
||||
params[key] = value; |
||||
var params = {}; |
||||
window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) { |
||||
params[key] = value; |
||||
}); |
||||
if (params['oauth_token'] !== undefined && params['oauth_verifier'] !== undefined && decodeURIComponent(params['oauth_token']) == $(token).val()) { |
||||
var tr = $(this); |
||||
$.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 2, oauth_verifier: params['oauth_verifier'], request_token: $(token).val(), request_token_secret: $(token_secret).val() }, function(result) { |
||||
if (result && result.status == 'success') { |
||||
$(token).val(result.access_token); |
||||
$(token_secret).val(result.access_token_secret); |
||||
$(configured).val('true'); |
||||
OC.MountConfig.saveStorage(tr); |
||||
$(tr).find('.configuration').append('<span id="access" style="padding-left:0.5em;">Access granted</span>'); |
||||
} else { |
||||
OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage'); |
||||
} |
||||
}); |
||||
if (params['oauth_token'] !== undefined && params['oauth_verifier'] !== undefined && decodeURIComponent(params['oauth_token']) == $(token).val()) { |
||||
var tr = $(this); |
||||
$.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 2, oauth_verifier: params['oauth_verifier'], request_token: $(token).val(), request_token_secret: $(token_secret).val() }, function(result) { |
||||
if (result && result.status == 'success') { |
||||
$(token).val(result.access_token); |
||||
$(token_secret).val(result.access_token_secret); |
||||
OC.MountConfig.saveStorage(tr); |
||||
} else { |
||||
OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage'); |
||||
} |
||||
}); |
||||
} else if ($(this).find('.google').length == 0) { |
||||
$(this).find('.configuration').append('<a class="button google">Grant access</a>'); |
||||
} |
||||
} |
||||
}); |
||||
|
||||
$('#externalStorage tbody tr').live('change', function() { |
||||
if ($(this).hasClass('OC_Filestorage_Google') && $(this).find('[data-parameter="configured"]').val() != 'true') { |
||||
if ($(this).find('.mountPoint input').val() != '') { |
||||
if ($(this).find('.google').length == 0) { |
||||
$(this).find('.configuration').append('<a class="button google">Grant access</a>'); |
||||
} |
||||
} |
||||
} |
||||
}); |
||||
|
||||
|
||||
$('#externalStorage tbody tr .mountPoint input').live('keyup', function() { |
||||
var tr = $(this).parent().parent(); |
||||
if ($(tr).hasClass('OC_Filestorage_Google') && $(tr).find('[data-parameter="configured"]').val() != 'true' && $(tr).find('.google').length > 0) { |
||||
if ($(this).val() != '') { |
||||
$(tr).find('.google').show(); |
||||
} else { |
||||
$(tr).find('.google').hide(); |
||||
} |
||||
} |
||||
}); |
||||
|
||||
$('.google').live('click', function(event) { |
||||
event.preventDefault(); |
||||
var tr = $(this).parent().parent(); |
||||
var configured = $(this).parent().find('[data-parameter="configured"]'); |
||||
var token = $(this).parent().find('[data-parameter="token"]'); |
||||
var token_secret = $(this).parent().find('[data-parameter="token_secret"]'); |
||||
$.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 1, callback: window.location.href }, function(result) { |
||||
if (result && result.status == 'success') { |
||||
$(configured).val('false'); |
||||
$(token).val(result.data.request_token); |
||||
$(token_secret).val(result.data.request_token_secret); |
||||
OC.MountConfig.saveStorage(tr); |
||||
window.location = result.data.url; |
||||
if (OC.MountConfig.saveStorage(tr)) { |
||||
window.location = result.data.url; |
||||
} else { |
||||
OC.dialogs.alert('Fill out all required fields', 'Error configuring Google Drive storage'); |
||||
} |
||||
} else { |
||||
OC.dialogs.alert(result.data.message, 'Error configuring Google Drive storage'); |
||||
} |
||||
}); |
||||
}); |
||||
|
||||
|
||||
}); |
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue