Merge branch 'master' into no-inline-js

This commit is contained in:
Lukas Reschke 2013-01-25 16:11:07 +01:00
commit 047f1988c3
81 changed files with 645 additions and 488 deletions

View File

@ -29,6 +29,7 @@
"'.' is an invalid file name." => "'.' n'est pas un nom de fichier valide.",
"File name cannot be empty." => "Le nom de fichier ne peut être vide.",
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Nom invalide, les caractères '\\', '/', '<', '>', ':', '\"', '|', '?' et '*' ne sont pas autorisés.",
"Your download is being prepared. This might take some time if the files are big." => "Votre téléchargement est cours de préparation. Ceci peut nécessiter un certain temps si les fichiers sont volumineux.",
"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",
"Close" => "Fermer",

View File

@ -29,6 +29,7 @@
"'.' is an invalid file name." => "'.' fájlnév érvénytelen.",
"File name cannot be empty." => "A fájlnév nem lehet semmi.",
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Érvénytelen elnevezés. Ezek a karakterek nem használhatók: '\\', '/', '<', '>', ':', '\"', '|', '?' és '*'",
"Your download is being prepared. This might take some time if the files are big." => "Készül a letöltendő állomány. Ez eltarthat egy ideig, ha nagyok a fájlok.",
"Unable to upload your file as it is a directory or has 0 bytes" => "Nem tölthető fel, mert mappa volt, vagy 0 byte méretű",
"Upload Error" => "Feltöltési hiba",
"Close" => "Bezárás",

View File

@ -1,5 +1,8 @@
<?php $TRANSLATIONS = array(
"Upload" => "Odoslať",
"Could not move %s - File with this name already exists" => "Nie je možné presunúť %s - súbor s týmto menom už existuje",
"Could not move %s" => "Nie je možné presunúť %s",
"Unable to rename file" => "Nemožno premenovať súbor",
"No file was uploaded. Unknown error" => "Žiaden súbor nebol odoslaný. Neznáma chyba",
"There is no error, the file uploaded with success" => "Nenastala žiadna chyba, súbor bol úspešne nahraný",
"The uploaded file exceeds the upload_max_filesize directive in php.ini: " => "Nahraný súbor predčil konfiguračnú direktívu upload_max_filesize v súbore php.ini:",
@ -8,6 +11,8 @@
"No file was uploaded" => "Žiaden súbor nebol nahraný",
"Missing a temporary folder" => "Chýbajúci dočasný priečinok",
"Failed to write to disk" => "Zápis na disk sa nepodaril",
"Not enough space available" => "Nie je k dispozícii dostatok miesta",
"Invalid directory." => "Neplatný adresár",
"Files" => "Súbory",
"Unshare" => "Nezdielať",
"Delete" => "Odstrániť",
@ -21,7 +26,10 @@
"replaced {new_name} with {old_name}" => "prepísaný {new_name} súborom {old_name}",
"unshared {files}" => "zdieľanie zrušené pre {files}",
"deleted {files}" => "zmazané {files}",
"'.' is an invalid file name." => "'.' je neplatné meno súboru.",
"File name cannot be empty." => "Meno súboru nemôže byť prázdne",
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "Nesprávne meno, '\\', '/', '<', '>', ':', '\"', '|', '?' a '*' nie sú povolené hodnoty.",
"Your download is being prepared. This might take some time if the files are big." => "Vaše sťahovanie sa pripravuje. Ak sú sťahované súbory veľké, môže to chvíľu trvať.",
"Unable to upload your file as it is a directory or has 0 bytes" => "Nemôžem nahrať súbor lebo je to priečinok alebo má 0 bajtov.",
"Upload Error" => "Chyba odosielania",
"Close" => "Zavrieť",
@ -31,6 +39,7 @@
"Upload cancelled." => "Odosielanie zrušené",
"File upload is in progress. Leaving the page now will cancel the upload." => "Opustenie stránky zruší práve prebiehajúce odosielanie súboru.",
"URL cannot be empty." => "URL nemôže byť prázdne",
"Invalid folder name. Usage of 'Shared' is reserved by Owncloud" => "Neplatné meno adresára. Používanie mena 'Shared' je vyhradené len pre Owncloud",
"{count} files scanned" => "{count} súborov prehľadaných",
"error while scanning" => "chyba počas kontroly",
"Name" => "Meno",

View File

@ -29,6 +29,7 @@
"'.' is an invalid file name." => "'.' 是不合法的檔名。",
"File name cannot be empty." => "檔名不能為空。",
"Invalid name, '\\', '/', '<', '>', ':', '\"', '|', '?' and '*' are not allowed." => "檔名不合法,不允許 '\\', '/', '<', '>', ':', '\"', '|', '?' 和 '*' 。",
"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 Error" => "上傳發生錯誤",
"Close" => "關閉",

View File

@ -1,4 +1,15 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "Prosím přejděte na svého klienta ownCloud a nastavte šifrovací heslo pro dokončení konverze.",
"switched to client side encryption" => "přepnuto na šifrování na straně klienta",
"Change encryption password to login password" => "Změnit šifrovací heslo na přihlašovací",
"Please check your passwords and try again." => "Zkontrolujte, prosím, své heslo a zkuste to znovu.",
"Could not change your file encryption password to your login password" => "Nelze změnit šifrovací heslo na přihlašovací.",
"Choose encryption mode:" => "Vyberte režim šifrování:",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "Šifrování na straně klienta (nejbezpečnější ale neumožňuje vám přistupovat k souborům z webového rozhraní)",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "Šifrování na straně serveru (umožňuje vám přistupovat k souborům pomocí webového rozhraní i aplikací)",
"None (no encryption at all)" => "Žádný (vůbec žádné šifrování)",
"Important: Once you selected an encryption mode there is no way to change it back" => "Důležité: jak si jednou vyberete režim šifrování nelze jej opětovně změnit",
"User specific (let the user decide)" => "Definován uživatelem (umožní uživateli si vybrat)",
"Encryption" => "Šifrování",
"Exclude the following file types from encryption" => "Při šifrování vynechat následující typy souborů",
"None" => "Žádné"

View File

@ -1,4 +1,8 @@
<?php $TRANSLATIONS = array(
"Change encryption password to login password" => "Αλλαγή συνθηματικού κρυπτογράφησης στο συνθηματικό εισόδου ",
"Please check your passwords and try again." => "Παρακαλώ ελέγξτε το συνθηματικό σας και προσπαθήστε ξανά.",
"Could not change your file encryption password to your login password" => "Αδυναμία αλλαγής συνθηματικού κρυπτογράφησης αρχείων στο συνθηματικό εισόδου σας",
"Choose encryption mode:" => "Επιλογή κατάστασης κρυπτογράφησης:",
"Encryption" => "Κρυπτογράφηση",
"Exclude the following file types from encryption" => "Εξαίρεση των παρακάτω τύπων αρχείων από την κρυπτογράφηση",
"None" => "Καμία"

View File

@ -1,4 +1,15 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "Veuillez vous connecter depuis votre client de synchronisation ownCloud et changer votre mot de passe de chiffrement pour finaliser la conversion.",
"switched to client side encryption" => "Mode de chiffrement changé en chiffrement côté client",
"Change encryption password to login password" => "Convertir le mot de passe de chiffrement en mot de passe de connexion",
"Please check your passwords and try again." => "Veuillez vérifier vos mots de passe et réessayer.",
"Could not change your file encryption password to your login password" => "Impossible de convertir votre mot de passe de chiffrement en mot de passe de connexion",
"Choose encryption mode:" => "Choix du type de chiffrement :",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "Chiffrement côté client (plus sécurisé, mais ne permet pas l'accès à vos données depuis l'interface web)",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "Chiffrement côté serveur (vous permet d'accéder à vos fichiers depuis l'interface web et depuis le client de synchronisation)",
"None (no encryption at all)" => "Aucun (pas de chiffrement)",
"Important: Once you selected an encryption mode there is no way to change it back" => "Important : Une fois le mode de chiffrement choisi, il est impossible de revenir en arrière",
"User specific (let the user decide)" => "Propre à l'utilisateur (laisse le choix à l'utilisateur)",
"Encryption" => "Chiffrement",
"Exclude the following file types from encryption" => "Ne pas chiffrer les fichiers dont les types sont les suivants",
"None" => "Aucun"

View File

@ -1,4 +1,13 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "Passa al tuo client ownCloud e cambia la password di cifratura per completare la conversione.",
"switched to client side encryption" => "passato alla cifratura lato client",
"Please check your passwords and try again." => "Controlla la password e prova ancora.",
"Choose encryption mode:" => "Scegli la modalità di cifratura.",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "Cifratura lato client (più sicura ma rende impossibile accedere ai propri dati dall'interfaccia web)",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "Cifratura lato server (ti consente di accedere ai tuoi file dall'interfaccia web e dal client desktop)",
"None (no encryption at all)" => "Nessuna (senza alcuna cifratura)",
"Important: Once you selected an encryption mode there is no way to change it back" => "Importante: una volta selezionata la modalità di cifratura non sarà possibile tornare indietro",
"User specific (let the user decide)" => "Specificato dall'utente (lascia decidere all'utente)",
"Encryption" => "Cifratura",
"Exclude the following file types from encryption" => "Escludi i seguenti tipi di file dalla cifratura",
"None" => "Nessuna"

View File

@ -1,4 +1,15 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "変換を完了するために、ownCloud クライアントに切り替えて、暗号化パスワードを変更してください。",
"switched to client side encryption" => "クライアントサイドの暗号化に切り替えました",
"Change encryption password to login password" => "暗号化パスワードをログインパスワードに変更",
"Please check your passwords and try again." => "パスワードを確認してもう一度行なってください。",
"Could not change your file encryption password to your login password" => "ファイル暗号化パスワードをログインパスワードに変更できませんでした。",
"Choose encryption mode:" => "暗号化モードを選択:",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "クライアントサイドの暗号化最もセキュアですが、WEBインターフェースからデータにアクセスできなくなります",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "サーバサイド暗号化WEBインターフェースおよびデスクトップクライアントからファイルにアクセスすることができます",
"None (no encryption at all)" => "暗号化無し(何も暗号化しません)",
"Important: Once you selected an encryption mode there is no way to change it back" => "重要: 一度暗号化を選択してしまうと、もとに戻す方法はありません",
"User specific (let the user decide)" => "ユーザ指定(ユーザが選べるようにする)",
"Encryption" => "暗号化",
"Exclude the following file types from encryption" => "暗号化から除外するファイルタイプ",
"None" => "なし"

View File

@ -1,4 +1,15 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "Por favor, use o seu cliente de sincronização do ownCloud e altere a sua password de encriptação para concluír a conversão.",
"switched to client side encryption" => "Alterado para encriptação do lado do cliente",
"Change encryption password to login password" => "Alterar a password de encriptação para a password de login",
"Please check your passwords and try again." => "Por favor verifique as suas paswords e tente de novo.",
"Could not change your file encryption password to your login password" => "Não foi possível alterar a password de encriptação de ficheiros para a sua password de login",
"Choose encryption mode:" => "Escolha o método de encriptação",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "Encriptação do lado do cliente (mais seguro mas torna possível o acesso aos dados através do interface web)",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "Encriptação do lado do servidor (permite o acesso aos seus ficheiros através do interface web e do cliente de sincronização)",
"None (no encryption at all)" => "Nenhuma (sem encriptação)",
"Important: Once you selected an encryption mode there is no way to change it back" => "Importante: Uma vez escolhido o modo de encriptação, não existe maneira de o alterar!",
"User specific (let the user decide)" => "Escolhido pelo utilizador",
"Encryption" => "Encriptação",
"Exclude the following file types from encryption" => "Excluir da encriptação os seguintes tipo de ficheiros",
"None" => "Nenhum"

View File

@ -1,4 +1,15 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "Vänligen växla till ownCloud klienten och ändra ditt krypteringslösenord för att slutföra omvandlingen.",
"switched to client side encryption" => "Bytte till kryptering på klientsidan",
"Change encryption password to login password" => "Ändra krypteringslösenord till loginlösenord",
"Please check your passwords and try again." => "Kontrollera dina lösenord och försök igen.",
"Could not change your file encryption password to your login password" => "Kunde inte ändra ditt filkrypteringslösenord till ditt loginlösenord",
"Choose encryption mode:" => "Välj krypteringsläge:",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "Kryptering på klientsidan (säkraste men gör det omöjligt att komma åt dina filer med en webbläsare)",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "Kryptering på serversidan (kan komma åt dina filer från webbläsare och datorklient)",
"None (no encryption at all)" => "Ingen (ingen kryptering alls)",
"Important: Once you selected an encryption mode there is no way to change it back" => "Viktigt: När du har valt ett krypteringsläge finns det inget sätt att ändra tillbaka",
"User specific (let the user decide)" => "Användarspecifik (låter användaren bestämma)",
"Encryption" => "Kryptering",
"Exclude the following file types from encryption" => "Exkludera följande filtyper från kryptering",
"None" => "Ingen"

View File

@ -1,4 +1,15 @@
<?php $TRANSLATIONS = array(
"Please switch to your ownCloud client and change your encryption password to complete the conversion." => "กรุณาสลับไปที่โปรแกรมไคลเอนต์ ownCloud ของคุณ แล้วเปลี่ยนรหัสผ่านสำหรับการเข้ารหัสเพื่อแปลงข้อมูลให้เสร็จสมบูรณ์",
"switched to client side encryption" => "สลับไปใช้การเข้ารหัสจากโปรแกรมไคลเอนต์",
"Change encryption password to login password" => "เปลี่ยนรหัสผ่านสำหรับเข้ารหัสไปเป็นรหัสผ่านสำหรับการเข้าสู่ระบบ",
"Please check your passwords and try again." => "กรุณาตรวจสอบรหัสผ่านของคุณแล้วลองใหม่อีกครั้ง",
"Could not change your file encryption password to your login password" => "ไม่สามารถเปลี่ยนรหัสผ่านสำหรับการเข้ารหัสไฟล์ของคุณไปเป็นรหัสผ่านสำหรับการเข้าสู่ระบบของคุณได้",
"Choose encryption mode:" => "เลือกรูปแบบการเข้ารหัส:",
"Client side encryption (most secure but makes it impossible to access your data from the web interface)" => "การเข้ารหัสด้วยโปรแกรมไคลเอนต์ (ปลอดภัยที่สุด แต่จะทำให้คุณไม่สามารถเข้าถึงข้อมูลต่างๆจากหน้าจอเว็บไซต์ได้)",
"Server side encryption (allows you to access your files from the web interface and the desktop client)" => "การเข้ารหัสจากทางฝั่งเซิร์ฟเวอร์ (อนุญาตให้คุณเข้าถึงไฟล์ของคุณจากหน้าจอเว็บไซต์ และโปรแกรมไคลเอนต์จากเครื่องเดสก์ท็อปได้)",
"None (no encryption at all)" => "ไม่ต้อง (ไม่มีการเข้ารหัสเลย)",
"Important: Once you selected an encryption mode there is no way to change it back" => "ข้อความสำคัญ: หลังจากที่คุณได้เลือกรูปแบบการเข้ารหัสแล้ว จะไม่สามารถเปลี่ยนกลับมาใหม่ได้อีก",
"User specific (let the user decide)" => "ให้ผู้ใช้งานเลือกเอง (ปล่อยให้ผู้ใช้งานตัดสินใจเอง)",
"Encryption" => "การเข้ารหัส",
"Exclude the following file types from encryption" => "ไม่ต้องรวมชนิดของไฟล์ดังต่อไปนี้จากการเข้ารหัส",
"None" => "ไม่ต้อง"

View File

@ -609,42 +609,42 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase {
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
// $decrypted=rtrim($decrypted, "\0");
// $this->assertNotEquals($encrypted,$source);
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// $chunk=substr($source,0,8192);
// $encrypted=OC_Encryption\Crypt::encrypt($chunk,$key);
// $this->assertEqual(strlen($chunk),strlen($encrypted));
// $this->assertEquals(strlen($chunk),strlen($encrypted));
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
// $decrypted=rtrim($decrypted, "\0");
// $this->assertEqual($decrypted,$chunk);
// $this->assertEquals($decrypted,$chunk);
//
// $encrypted=OC_Encryption\Crypt::blockEncrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key);
// $this->assertNotEquals($encrypted,$source);
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// $tmpFileEncrypted=OCP\Files::tmpFile();
// OC_Encryption\Crypt::encryptfile($file,$tmpFileEncrypted,$key);
// $encrypted=file_get_contents($tmpFileEncrypted);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key);
// $this->assertNotEquals($encrypted,$source);
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// $tmpFileDecrypted=OCP\Files::tmpFile();
// OC_Encryption\Crypt::decryptfile($tmpFileEncrypted,$tmpFileDecrypted,$key);
// $decrypted=file_get_contents($tmpFileDecrypted);
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// $file=OC::$SERVERROOT.'/core/img/weather-clear.png';
// $source=file_get_contents($file); //binary file
// $encrypted=OC_Encryption\Crypt::encrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
// $decrypted=rtrim($decrypted, "\0");
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// $encrypted=OC_Encryption\Crypt::blockEncrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key);
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// }
//
@ -657,11 +657,11 @@ class Test_Crypt extends \PHPUnit_Framework_TestCase {
// $decrypted=OC_Encryption\Crypt::decrypt($encrypted,$key);
//
// $decrypted=rtrim($decrypted, "\0");
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
//
// $encrypted=OC_Encryption\Crypt::blockEncrypt($source,$key);
// $decrypted=OC_Encryption\Crypt::blockDecrypt($encrypted,$key,strlen($source));
// $this->assertEqual($decrypted,$source);
// $this->assertEquals($decrypted,$source);
// }
}

View File

@ -109,7 +109,7 @@
//
// }
// class Test_CryptProxy extends UnitTestCase {
// class Test_CryptProxy extends PHPUnit_Framework_TestCase {
// private $oldConfig;
// private $oldKey;
//
@ -161,9 +161,9 @@
// OC_FileProxy::$enabled=true;
//
// $fromFile=OC_Filesystem::file_get_contents('/file');
// $this->assertNotEqual($original,$stored);
// $this->assertEqual(strlen($original),strlen($fromFile));
// $this->assertEqual($original,$fromFile);
// $this->assertNotEquals($original,$stored);
// $this->assertEquals(strlen($original),strlen($fromFile));
// $this->assertEquals($original,$fromFile);
//
// }
//
@ -181,12 +181,12 @@
// $stored=$rootView->file_get_contents($userDir.'/file');
// OC_FileProxy::$enabled=true;
//
// $this->assertNotEqual($original,$stored);
// $this->assertNotEquals($original,$stored);
// $fromFile=$rootView->file_get_contents($userDir.'/file');
// $this->assertEqual($original,$fromFile);
// $this->assertEquals($original,$fromFile);
//
// $fromFile=$view->file_get_contents('files/file');
// $this->assertEqual($original,$fromFile);
// $this->assertEquals($original,$fromFile);
// }
//
// public function testBinary(){
@ -200,9 +200,9 @@
// OC_FileProxy::$enabled=true;
//
// $fromFile=OC_Filesystem::file_get_contents('/file');
// $this->assertNotEqual($original,$stored);
// $this->assertEqual(strlen($original),strlen($fromFile));
// $this->assertEqual($original,$fromFile);
// $this->assertNotEquals($original,$stored);
// $this->assertEquals(strlen($original),strlen($fromFile));
// $this->assertEquals($original,$fromFile);
//
// $file=__DIR__.'/zeros';
// $original=file_get_contents($file);
@ -214,7 +214,7 @@
// OC_FileProxy::$enabled=true;
//
// $fromFile=OC_Filesystem::file_get_contents('/file');
// $this->assertNotEqual($original,$stored);
// $this->assertEqual(strlen($original),strlen($fromFile));
// $this->assertNotEquals($original,$stored);
// $this->assertEquals(strlen($original),strlen($fromFile));
// }
// }

View File

@ -117,7 +117,7 @@
// //
// // fclose( $stream );
// //
// // $this->assertEqual( 'foobar', $data );
// // $this->assertEquals( 'foobar', $data );
// //
// //
// // $file = OC::$SERVERROOT.'/3rdparty/MDB2.php';
@ -139,15 +139,15 @@
// //
// // $original = file_get_contents( $file );
// //
// // $this->assertEqual( strlen( $original ), strlen( $data ) );
// // $this->assertEquals( strlen( $original ), strlen( $data ) );
// //
// // $this->assertEqual( $original, $data );
// // $this->assertEquals( $original, $data );
// //
// // }
//
// }
//
// // class Test_CryptStream extends UnitTestCase {
// // class Test_CryptStream extends PHPUnit_Framework_TestCase {
// // private $tmpFiles=array();
// //
// // function testStream(){
@ -158,7 +158,7 @@
// // $stream=$this->getStream('test1','r',strlen('foobar'));
// // $data=fread($stream,6);
// // fclose($stream);
// // $this->assertEqual('foobar',$data);
// // $this->assertEquals('foobar',$data);
// //
// // $file=OC::$SERVERROOT.'/3rdparty/MDB2.php';
// // $source=fopen($file,'r');
@ -170,8 +170,8 @@
// // $stream=$this->getStream('test2','r',filesize($file));
// // $data=stream_get_contents($stream);
// // $original=file_get_contents($file);
// // $this->assertEqual(strlen($original),strlen($data));
// // $this->assertEqual($original,$data);
// // $this->assertEquals(strlen($original),strlen($data));
// // $this->assertEquals($original,$data);
// // }
// //
// // /**
@ -207,8 +207,8 @@
// // $stream=$this->getStream('test','r',strlen($source));
// // $data=stream_get_contents($stream);
// // fclose($stream);
// // $this->assertEqual(strlen($data),strlen($source));
// // $this->assertEqual($source,$data);
// // $this->assertEquals(strlen($data),strlen($source));
// // $this->assertEquals($source,$data);
// //
// // $file=__DIR__.'/zeros';
// // $source=file_get_contents($file);
@ -220,7 +220,7 @@
// // $stream=$this->getStream('test2','r',strlen($source));
// // $data=stream_get_contents($stream);
// // fclose($stream);
// // $this->assertEqual(strlen($data),strlen($source));
// // $this->assertEqual($source,$data);
// // $this->assertEquals(strlen($data),strlen($source));
// // $this->assertEquals($source,$data);
// // }
// // }

View File

@ -203,7 +203,7 @@ class Test_Enc_Util extends \PHPUnit_Framework_TestCase {
//
// $decrypted = $c->legacyDecrypt( $encrypted, $c->legacyKey );
//
// $this->assertEqual( $decrypted, $this->data );
// $this->assertEquals( $decrypted, $this->data );
//
// }

View File

@ -32,18 +32,18 @@ class Test_Filestorage_FTP extends Test_FileStorage {
'root' => '/',
'secure' => false );
$instance = new OC_Filestorage_FTP($config);
$this->assertEqual('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
$config['secure'] = true;
$instance = new OC_Filestorage_FTP($config);
$this->assertEqual('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
$config['secure'] = 'false';
$instance = new OC_Filestorage_FTP($config);
$this->assertEqual('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
$this->assertEquals('ftp://ftp:ftp@localhost/', $instance->constructUrl(''));
$config['secure'] = 'true';
$instance = new OC_Filestorage_FTP($config);
$this->assertEqual('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
$this->assertEquals('ftps://ftp:ftp@localhost/', $instance->constructUrl(''));
}
}

View File

@ -0,0 +1,3 @@
<?php $TRANSLATIONS = array(
"Submit" => "Пошаљи"
);

View File

@ -4,5 +4,6 @@
"%s shared the folder %s with you" => "%s 分享了資料夾 %s 給您",
"%s shared the file %s with you" => "%s 分享了檔案 %s 給您",
"Download" => "下載",
"No preview available for" => "無法預覽"
"No preview available for" => "無法預覽",
"web services under your control" => "在您掌控之下的網路服務"
);

View File

@ -1,11 +1,13 @@
<?php $TRANSLATIONS = array(
"<b>Warning:</b> Apps user_ldap and user_webdavauth are incompatible. You may experience unexpected behaviour. Please ask your system administrator to disable one of them." => "<b>Avertissement:</b> Les applications user_ldap et user_webdavauth sont incompatibles. Des disfonctionnements peuvent survenir. Contactez votre administrateur système pour qu'il désactive l'une d'elles.",
"<b>Warning:</b> The PHP LDAP module is not installed, the backend will not work. Please ask your system administrator to install it." => "<b>Attention :</b> Le module php LDAP n'est pas installé, par conséquent cette extension ne pourra fonctionner. Veuillez contacter votre administrateur système afin qu'il l'installe.",
"Host" => "Hôte",
"You can omit the protocol, except you require SSL. Then start with ldaps://" => "Vous pouvez omettre le protocole, sauf si vous avez besoin de SSL. Dans ce cas préfixez avec ldaps://",
"Base DN" => "DN Racine",
"You can specify Base DN for users and groups in the Advanced tab" => "Vous pouvez détailler les DN Racines de vos utilisateurs et groupes dans l'onglet Avancé",
"One Base DN per line" => "Un DN racine par ligne",
"You can specify Base DN for users and groups in the Advanced tab" => "Vous pouvez spécifier les DN Racines de vos utilisateurs et groupes via l'onglet Avancé",
"User DN" => "DN Utilisateur (Autorisé à consulter l'annuaire)",
"The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty." => "Le DN de l'utilisateur client avec lequel la liaison doit se faire, par exemple uid=agent,dc=example,dc=com. Pour l'accès anonyme, laisser le DN et le mot de passe vides.",
"The DN of the client user with which the bind shall be done, e.g. uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password empty." => "DN de l'utilisateur client pour lequel la liaison doit se faire, par exemple uid=agent,dc=example,dc=com. Pour un accès anonyme, laisser le DN et le mot de passe vides.",
"Password" => "Mot de passe",
"For anonymous access, leave DN and Password empty." => "Pour un accès anonyme, laisser le DN Utilisateur et le mot de passe vides.",
"User Login Filter" => "Modèle d'authentification utilisateurs",
@ -19,7 +21,9 @@
"without any placeholder, e.g. \"objectClass=posixGroup\"." => "sans élément de substitution, par exemple \"objectClass=posixGroup\".",
"Port" => "Port",
"Base User Tree" => "DN racine de l'arbre utilisateurs",
"One User Base DN per line" => "Un DN racine utilisateur par ligne",
"Base Group Tree" => "DN racine de l'arbre groupes",
"One Group Base DN per line" => "Un DN racine groupe par ligne",
"Group-Member association" => "Association groupe-membre",
"Use TLS" => "Utiliser TLS",
"Do not use it for SSL connections, it will fail." => "Ne pas utiliser pour les connexions SSL, car cela échouera.",

View File

@ -20,7 +20,7 @@
*
*/
class Test_Group_Ldap extends UnitTestCase {
class Test_Group_Ldap extends PHPUnit_Framework_TestCase {
function setUp() {
OC_Group::clearBackends();
}

View File

@ -1,3 +1,5 @@
<?php $TRANSLATIONS = array(
"URL: http://" => "URL : http://"
"WebDAV Authentication" => "Authentification WebDAV",
"URL: http://" => "URL : http://",
"ownCloud will send the user credentials to this URL. This plugin checks the response and will interpret the HTTP statuscodes 401 and 403 as invalid credentials, and all other responses as valid credentials." => "ownCloud enverra les informations de connexion à cette adresse. Ce module complémentaire analyse le code réponse HTTP et considère tout code différent des codes 401 et 403 comme associé à une authentification correcte."
);

View File

@ -1,3 +1,4 @@
<?php $TRANSLATIONS = array(
"WebDAV URL: http://" => "WebDAV URL: http://"
"WebDAV Authentication" => "WebDAV overenie",
"URL: http://" => "URL: http://"
);

View File

@ -66,6 +66,9 @@ $CONFIG = array(
/* URL of the appstore to use, server should understand OCS */
"appstoreurl" => "http://api.apps.owncloud.com/v1",
/* Enable SMTP class debugging */
"mail_smtpdebug" => false,
/* Mode to use for sending mail, can be sendmail, smtp, qmail or php, see PHPMailer docs */
"mail_smtpmode" => "sendmail",
@ -75,6 +78,13 @@ $CONFIG = array(
/* Port to use for sending mail, depends on mail_smtpmode if this is used */
"mail_smtpport" => 25,
/* SMTP server timeout in seconds for sending mail, depends on mail_smtpmode if this is used */
"mail_smtptimeout" => 10,
/* SMTP connection prefix or sending mail, depends on mail_smtpmode if this is used.
Can be '', ssl or tls */
"mail_smtpsecure" => "",
/* authentication needed to send mail, depends on mail_smtpmode if this is used
* (false = disable authentication)
*/

View File

@ -100,6 +100,27 @@ var OC={
linkTo:function(app,file){
return OC.filePath(app,'',file);
},
/**
* Creates an url for remote use
* @param string $service id
* @return string the url
*
* Returns a url to the given service.
*/
linkToRemoteBase:function(service) {
return OC.webroot + '/remote.php/' + service;
},
/**
* @brief Creates an absolute url for remote use
* @param string $service id
* @param bool $add_slash
* @return string the url
*
* Returns a absolute url to the given service.
*/
linkToRemote:function(service) {
return window.location.protocol + '//' + window.location.host + OC.linkToRemoteBase(service);
},
/**
* get the absolute url for a file in an app
* @param app the id of the app

View File

@ -1,4 +1,6 @@
<?php $TRANSLATIONS = array(
"User %s shared a file with you" => "Корисник %s дели са вама датотеку",
"User %s shared a folder with you" => "Корисник %s дели са вама директоријум",
"Category type not provided." => "Врста категорије није унет.",
"No category to add?" => "Додати још неку категорију?",
"This category already exists: " => "Категорија већ постоји:",
@ -39,6 +41,7 @@
"Share with link" => "Подели линк",
"Password protect" => "Заштићено лозинком",
"Password" => "Лозинка",
"Send" => "Пошаљи",
"Set expiration date" => "Постави датум истека",
"Expiration date" => "Датум истека",
"Share via email:" => "Подели поштом:",
@ -55,6 +58,8 @@
"Password protected" => "Заштићено лозинком",
"Error unsetting expiration date" => "Грешка код поништавања датума истека",
"Error setting expiration date" => "Грешка код постављања датума истека",
"Sending ..." => "Шаљем...",
"Email sent" => "Порука је послата",
"ownCloud password reset" => "Поништавање лозинке за ownCloud",
"Use the following link to reset your password: {link}" => "Овом везом ресетујте своју лозинку: {link}",
"You will receive a link to reset your password via Email." => "Добићете везу за ресетовање лозинке путем е-поште.",
@ -118,5 +123,6 @@
"remember" => "упамти",
"Log in" => "Пријава",
"prev" => "претходно",
"next" => "следеће"
"next" => "следеће",
"Updating ownCloud to version %s, this may take a while." => "Надоградња ownCloud-а на верзију %s, сачекајте тренутак."
);

View File

@ -4,14 +4,14 @@
#
# Translators:
# Martin <fireball@atlas.cz>, 2012.
# Tomáš Chvátal <tomas.chvatal@gmail.com>, 2012.
# Tomáš Chvátal <tomas.chvatal@gmail.com>, 2012-2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 20:21+0000\n"
"Last-Translator: Tomáš Chvátal <tomas.chvatal@gmail.com>\n"
"Language-Team: Czech (Czech Republic) (http://www.transifex.com/projects/p/owncloud/language/cs_CZ/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -23,53 +23,53 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "Prosím přejděte na svého klienta ownCloud a nastavte šifrovací heslo pro dokončení konverze."
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "přepnuto na šifrování na straně klienta"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "Změnit šifrovací heslo na přihlašovací"
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "Zkontrolujte, prosím, své heslo a zkuste to znovu."
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "Nelze změnit šifrovací heslo na přihlašovací."
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "Vyberte režim šifrování:"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "Šifrování na straně klienta (nejbezpečnější ale neumožňuje vám přistupovat k souborům z webového rozhraní)"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "Šifrování na straně serveru (umožňuje vám přistupovat k souborům pomocí webového rozhraní i aplikací)"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "Žádný (vůbec žádné šifrování)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "Důležité: jak si jednou vyberete režim šifrování nelze jej opětovně změnit"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "Definován uživatelem (umožní uživateli si vybrat)"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -4,13 +4,14 @@
#
# Translators:
# Efstathios Iosifidis <diamond_gr@freemail.gr>, 2012.
# Efstathios Iosifidis <iefstathios@gmail.com>, 2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 08:32+0000\n"
"Last-Translator: Efstathios Iosifidis <iefstathios@gmail.com>\n"
"Language-Team: Greek (http://www.transifex.com/projects/p/owncloud/language/el/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -30,19 +31,19 @@ msgstr ""
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "Αλλαγή συνθηματικού κρυπτογράφησης στο συνθηματικό εισόδου "
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "Παρακαλώ ελέγξτε το συνθηματικό σας και προσπαθήστε ξανά."
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "Αδυναμία αλλαγής συνθηματικού κρυπτογράφησης αρχείων στο συνθηματικό εισόδου σας"
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "Επιλογή κατάστασης κρυπτογράφησης:"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""

View File

@ -19,9 +19,9 @@ msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-20 00:05+0100\n"
"PO-Revision-Date: 2013-01-19 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 01:27+0000\n"
"Last-Translator: Romain DEP. <rom1dep@gmail.com>\n"
"Language-Team: French (http://www.transifex.com/projects/p/owncloud/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -161,7 +161,7 @@ msgstr "Nom invalide, les caractères '\\', '/', '<', '>', ':', '\"', '|', '?' e
msgid ""
"Your download is being prepared. This might take some time if the files are "
"big."
msgstr ""
msgstr "Votre téléchargement est cours de préparation. Ceci peut nécessiter un certain temps si les fichiers sont volumineux."
#: js/files.js:242
msgid "Unable to upload your file as it is a directory or has 0 bytes"

View File

@ -3,14 +3,14 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Romain DEP. <rom1dep@gmail.com>, 2012.
# Romain DEP. <rom1dep@gmail.com>, 2012-2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 01:10+0000\n"
"Last-Translator: Romain DEP. <rom1dep@gmail.com>\n"
"Language-Team: French (http://www.transifex.com/projects/p/owncloud/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -22,53 +22,53 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "Veuillez vous connecter depuis votre client de synchronisation ownCloud et changer votre mot de passe de chiffrement pour finaliser la conversion."
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "Mode de chiffrement changé en chiffrement côté client"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "Convertir le mot de passe de chiffrement en mot de passe de connexion"
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "Veuillez vérifier vos mots de passe et réessayer."
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "Impossible de convertir votre mot de passe de chiffrement en mot de passe de connexion"
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "Choix du type de chiffrement :"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "Chiffrement côté client (plus sécurisé, mais ne permet pas l'accès à vos données depuis l'interface web)"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "Chiffrement côté serveur (vous permet d'accéder à vos fichiers depuis l'interface web et depuis le client de synchronisation)"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "Aucun (pas de chiffrement)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "Important : Une fois le mode de chiffrement choisi, il est impossible de revenir en arrière"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "Propre à l'utilisateur (laisse le choix à l'utilisateur)"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -4,14 +4,14 @@
#
# Translators:
# Geoffrey Guerrier <geoffrey.guerrier@gmail.com>, 2012.
# Romain DEP. <rom1dep@gmail.com>, 2012.
# Romain DEP. <rom1dep@gmail.com>, 2012-2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-17 00:26+0100\n"
"PO-Revision-Date: 2013-01-16 23:26+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 01:17+0000\n"
"Last-Translator: Romain DEP. <rom1dep@gmail.com>\n"
"Language-Team: French (http://www.transifex.com/projects/p/owncloud/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -59,9 +59,9 @@ msgstr "Retour aux Fichiers"
msgid "Selected files too large to generate zip file."
msgstr "Les fichiers sélectionnés sont trop volumineux pour être compressés."
#: helper.php:228
#: helper.php:229
msgid "couldn't be determined"
msgstr ""
msgstr "impossible à déterminer"
#: json.php:28
msgid "Application is not enabled"

View File

@ -6,16 +6,16 @@
# Cyril Glapa <kyriog@gmail.com>, 2012.
# <mathieu.payrol@gmail.com>, 2012.
# <mishka.lazzlo@gmail.com>, 2012.
# Romain DEP. <rom1dep@gmail.com>, 2012.
# Romain DEP. <rom1dep@gmail.com>, 2012-2013.
# <windes@tructor.net>, 2012.
# <zrk951@gmail.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-16 00:19+0100\n"
"PO-Revision-Date: 2013-01-15 23:20+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 01:50+0000\n"
"Last-Translator: Romain DEP. <rom1dep@gmail.com>\n"
"Language-Team: French (http://www.transifex.com/projects/p/owncloud/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -34,7 +34,7 @@ msgstr "<b>Avertissement:</b> Les applications user_ldap et user_webdavauth sont
msgid ""
"<b>Warning:</b> The PHP LDAP module is not installed, the backend will not "
"work. Please ask your system administrator to install it."
msgstr ""
msgstr "<b>Attention :</b> Le module php LDAP n'est pas installé, par conséquent cette extension ne pourra fonctionner. Veuillez contacter votre administrateur système afin qu'il l'installe."
#: templates/settings.php:15
msgid "Host"
@ -51,11 +51,11 @@ msgstr "DN Racine"
#: templates/settings.php:16
msgid "One Base DN per line"
msgstr ""
msgstr "Un DN racine par ligne"
#: templates/settings.php:16
msgid "You can specify Base DN for users and groups in the Advanced tab"
msgstr "Vous pouvez détailler les DN Racines de vos utilisateurs et groupes dans l'onglet Avancé"
msgstr "Vous pouvez spécifier les DN Racines de vos utilisateurs et groupes via l'onglet Avancé"
#: templates/settings.php:17
msgid "User DN"
@ -66,7 +66,7 @@ msgid ""
"The DN of the client user with which the bind shall be done, e.g. "
"uid=agent,dc=example,dc=com. For anonymous access, leave DN and Password "
"empty."
msgstr "Le DN de l'utilisateur client avec lequel la liaison doit se faire, par exemple uid=agent,dc=example,dc=com. Pour l'accès anonyme, laisser le DN et le mot de passe vides."
msgstr "DN de l'utilisateur client pour lequel la liaison doit se faire, par exemple uid=agent,dc=example,dc=com. Pour un accès anonyme, laisser le DN et le mot de passe vides."
#: templates/settings.php:18
msgid "Password"
@ -126,7 +126,7 @@ msgstr "DN racine de l'arbre utilisateurs"
#: templates/settings.php:25
msgid "One User Base DN per line"
msgstr ""
msgstr "Un DN racine utilisateur par ligne"
#: templates/settings.php:26
msgid "Base Group Tree"
@ -134,7 +134,7 @@ msgstr "DN racine de l'arbre groupes"
#: templates/settings.php:26
msgid "One Group Base DN per line"
msgstr ""
msgstr "Un DN racine groupe par ligne"
#: templates/settings.php:27
msgid "Group-Member association"

View File

@ -12,9 +12,9 @@ msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-15 00:03+0100\n"
"PO-Revision-Date: 2013-01-14 23:04+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 01:04+0000\n"
"Last-Translator: Romain DEP. <rom1dep@gmail.com>\n"
"Language-Team: French (http://www.transifex.com/projects/p/owncloud/language/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -24,7 +24,7 @@ msgstr ""
#: templates/settings.php:3
msgid "WebDAV Authentication"
msgstr ""
msgstr "Authentification WebDAV"
#: templates/settings.php:4
msgid "URL: http://"
@ -35,4 +35,4 @@ msgid ""
"ownCloud will send the user credentials to this URL. This plugin checks the "
"response and will interpret the HTTP statuscodes 401 and 403 as invalid "
"credentials, and all other responses as valid credentials."
msgstr ""
msgstr "ownCloud enverra les informations de connexion à cette adresse. Ce module complémentaire analyse le code réponse HTTP et considère tout code différent des codes 401 et 403 comme associé à une authentification correcte."

View File

@ -6,15 +6,16 @@
# Adam Toth <adazlord@gmail.com>, 2012.
# <gyonkibendeguz@gmail.com>, 2013.
# <gyonkibendeguz@gmail.com>, 2013.
# Laszlo Tornoci <torlasz@gmail.com>, 2013.
# <mail@tamas-nagy.net>, 2011.
# Peter Borsa <peter.borsa@gmail.com>, 2011.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-20 00:05+0100\n"
"PO-Revision-Date: 2013-01-19 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 21:24+0000\n"
"Last-Translator: Laszlo Tornoci <torlasz@gmail.com>\n"
"Language-Team: Hungarian (Hungary) (http://www.transifex.com/projects/p/owncloud/language/hu_HU/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -154,7 +155,7 @@ msgstr "Érvénytelen elnevezés. Ezek a karakterek nem használhatók: '\\', '/
msgid ""
"Your download is being prepared. This might take some time if the files are "
"big."
msgstr ""
msgstr "Készül a letöltendő állomány. Ez eltarthat egy ideig, ha nagyok a fájlok."
#: js/files.js:242
msgid "Unable to upload your file as it is a directory or has 0 bytes"

View File

@ -3,14 +3,14 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Vincenzo Reale <vinx.reale@gmail.com>, 2012.
# Vincenzo Reale <vinx.reale@gmail.com>, 2012-2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 14:21+0000\n"
"Last-Translator: Vincenzo Reale <vinx.reale@gmail.com>\n"
"Language-Team: Italian (http://www.transifex.com/projects/p/owncloud/language/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -22,11 +22,11 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "Passa al tuo client ownCloud e cambia la password di cifratura per completare la conversione."
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "passato alla cifratura lato client"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
@ -34,7 +34,7 @@ msgstr ""
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "Controlla la password e prova ancora."
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
@ -42,33 +42,33 @@ msgstr ""
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "Scegli la modalità di cifratura."
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "Cifratura lato client (più sicura ma rende impossibile accedere ai propri dati dall'interfaccia web)"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "Cifratura lato server (ti consente di accedere ai tuoi file dall'interfaccia web e dal client desktop)"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "Nessuna (senza alcuna cifratura)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "Importante: una volta selezionata la modalità di cifratura non sarà possibile tornare indietro"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "Specificato dall'utente (lascia decidere all'utente)"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -4,13 +4,14 @@
#
# Translators:
# Daisuke Deguchi <ddeguchi@is.nagoya-u.ac.jp>, 2012.
# Daisuke Deguchi <ddeguchi@nagoya-u.jp>, 2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 03:07+0000\n"
"Last-Translator: Daisuke Deguchi <ddeguchi@nagoya-u.jp>\n"
"Language-Team: Japanese (Japan) (http://www.transifex.com/projects/p/owncloud/language/ja_JP/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -22,53 +23,53 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "変換を完了するために、ownCloud クライアントに切り替えて、暗号化パスワードを変更してください。"
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "クライアントサイドの暗号化に切り替えました"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "暗号化パスワードをログインパスワードに変更"
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "パスワードを確認してもう一度行なってください。"
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "ファイル暗号化パスワードをログインパスワードに変更できませんでした。"
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "暗号化モードを選択:"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "クライアントサイドの暗号化最もセキュアですが、WEBインターフェースからデータにアクセスできなくなります"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "サーバサイド暗号化WEBインターフェースおよびデスクトップクライアントからファイルにアクセスすることができます"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "暗号化無し(何も暗号化しません)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "重要: 一度暗号化を選択してしまうと、もとに戻す方法はありません"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "ユーザ指定(ユーザが選べるようにする)"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -3,14 +3,15 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Daniel Pinto <daniel@mouxy.net>, 2013.
# Duarte Velez Grilo <duartegrilo@gmail.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 01:09+0000\n"
"Last-Translator: Mouxy <daniel@mouxy.net>\n"
"Language-Team: Portuguese (Portugal) (http://www.transifex.com/projects/p/owncloud/language/pt_PT/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -22,53 +23,53 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "Por favor, use o seu cliente de sincronização do ownCloud e altere a sua password de encriptação para concluír a conversão."
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "Alterado para encriptação do lado do cliente"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "Alterar a password de encriptação para a password de login"
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "Por favor verifique as suas paswords e tente de novo."
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "Não foi possível alterar a password de encriptação de ficheiros para a sua password de login"
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "Escolha o método de encriptação"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "Encriptação do lado do cliente (mais seguro mas torna possível o acesso aos dados através do interface web)"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "Encriptação do lado do servidor (permite o acesso aos seus ficheiros através do interface web e do cliente de sincronização)"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "Nenhuma (sem encriptação)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "Importante: Uma vez escolhido o modo de encriptação, não existe maneira de o alterar!"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "Escolhido pelo utilizador"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -4,6 +4,7 @@
#
# Translators:
# <intense.feel@gmail.com>, 2012.
# Marián Hvolka <marian.hvolka@stuba.sk>, 2013.
# <martin.babik@gmail.com>, 2012.
# Roman Priesol <roman@priesol.net>, 2012.
# <zatroch.martin@gmail.com>, 2012.
@ -11,9 +12,9 @@ msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-20 00:05+0100\n"
"PO-Revision-Date: 2013-01-19 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 19:08+0000\n"
"Last-Translator: mhh <marian.hvolka@stuba.sk>\n"
"Language-Team: Slovak (Slovakia) (http://www.transifex.com/projects/p/owncloud/language/sk_SK/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -29,16 +30,16 @@ msgstr "Odoslať"
#: ajax/move.php:17
#, php-format
msgid "Could not move %s - File with this name already exists"
msgstr ""
msgstr "Nie je možné presunúť %s - súbor s týmto menom už existuje"
#: ajax/move.php:24
#, php-format
msgid "Could not move %s"
msgstr ""
msgstr "Nie je možné presunúť %s"
#: ajax/rename.php:19
msgid "Unable to rename file"
msgstr ""
msgstr "Nemožno premenovať súbor"
#: ajax/upload.php:20
msgid "No file was uploaded. Unknown error"
@ -77,11 +78,11 @@ msgstr "Zápis na disk sa nepodaril"
#: ajax/upload.php:57
msgid "Not enough space available"
msgstr ""
msgstr "Nie je k dispozícii dostatok miesta"
#: ajax/upload.php:91
msgid "Invalid directory."
msgstr ""
msgstr "Neplatný adresár"
#: appinfo/app.php:10
msgid "Files"
@ -137,11 +138,11 @@ msgstr "zmazané {files}"
#: js/files.js:48
msgid "'.' is an invalid file name."
msgstr ""
msgstr "'.' je neplatné meno súboru."
#: js/files.js:53
msgid "File name cannot be empty."
msgstr ""
msgstr "Meno súboru nemôže byť prázdne"
#: js/files.js:62
msgid ""
@ -153,7 +154,7 @@ msgstr "Nesprávne meno, '\\', '/', '<', '>', ':', '\"', '|', '?' a '*' nie sú
msgid ""
"Your download is being prepared. This might take some time if the files are "
"big."
msgstr ""
msgstr "Vaše sťahovanie sa pripravuje. Ak sú sťahované súbory veľké, môže to chvíľu trvať."
#: js/files.js:242
msgid "Unable to upload your file as it is a directory or has 0 bytes"
@ -194,7 +195,7 @@ msgstr "URL nemôže byť prázdne"
#: js/files.js:565
msgid "Invalid folder name. Usage of 'Shared' is reserved by Owncloud"
msgstr ""
msgstr "Neplatné meno adresára. Používanie mena 'Shared' je vyhradené len pre Owncloud"
#: js/files.js:775
msgid "{count} files scanned"

View File

@ -4,6 +4,7 @@
#
# Translators:
# <intense.feel@gmail.com>, 2011, 2012.
# Marián Hvolka <marian.hvolka@stuba.sk>, 2013.
# <martin.babik@gmail.com>, 2012.
# Roman Priesol <roman@priesol.net>, 2012.
# <typhoon@zoznam.sk>, 2012.
@ -12,9 +13,9 @@ msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-12 00:09+0100\n"
"PO-Revision-Date: 2013-01-11 23:09+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 18:54+0000\n"
"Last-Translator: mhh <marian.hvolka@stuba.sk>\n"
"Language-Team: Slovak (Slovakia) (http://www.transifex.com/projects/p/owncloud/language/sk_SK/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -118,19 +119,19 @@ msgstr "<span class=\"licence\"></span>-licencované <span class=\"author\"></sp
#: templates/help.php:3
msgid "User Documentation"
msgstr ""
msgstr "Príručka používateľa"
#: templates/help.php:4
msgid "Administrator Documentation"
msgstr ""
msgstr "Príručka správcu"
#: templates/help.php:6
msgid "Online Documentation"
msgstr ""
msgstr "Online príručka"
#: templates/help.php:7
msgid "Forum"
msgstr ""
msgstr "Fórum"
#: templates/help.php:9
msgid "Bugtracker"
@ -138,7 +139,7 @@ msgstr ""
#: templates/help.php:11
msgid "Commercial Support"
msgstr ""
msgstr "Komerčná podpora"
#: templates/personal.php:8
#, php-format
@ -151,15 +152,15 @@ msgstr "Klienti"
#: templates/personal.php:13
msgid "Download Desktop Clients"
msgstr ""
msgstr "Stiahnuť desktopového klienta"
#: templates/personal.php:14
msgid "Download Android Client"
msgstr ""
msgstr "Stiahnuť Android klienta"
#: templates/personal.php:15
msgid "Download iOS Client"
msgstr ""
msgstr "Stiahnuť iOS klienta"
#: templates/personal.php:21 templates/users.php:23 templates/users.php:82
msgid "Password"
@ -211,15 +212,15 @@ msgstr "Pomôcť s prekladom"
#: templates/personal.php:52
msgid "WebDAV"
msgstr ""
msgstr "WebDAV"
#: templates/personal.php:54
msgid "Use this address to connect to your ownCloud in your file manager"
msgstr ""
msgstr "Použite túto adresu pre pripojenie vášho ownCloud k súborovému správcovi"
#: templates/personal.php:63
msgid "Version"
msgstr ""
msgstr "Verzia"
#: templates/personal.php:65
msgid ""
@ -245,11 +246,11 @@ msgstr "Vytvoriť"
#: templates/users.php:35
msgid "Default Storage"
msgstr ""
msgstr "Predvolené úložisko"
#: templates/users.php:42 templates/users.php:138
msgid "Unlimited"
msgstr ""
msgstr "Nelimitované"
#: templates/users.php:60 templates/users.php:153
msgid "Other"
@ -261,11 +262,11 @@ msgstr "Správca skupiny"
#: templates/users.php:87
msgid "Storage"
msgstr ""
msgstr "Úložisko"
#: templates/users.php:133
msgid "Default"
msgstr ""
msgstr "Predvolené"
#: templates/users.php:161
msgid "Delete"

View File

@ -3,14 +3,15 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Marián Hvolka <marian.hvolka@stuba.sk>, 2013.
# <zatroch.martin@gmail.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-15 00:03+0100\n"
"PO-Revision-Date: 2013-01-14 23:04+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 19:09+0000\n"
"Last-Translator: mhh <marian.hvolka@stuba.sk>\n"
"Language-Team: Slovak (Slovakia) (http://www.transifex.com/projects/p/owncloud/language/sk_SK/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -20,11 +21,11 @@ msgstr ""
#: templates/settings.php:3
msgid "WebDAV Authentication"
msgstr ""
msgstr "WebDAV overenie"
#: templates/settings.php:4
msgid "URL: http://"
msgstr ""
msgstr "URL: http://"
#: templates/settings.php:6
msgid ""

View File

@ -3,16 +3,16 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Ivan Petrović <ivan@ipplusstudio.com>, 2012.
# Ivan Petrović <ivan@ipplusstudio.com>, 2012-2013.
# <marko@evizo.com>, 2012.
# Slobodan Terzić <githzerai06@gmail.com>, 2011, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-15 00:03+0100\n"
"PO-Revision-Date: 2013-01-14 23:03+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 08:26+0000\n"
"Last-Translator: Ivan Petrović <ivan@ipplusstudio.com>\n"
"Language-Team: Serbian (http://www.transifex.com/projects/p/owncloud/language/sr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -23,12 +23,12 @@ msgstr ""
#: ajax/share.php:84
#, php-format
msgid "User %s shared a file with you"
msgstr ""
msgstr "Корисник %s дели са вама датотеку"
#: ajax/share.php:86
#, php-format
msgid "User %s shared a folder with you"
msgstr ""
msgstr "Корисник %s дели са вама директоријум"
#: ajax/share.php:88
#, php-format
@ -86,55 +86,55 @@ msgstr "Грешка приликом уклањања %s из омиљених"
msgid "Settings"
msgstr "Подешавања"
#: js/js.js:711
#: js/js.js:706
msgid "seconds ago"
msgstr "пре неколико секунди"
#: js/js.js:712
#: js/js.js:707
msgid "1 minute ago"
msgstr "пре 1 минут"
#: js/js.js:713
#: js/js.js:708
msgid "{minutes} minutes ago"
msgstr "пре {minutes} минута"
#: js/js.js:714
#: js/js.js:709
msgid "1 hour ago"
msgstr "Пре једног сата"
#: js/js.js:715
#: js/js.js:710
msgid "{hours} hours ago"
msgstr "Пре {hours} сата (сати)"
#: js/js.js:716
#: js/js.js:711
msgid "today"
msgstr "данас"
#: js/js.js:717
#: js/js.js:712
msgid "yesterday"
msgstr "јуче"
#: js/js.js:718
#: js/js.js:713
msgid "{days} days ago"
msgstr "пре {days} дана"
#: js/js.js:719
#: js/js.js:714
msgid "last month"
msgstr "прошлог месеца"
#: js/js.js:720
#: js/js.js:715
msgid "{months} months ago"
msgstr "Пре {months} месеца (месеци)"
#: js/js.js:721
#: js/js.js:716
msgid "months ago"
msgstr "месеци раније"
#: js/js.js:722
#: js/js.js:717
msgid "last year"
msgstr "прошле године"
#: js/js.js:723
#: js/js.js:718
msgid "years ago"
msgstr "година раније"
@ -219,7 +219,7 @@ msgstr ""
#: js/share.js:173
msgid "Send"
msgstr ""
msgstr "Пошаљи"
#: js/share.js:177
msgid "Set expiration date"
@ -287,11 +287,11 @@ msgstr "Грешка код постављања датума истека"
#: js/share.js:581
msgid "Sending ..."
msgstr ""
msgstr "Шаљем..."
#: js/share.js:592
msgid "Email sent"
msgstr ""
msgstr "Порука је послата"
#: lostpassword/controller.php:47
msgid "ownCloud password reset"
@ -444,83 +444,83 @@ msgstr "Домаћин базе"
msgid "Finish setup"
msgstr "Заврши подешавање"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Sunday"
msgstr "Недеља"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Monday"
msgstr "Понедељак"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Tuesday"
msgstr "Уторак"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Wednesday"
msgstr "Среда"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Thursday"
msgstr "Четвртак"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Friday"
msgstr "Петак"
#: templates/layout.guest.php:16 templates/layout.user.php:17
#: templates/layout.guest.php:15 templates/layout.user.php:17
msgid "Saturday"
msgstr "Субота"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "January"
msgstr "Јануар"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "February"
msgstr "Фебруар"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "March"
msgstr "Март"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "April"
msgstr "Април"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "May"
msgstr "Мај"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "June"
msgstr "Јун"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "July"
msgstr "Јул"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "August"
msgstr "Август"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "September"
msgstr "Септембар"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "October"
msgstr "Октобар"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "November"
msgstr "Новембар"
#: templates/layout.guest.php:17 templates/layout.user.php:18
#: templates/layout.guest.php:16 templates/layout.user.php:18
msgid "December"
msgstr "Децембар"
#: templates/layout.guest.php:42
#: templates/layout.guest.php:41
msgid "web services under your control"
msgstr "веб сервиси под контролом"
@ -565,4 +565,4 @@ msgstr "следеће"
#: templates/update.php:3
#, php-format
msgid "Updating ownCloud to version %s, this may take a while."
msgstr ""
msgstr "Надоградња ownCloud-а на верзију %s, сачекајте тренутак."

View File

@ -7,9 +7,9 @@ msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2012-09-22 01:14+0200\n"
"PO-Revision-Date: 2012-09-21 23:15+0000\n"
"Last-Translator: I Robot <thomas.mueller@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 08:30+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"Language-Team: Serbian (http://www.transifex.com/projects/p/owncloud/language/sr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -23,26 +23,26 @@ msgstr ""
#: templates/authenticate.php:6
msgid "Submit"
msgstr ""
msgstr "Пошаљи"
#: templates/public.php:9
#: templates/public.php:17
#, php-format
msgid "%s shared the folder %s with you"
msgstr ""
#: templates/public.php:11
#: templates/public.php:19
#, php-format
msgid "%s shared the file %s with you"
msgstr ""
#: templates/public.php:14 templates/public.php:30
#: templates/public.php:22 templates/public.php:38
msgid "Download"
msgstr ""
#: templates/public.php:29
#: templates/public.php:37
msgid "No preview available for"
msgstr ""
#: templates/public.php:37
#: templates/public.php:43
msgid "web services under your control"
msgstr ""

View File

@ -3,15 +3,15 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Ivan Petrović <ivan@ipplusstudio.com>, 2012.
# Ivan Petrović <ivan@ipplusstudio.com>, 2012-2013.
# <theranchcowboy@gmail.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-17 00:26+0100\n"
"PO-Revision-Date: 2013-01-16 23:26+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 08:24+0000\n"
"Last-Translator: Ivan Petrović <ivan@ipplusstudio.com>\n"
"Language-Team: Serbian (http://www.transifex.com/projects/p/owncloud/language/sr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -59,9 +59,9 @@ msgstr "Назад на датотеке"
msgid "Selected files too large to generate zip file."
msgstr "Изабране датотеке су превелике да бисте направили ZIP датотеку."
#: helper.php:228
#: helper.php:229
msgid "couldn't be determined"
msgstr ""
msgstr "није одређено"
#: json.php:28
msgid "Application is not enabled"

View File

@ -3,14 +3,14 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Magnus Höglund <magnus@linux.com>, 2012.
# Magnus Höglund <magnus@linux.com>, 2012-2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 20:45+0000\n"
"Last-Translator: Magnus Höglund <magnus@linux.com>\n"
"Language-Team: Swedish (http://www.transifex.com/projects/p/owncloud/language/sv/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -22,53 +22,53 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "Vänligen växla till ownCloud klienten och ändra ditt krypteringslösenord för att slutföra omvandlingen."
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "Bytte till kryptering på klientsidan"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "Ändra krypteringslösenord till loginlösenord"
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "Kontrollera dina lösenord och försök igen."
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "Kunde inte ändra ditt filkrypteringslösenord till ditt loginlösenord"
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "Välj krypteringsläge:"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "Kryptering på klientsidan (säkraste men gör det omöjligt att komma åt dina filer med en webbläsare)"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "Kryptering på serversidan (kan komma åt dina filer från webbläsare och datorklient)"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "Ingen (ingen kryptering alls)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "Viktigt: När du har valt ett krypteringsläge finns det inget sätt att ändra tillbaka"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "Användarspecifik (låter användaren bestämma)"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -3,14 +3,14 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# AriesAnywhere Anywhere <ariesanywhere@gmail.com>, 2012.
# AriesAnywhere Anywhere <ariesanywhere@gmail.com>, 2012-2013.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-23 00:05+0100\n"
"PO-Revision-Date: 2013-01-22 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 15:03+0000\n"
"Last-Translator: AriesAnywhere Anywhere <ariesanywhere@gmail.com>\n"
"Language-Team: Thai (Thailand) (http://www.transifex.com/projects/p/owncloud/language/th_TH/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -22,53 +22,53 @@ msgstr ""
msgid ""
"Please switch to your ownCloud client and change your encryption password to"
" complete the conversion."
msgstr ""
msgstr "กรุณาสลับไปที่โปรแกรมไคลเอนต์ ownCloud ของคุณ แล้วเปลี่ยนรหัสผ่านสำหรับการเข้ารหัสเพื่อแปลงข้อมูลให้เสร็จสมบูรณ์"
#: js/settings-personal.js:17
msgid "switched to client side encryption"
msgstr ""
msgstr "สลับไปใช้การเข้ารหัสจากโปรแกรมไคลเอนต์"
#: js/settings-personal.js:21
msgid "Change encryption password to login password"
msgstr ""
msgstr "เปลี่ยนรหัสผ่านสำหรับเข้ารหัสไปเป็นรหัสผ่านสำหรับการเข้าสู่ระบบ"
#: js/settings-personal.js:25
msgid "Please check your passwords and try again."
msgstr ""
msgstr "กรุณาตรวจสอบรหัสผ่านของคุณแล้วลองใหม่อีกครั้ง"
#: js/settings-personal.js:25
msgid "Could not change your file encryption password to your login password"
msgstr ""
msgstr "ไม่สามารถเปลี่ยนรหัสผ่านสำหรับการเข้ารหัสไฟล์ของคุณไปเป็นรหัสผ่านสำหรับการเข้าสู่ระบบของคุณได้"
#: templates/settings-personal.php:3 templates/settings.php:5
msgid "Choose encryption mode:"
msgstr ""
msgstr "เลือกรูปแบบการเข้ารหัส:"
#: templates/settings-personal.php:20 templates/settings.php:24
msgid ""
"Client side encryption (most secure but makes it impossible to access your "
"data from the web interface)"
msgstr ""
msgstr "การเข้ารหัสด้วยโปรแกรมไคลเอนต์ (ปลอดภัยที่สุด แต่จะทำให้คุณไม่สามารถเข้าถึงข้อมูลต่างๆจากหน้าจอเว็บไซต์ได้)"
#: templates/settings-personal.php:30 templates/settings.php:36
msgid ""
"Server side encryption (allows you to access your files from the web "
"interface and the desktop client)"
msgstr ""
msgstr "การเข้ารหัสจากทางฝั่งเซิร์ฟเวอร์ (อนุญาตให้คุณเข้าถึงไฟล์ของคุณจากหน้าจอเว็บไซต์ และโปรแกรมไคลเอนต์จากเครื่องเดสก์ท็อปได้)"
#: templates/settings-personal.php:41 templates/settings.php:60
msgid "None (no encryption at all)"
msgstr ""
msgstr "ไม่ต้อง (ไม่มีการเข้ารหัสเลย)"
#: templates/settings.php:10
msgid ""
"Important: Once you selected an encryption mode there is no way to change it"
" back"
msgstr ""
msgstr "ข้อความสำคัญ: หลังจากที่คุณได้เลือกรูปแบบการเข้ารหัสแล้ว จะไม่สามารถเปลี่ยนกลับมาใหม่ได้อีก"
#: templates/settings.php:48
msgid "User specific (let the user decide)"
msgstr ""
msgstr "ให้ผู้ใช้งานเลือกเอง (ปล่อยให้ผู้ใช้งานตัดสินใจเอง)"
#: templates/settings.php:65
msgid "Encryption"

View File

@ -7,14 +7,15 @@
# <dw4dev@gmail.com>, 2012.
# Eddy Chang <taiwanmambo@gmail.com>, 2012.
# <nfsmwlin@gmail.com>, 2013.
# Pellaeon Lin <nfsmwlin@gmail.com>, 2013.
# ywang <ywang1007@gmail.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-20 00:05+0100\n"
"PO-Revision-Date: 2013-01-19 23:05+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 10:05+0000\n"
"Last-Translator: pellaeon <nfsmwlin@gmail.com>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/owncloud/language/zh_TW/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -154,7 +155,7 @@ msgstr "檔名不合法,不允許 '\\', '/', '<', '>', ':', '\"', '|', '?' 和
msgid ""
"Your download is being prepared. This might take some time if the files are "
"big."
msgstr ""
msgstr "正在準備您的下載,若您的檔案較大,將會需要更多時間。"
#: js/files.js:242
msgid "Unable to upload your file as it is a directory or has 0 bytes"

View File

@ -4,14 +4,15 @@
#
# Translators:
# <dw4dev@gmail.com>, 2012.
# Pellaeon Lin <nfsmwlin@gmail.com>, 2013.
# <wu0809@msn.com>, 2012.
msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2012-11-28 00:10+0100\n"
"PO-Revision-Date: 2012-11-27 14:28+0000\n"
"Last-Translator: dw4dev <dw4dev@gmail.com>\n"
"POT-Creation-Date: 2013-01-25 00:05+0100\n"
"PO-Revision-Date: 2013-01-24 13:15+0000\n"
"Last-Translator: pellaeon <nfsmwlin@gmail.com>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/owncloud/language/zh_TW/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -47,4 +48,4 @@ msgstr "無法預覽"
#: templates/public.php:43
msgid "web services under your control"
msgstr ""
msgstr "在您掌控之下的網路服務"

View File

@ -3,6 +3,7 @@
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# Pellaeon Lin <nfsmwlin@gmail.com>, 2013.
# <sofia168@livemail.tw>, 2012.
# <ywang1007+transifex@gmail.com>, 2012.
# ywang <ywang1007@gmail.com>, 2012.
@ -10,9 +11,9 @@ msgid ""
msgstr ""
"Project-Id-Version: ownCloud\n"
"Report-Msgid-Bugs-To: http://bugs.owncloud.org/\n"
"POT-Creation-Date: 2013-01-17 00:26+0100\n"
"PO-Revision-Date: 2013-01-16 23:26+0000\n"
"Last-Translator: I Robot <owncloud-bot@tmit.eu>\n"
"POT-Creation-Date: 2013-01-24 00:06+0100\n"
"PO-Revision-Date: 2013-01-23 10:07+0000\n"
"Last-Translator: pellaeon <nfsmwlin@gmail.com>\n"
"Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/owncloud/language/zh_TW/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -60,9 +61,9 @@ msgstr "回到檔案列表"
msgid "Selected files too large to generate zip file."
msgstr "選擇的檔案太大以致於無法產生壓縮檔"
#: helper.php:228
#: helper.php:229
msgid "couldn't be determined"
msgstr ""
msgstr "無法判斷"
#: json.php:28
msgid "Application is not enabled"
@ -74,7 +75,7 @@ msgstr "認證錯誤"
#: json.php:51
msgid "Token expired. Please reload page."
msgstr "Token 過期. 請重新整理頁面"
msgstr "Token 過期,請重新整理頁面。"
#: search/provider/file.php:17 search/provider/file.php:35
msgid "Files"
@ -103,12 +104,12 @@ msgstr "%d 分鐘前"
#: template.php:116
msgid "1 hour ago"
msgstr "1小時之前"
msgstr "1 小時之前"
#: template.php:117
#, php-format
msgid "%d hours ago"
msgstr "%d小時之前"
msgstr "%d 小時之前"
#: template.php:118
msgid "today"
@ -130,7 +131,7 @@ msgstr "上個月"
#: template.php:122
#, php-format
msgid "%d months ago"
msgstr "%d個月之前"
msgstr "%d 個月之前"
#: template.php:123
msgid "last year"
@ -143,7 +144,7 @@ msgstr "幾年前"
#: updater.php:75
#, php-format
msgid "%s is available. Get <a href=\"%s\">more information</a>"
msgstr "%s 已經可用. 取得 <a href=\"%s\">更多資訊</a>"
msgstr "%s 已經可用取得 <a href=\"%s\">更多資訊</a>"
#: updater.php:77
msgid "up to date"
@ -156,4 +157,4 @@ msgstr "檢查更新已停用"
#: vcategories.php:188 vcategories.php:249
#, php-format
msgid "Could not find category \"%s\""
msgstr "找不到分類-\"%s\""
msgstr "找不到分類\"%s\""

View File

@ -90,6 +90,9 @@ class OC_API {
if(self::isAuthorised(self::$actions[$name])) {
if(is_callable(self::$actions[$name]['action'])) {
$response = call_user_func(self::$actions[$name]['action'], $parameters);
if(!($response instanceof OC_OCS_Result)) {
$response = new OC_OCS_Result(null, 996, 'Internal Server Error');
}
} else {
$response = new OC_OCS_Result(null, 998, 'Api method not found');
}

View File

@ -9,6 +9,7 @@
"Files need to be downloaded one by one." => "Les fichiers nécessitent d'être téléchargés un par un.",
"Back to Files" => "Retour aux Fichiers",
"Selected files too large to generate zip file." => "Les fichiers sélectionnés sont trop volumineux pour être compressés.",
"couldn't be determined" => "impossible à déterminer",
"Application is not enabled" => "L'application n'est pas activée",
"Authentication error" => "Erreur d'authentification",
"Token expired. Please reload page." => "La session a expiré. Veuillez recharger la page.",

View File

@ -9,6 +9,7 @@
"Files need to be downloaded one by one." => "Датотеке морате преузимати једну по једну.",
"Back to Files" => "Назад на датотеке",
"Selected files too large to generate zip file." => "Изабране датотеке су превелике да бисте направили ZIP датотеку.",
"couldn't be determined" => "није одређено",
"Application is not enabled" => "Апликација није омогућена",
"Authentication error" => "Грешка при провери идентитета",
"Token expired. Please reload page." => "Жетон је истекао. Поново учитајте страницу.",

View File

@ -9,26 +9,27 @@
"Files need to be downloaded one by one." => "檔案需要逐一下載",
"Back to Files" => "回到檔案列表",
"Selected files too large to generate zip file." => "選擇的檔案太大以致於無法產生壓縮檔",
"couldn't be determined" => "無法判斷",
"Application is not enabled" => "應用程式未啟用",
"Authentication error" => "認證錯誤",
"Token expired. Please reload page." => "Token 過期. 請重新整理頁面",
"Token expired. Please reload page." => "Token 過期,請重新整理頁面。",
"Files" => "檔案",
"Text" => "文字",
"Images" => "圖片",
"seconds ago" => "幾秒前",
"1 minute ago" => "1 分鐘前",
"%d minutes ago" => "%d 分鐘前",
"1 hour ago" => "1小時之前",
"%d hours ago" => "%d小時之前",
"1 hour ago" => "1 小時之前",
"%d hours ago" => "%d 小時之前",
"today" => "今天",
"yesterday" => "昨天",
"%d days ago" => "%d 天前",
"last month" => "上個月",
"%d months ago" => "%d個月之前",
"%d months ago" => "%d 個月之前",
"last year" => "去年",
"years ago" => "幾年前",
"%s is available. Get <a href=\"%s\">more information</a>" => "%s 已經可用. 取得 <a href=\"%s\">更多資訊</a>",
"%s is available. Get <a href=\"%s\">more information</a>" => "%s 已經可用取得 <a href=\"%s\">更多資訊</a>",
"up to date" => "最新的",
"updates check is disabled" => "檢查更新已停用",
"Could not find category \"%s\"" => "找不到分類-\"%s\""
"Could not find category \"%s\"" => "找不到分類\"%s\""
);

View File

@ -40,6 +40,9 @@ class OC_Mail {
$SMTPAUTH = OC_Config::getValue( 'mail_smtpauth', false );
$SMTPUSERNAME = OC_Config::getValue( 'mail_smtpname', '' );
$SMTPPASSWORD = OC_Config::getValue( 'mail_smtppassword', '' );
$SMTPDEBUG = OC_Config::getValue( 'mail_smtpdebug', false );
$SMTPTIMEOUT = OC_Config::getValue( 'mail_smtptimeout', 10 );
$SMTPSECURE = OC_Config::getValue( 'mail_smtpsecure', '' );
$mailo = new PHPMailer(true);
@ -57,12 +60,15 @@ class OC_Mail {
$mailo->Host = $SMTPHOST;
$mailo->Port = $SMTPPORT;
$mailo->SMTPAuth = $SMTPAUTH;
$mailo->SMTPDebug = $SMTPDEBUG;
$mailo->SMTPSecure = $SMTPSECURE;
$mailo->Username = $SMTPUSERNAME;
$mailo->Password = $SMTPPASSWORD;
$mailo->Timeout = $SMTPTIMEOUT;
$mailo->From =$fromaddress;
$mailo->From = $fromaddress;
$mailo->FromName = $fromname;;
$mailo->Sender =$fromaddress;
$mailo->Sender = $fromaddress;
$a=explode(' ', $toaddress);
try {
foreach($a as $ad) {

View File

@ -22,8 +22,16 @@
"Select an App" => "Vyberte aplikáciu",
"See application page at apps.owncloud.com" => "Pozrite si stránku aplikácií na apps.owncloud.com",
"<span class=\"licence\"></span>-licensed by <span class=\"author\"></span>" => "<span class=\"licence\"></span>-licencované <span class=\"author\"></span>",
"User Documentation" => "Príručka používateľa",
"Administrator Documentation" => "Príručka správcu",
"Online Documentation" => "Online príručka",
"Forum" => "Fórum",
"Commercial Support" => "Komerčná podpora",
"You have used <strong>%s</strong> of the available <strong>%s</strong>" => "Použili ste <strong>%s</strong> z <strong>%s</strong> dostupných ",
"Clients" => "Klienti",
"Download Desktop Clients" => "Stiahnuť desktopového klienta",
"Download Android Client" => "Stiahnuť Android klienta",
"Download iOS Client" => "Stiahnuť iOS klienta",
"Password" => "Heslo",
"Your password was changed" => "Heslo bolo zmenené",
"Unable to change your password" => "Nie je možné zmeniť vaše heslo",
@ -36,11 +44,18 @@
"Fill in an email address to enable password recovery" => "Vyplňte emailovú adresu pre aktivovanie obnovy hesla",
"Language" => "Jazyk",
"Help translate" => "Pomôcť s prekladom",
"WebDAV" => "WebDAV",
"Use this address to connect to your ownCloud in your file manager" => "Použite túto adresu pre pripojenie vášho ownCloud k súborovému správcovi",
"Version" => "Verzia",
"Developed by the <a href=\"http://ownCloud.org/contact\" target=\"_blank\">ownCloud community</a>, the <a href=\"https://github.com/owncloud\" target=\"_blank\">source code</a> is licensed under the <a href=\"http://www.gnu.org/licenses/agpl-3.0.html\" target=\"_blank\"><abbr title=\"Affero General Public License\">AGPL</abbr></a>." => "Vyvinuté <a href=\"http://ownCloud.org/contact\" target=\"_blank\">komunitou ownCloud</a>,<a href=\"https://github.com/owncloud\" target=\"_blank\">zdrojový kód</a> je licencovaný pod <a href=\"http://www.gnu.org/licenses/agpl-3.0.html\" target=\"_blank\"><abbr title=\"Affero General Public License\">AGPL</abbr></a>.",
"Name" => "Meno",
"Groups" => "Skupiny",
"Create" => "Vytvoriť",
"Default Storage" => "Predvolené úložisko",
"Unlimited" => "Nelimitované",
"Other" => "Iné",
"Group Admin" => "Správca skupiny",
"Storage" => "Úložisko",
"Default" => "Predvolené",
"Delete" => "Odstrániť"
);

View File

@ -8,24 +8,5 @@ if(!class_exists('PHPUnit_Framework_TestCase')) {
require_once('PHPUnit/Autoload.php');
}
//SimpleTest compatibility
abstract class UnitTestCase extends PHPUnit_Framework_TestCase{
function assertEqual($expected, $actual, $string='') {
$this->assertEquals($expected, $actual, $string);
}
function assertNotEqual($expected, $actual, $string='') {
$this->assertNotEquals($expected, $actual, $string);
}
static function assertTrue($actual, $string='') {
parent::assertTrue((bool)$actual, $string);
}
static function assertFalse($actual, $string='') {
parent::assertFalse((bool)$actual, $string);
}
}
OC_Hook::clear();
OC_Log::$enabled = false;

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
abstract class Test_Archive extends UnitTestCase {
abstract class Test_Archive extends PHPUnit_Framework_TestCase {
/**
* @var OC_Archive
*/
@ -27,7 +27,7 @@ abstract class Test_Archive extends UnitTestCase {
$this->instance=$this->getExisting();
$allFiles=$this->instance->getFiles();
$expected=array('lorem.txt','logo-wide.png','dir/', 'dir/lorem.txt');
$this->assertEqual(4, count($allFiles), 'only found '.count($allFiles).' out of 4 expected files');
$this->assertEquals(4, count($allFiles), 'only found '.count($allFiles).' out of 4 expected files');
foreach($expected as $file) {
$this->assertContains($file, $allFiles, 'cant find '. $file . ' in archive');
$this->assertTrue($this->instance->fileExists($file), 'file '.$file.' does not exist in archive');
@ -36,14 +36,14 @@ abstract class Test_Archive extends UnitTestCase {
$rootContent=$this->instance->getFolder('');
$expected=array('lorem.txt','logo-wide.png', 'dir/');
$this->assertEqual(3, count($rootContent));
$this->assertEquals(3, count($rootContent));
foreach($expected as $file) {
$this->assertContains($file, $rootContent, 'cant find '. $file . ' in archive');
}
$dirContent=$this->instance->getFolder('dir/');
$expected=array('lorem.txt');
$this->assertEqual(1, count($dirContent));
$this->assertEquals(1, count($dirContent));
foreach($expected as $file) {
$this->assertContains($file, $dirContent, 'cant find '. $file . ' in archive');
}
@ -53,36 +53,36 @@ abstract class Test_Archive extends UnitTestCase {
$this->instance=$this->getExisting();
$dir=OC::$SERVERROOT.'/tests/data';
$textFile=$dir.'/lorem.txt';
$this->assertEqual(file_get_contents($textFile), $this->instance->getFile('lorem.txt'));
$this->assertEquals(file_get_contents($textFile), $this->instance->getFile('lorem.txt'));
$tmpFile=OCP\Files::tmpFile('.txt');
$this->instance->extractFile('lorem.txt', $tmpFile);
$this->assertEqual(file_get_contents($textFile), file_get_contents($tmpFile));
$this->assertEquals(file_get_contents($textFile), file_get_contents($tmpFile));
}
public function testWrite() {
$dir=OC::$SERVERROOT.'/tests/data';
$textFile=$dir.'/lorem.txt';
$this->instance=$this->getNew();
$this->assertEqual(0, count($this->instance->getFiles()));
$this->assertEquals(0, count($this->instance->getFiles()));
$this->instance->addFile('lorem.txt', $textFile);
$this->assertEqual(1, count($this->instance->getFiles()));
$this->assertEquals(1, count($this->instance->getFiles()));
$this->assertTrue($this->instance->fileExists('lorem.txt'));
$this->assertFalse($this->instance->fileExists('lorem.txt/'));
$this->assertEqual(file_get_contents($textFile), $this->instance->getFile('lorem.txt'));
$this->assertEquals(file_get_contents($textFile), $this->instance->getFile('lorem.txt'));
$this->instance->addFile('lorem.txt', 'foobar');
$this->assertEqual('foobar', $this->instance->getFile('lorem.txt'));
$this->assertEquals('foobar', $this->instance->getFile('lorem.txt'));
}
public function testReadStream() {
$dir=OC::$SERVERROOT.'/tests/data';
$this->instance=$this->getExisting();
$fh=$this->instance->getStream('lorem.txt', 'r');
$this->assertTrue($fh);
$this->assertTrue((bool)$fh);
$content=fread($fh, $this->instance->filesize('lorem.txt'));
fclose($fh);
$this->assertEqual(file_get_contents($dir.'/lorem.txt'), $content);
$this->assertEquals(file_get_contents($dir.'/lorem.txt'), $content);
}
public function testWriteStream() {
$dir=OC::$SERVERROOT.'/tests/data';
@ -93,7 +93,7 @@ abstract class Test_Archive extends UnitTestCase {
fclose($source);
fclose($fh);
$this->assertTrue($this->instance->fileExists('lorem.txt'));
$this->assertEqual(file_get_contents($dir.'/lorem.txt'), $this->instance->getFile('lorem.txt'));
$this->assertEquals(file_get_contents($dir.'/lorem.txt'), $this->instance->getFile('lorem.txt'));
}
public function testFolder() {
$this->instance=$this->getNew();
@ -111,10 +111,10 @@ abstract class Test_Archive extends UnitTestCase {
$this->instance=$this->getExisting();
$tmpDir=OCP\Files::tmpFolder();
$this->instance->extract($tmpDir);
$this->assertEqual(true, file_exists($tmpDir.'lorem.txt'));
$this->assertEqual(true, file_exists($tmpDir.'dir/lorem.txt'));
$this->assertEqual(true, file_exists($tmpDir.'logo-wide.png'));
$this->assertEqual(file_get_contents($dir.'/lorem.txt'), file_get_contents($tmpDir.'lorem.txt'));
$this->assertEquals(true, file_exists($tmpDir.'lorem.txt'));
$this->assertEquals(true, file_exists($tmpDir.'dir/lorem.txt'));
$this->assertEquals(true, file_exists($tmpDir.'logo-wide.png'));
$this->assertEquals(file_get_contents($dir.'/lorem.txt'), file_get_contents($tmpDir.'lorem.txt'));
OCP\Files::rmdirr($tmpDir);
}
public function testMoveRemove() {
@ -126,7 +126,7 @@ abstract class Test_Archive extends UnitTestCase {
$this->instance->rename('lorem.txt', 'target.txt');
$this->assertTrue($this->instance->fileExists('target.txt'));
$this->assertFalse($this->instance->fileExists('lorem.txt'));
$this->assertEqual(file_get_contents($textFile), $this->instance->getFile('target.txt'));
$this->assertEquals(file_get_contents($textFile), $this->instance->getFile('target.txt'));
$this->instance->remove('target.txt');
$this->assertFalse($this->instance->fileExists('target.txt'));
}

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
abstract class Test_Cache extends UnitTestCase {
abstract class Test_Cache extends PHPUnit_Framework_TestCase {
/**
* @var OC_Cache cache;
*/
@ -26,19 +26,19 @@ abstract class Test_Cache extends UnitTestCase {
$this->instance->set('value1', $value);
$this->assertTrue($this->instance->hasKey('value1'));
$received=$this->instance->get('value1');
$this->assertEqual($value, $received, 'Value recieved from cache not equal to the original');
$this->assertEquals($value, $received, 'Value recieved from cache not equal to the original');
$value='ipsum lorum';
$this->instance->set('value1', $value);
$received=$this->instance->get('value1');
$this->assertEqual($value, $received, 'Value not overwritten by second set');
$this->assertEquals($value, $received, 'Value not overwritten by second set');
$value2='foobar';
$this->instance->set('value2', $value2);
$received2=$this->instance->get('value2');
$this->assertTrue($this->instance->hasKey('value1'));
$this->assertTrue($this->instance->hasKey('value2'));
$this->assertEqual($value, $received, 'Value changed while setting other variable');
$this->assertEqual($value2, $received2, 'Second value not equal to original');
$this->assertEquals($value, $received, 'Value changed while setting other variable');
$this->assertEquals($value2, $received2, 'Second value not equal to original');
$this->assertFalse($this->instance->hasKey('not_set'));
$this->assertNull($this->instance->get('not_set'), 'Unset value not equal to null');

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
class Test_DB extends UnitTestCase {
class Test_DB extends PHPUnit_Framework_TestCase {
protected $backupGlobals = FALSE;
protected static $schema_file = 'static://test_db_scheme';
@ -35,18 +35,18 @@ class Test_DB extends UnitTestCase {
public function testQuotes() {
$query = OC_DB::prepare('SELECT `fullname` FROM *PREFIX*'.$this->table2.' WHERE `uri` = ?');
$result = $query->execute(array('uri_1'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$row = $result->fetchRow();
$this->assertFalse($row);
$query = OC_DB::prepare('INSERT INTO *PREFIX*'.$this->table2.' (`fullname`,`uri`) VALUES (?,?)');
$result = $query->execute(array('fullname test', 'uri_1'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$query = OC_DB::prepare('SELECT `fullname`,`uri` FROM *PREFIX*'.$this->table2.' WHERE `uri` = ?');
$result = $query->execute(array('uri_1'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$row = $result->fetchRow();
$this->assertArrayHasKey('fullname', $row);
$this->assertEqual($row['fullname'], 'fullname test');
$this->assertEquals($row['fullname'], 'fullname test');
$row = $result->fetchRow();
$this->assertFalse($row);
}
@ -54,19 +54,19 @@ class Test_DB extends UnitTestCase {
public function testNOW() {
$query = OC_DB::prepare('INSERT INTO *PREFIX*'.$this->table2.' (`fullname`,`uri`) VALUES (NOW(),?)');
$result = $query->execute(array('uri_2'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$query = OC_DB::prepare('SELECT `fullname`,`uri` FROM *PREFIX*'.$this->table2.' WHERE `uri` = ?');
$result = $query->execute(array('uri_2'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
}
public function testUNIX_TIMESTAMP() {
$query = OC_DB::prepare('INSERT INTO *PREFIX*'.$this->table2.' (`fullname`,`uri`) VALUES (UNIX_TIMESTAMP(),?)');
$result = $query->execute(array('uri_3'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$query = OC_DB::prepare('SELECT `fullname`,`uri` FROM *PREFIX*'.$this->table2.' WHERE `uri` = ?');
$result = $query->execute(array('uri_3'));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
}
public function testinsertIfNotExist() {
@ -85,13 +85,13 @@ class Test_DB extends UnitTestCase {
'type' => $entry['type'],
'category' => $entry['category'],
));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
}
$query = OC_DB::prepare('SELECT * FROM *PREFIX*'.$this->table3);
$result = $query->execute();
$this->assertTrue($result);
$this->assertEqual('4', $result->numRows());
$this->assertTrue((bool)$result);
$this->assertEquals('4', $result->numRows());
}
public function testinsertIfNotExistDontOverwrite() {
@ -102,14 +102,14 @@ class Test_DB extends UnitTestCase {
// Normal test to have same known data inserted.
$query = OC_DB::prepare('INSERT INTO *PREFIX*'.$this->table2.' (`fullname`, `uri`, `carddata`) VALUES (?, ?, ?)');
$result = $query->execute(array($fullname, $uri, $carddata));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$query = OC_DB::prepare('SELECT `fullname`, `uri`, `carddata` FROM *PREFIX*'.$this->table2.' WHERE `uri` = ?');
$result = $query->execute(array($uri));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$row = $result->fetchRow();
$this->assertArrayHasKey('carddata', $row);
$this->assertEqual($carddata, $row['carddata']);
$this->assertEqual('1', $result->numRows());
$this->assertEquals($carddata, $row['carddata']);
$this->assertEquals('1', $result->numRows());
// Try to insert a new row
$result = OC_DB::insertIfNotExist('*PREFIX*'.$this->table2,
@ -117,17 +117,17 @@ class Test_DB extends UnitTestCase {
'fullname' => $fullname,
'uri' => $uri,
));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$query = OC_DB::prepare('SELECT `fullname`, `uri`, `carddata` FROM *PREFIX*'.$this->table2.' WHERE `uri` = ?');
$result = $query->execute(array($uri));
$this->assertTrue($result);
$this->assertTrue((bool)$result);
$row = $result->fetchRow();
$this->assertArrayHasKey('carddata', $row);
// Test that previously inserted data isn't overwritten
$this->assertEqual($carddata, $row['carddata']);
$this->assertEquals($carddata, $row['carddata']);
// And that a new row hasn't been inserted.
$this->assertEqual('1', $result->numRows());
$this->assertEquals('1', $result->numRows());
}
}

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
class Test_DBSchema extends UnitTestCase {
class Test_DBSchema extends PHPUnit_Framework_TestCase {
protected static $schema_file = 'static://test_db_scheme';
protected static $schema_file2 = 'static://test_db_scheme2';
protected $test_prefix;

View File

@ -20,7 +20,7 @@
*
*/
abstract class Test_FileStorage extends UnitTestCase {
abstract class Test_FileStorage extends PHPUnit_Framework_TestCase {
/**
* @var OC_Filestorage instance
*/
@ -34,7 +34,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertTrue($this->instance->isReadable('/'), 'Root folder is not readable');
$this->assertTrue($this->instance->is_dir('/'), 'Root folder is not a directory');
$this->assertFalse($this->instance->is_file('/'), 'Root folder is a file');
$this->assertEqual('dir', $this->instance->filetype('/'));
$this->assertEquals('dir', $this->instance->filetype('/'));
//without this, any further testing would be useless, not an acutal requirement for filestorage though
$this->assertTrue($this->instance->isUpdatable('/'), 'Root folder is not writable');
@ -48,8 +48,8 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertTrue($this->instance->file_exists('/folder'));
$this->assertTrue($this->instance->is_dir('/folder'));
$this->assertFalse($this->instance->is_file('/folder'));
$this->assertEqual('dir', $this->instance->filetype('/folder'));
$this->assertEqual(0, $this->instance->filesize('/folder'));
$this->assertEquals('dir', $this->instance->filetype('/folder'));
$this->assertEquals(0, $this->instance->filesize('/folder'));
$this->assertTrue($this->instance->isReadable('/folder'));
$this->assertTrue($this->instance->isUpdatable('/folder'));
@ -60,7 +60,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$content[] = $file;
}
}
$this->assertEqual(array('folder'), $content);
$this->assertEquals(array('folder'), $content);
$this->assertFalse($this->instance->mkdir('/folder')); //cant create existing folders
$this->assertTrue($this->instance->rmdir('/folder'));
@ -76,7 +76,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$content[] = $file;
}
}
$this->assertEqual(array(), $content);
$this->assertEquals(array(), $content);
}
/**
@ -89,31 +89,31 @@ abstract class Test_FileStorage extends UnitTestCase {
//fill a file with string data
$this->instance->file_put_contents('/lorem.txt', $sourceText);
$this->assertFalse($this->instance->is_dir('/lorem.txt'));
$this->assertEqual($sourceText, $this->instance->file_get_contents('/lorem.txt'), 'data returned from file_get_contents is not equal to the source data');
$this->assertEquals($sourceText, $this->instance->file_get_contents('/lorem.txt'), 'data returned from file_get_contents is not equal to the source data');
//empty the file
$this->instance->file_put_contents('/lorem.txt', '');
$this->assertEqual('', $this->instance->file_get_contents('/lorem.txt'), 'file not emptied');
$this->assertEquals('', $this->instance->file_get_contents('/lorem.txt'), 'file not emptied');
}
/**
* test various known mimetypes
*/
public function testMimeType() {
$this->assertEqual('httpd/unix-directory', $this->instance->getMimeType('/'));
$this->assertEqual(false, $this->instance->getMimeType('/non/existing/file'));
$this->assertEquals('httpd/unix-directory', $this->instance->getMimeType('/'));
$this->assertEquals(false, $this->instance->getMimeType('/non/existing/file'));
$textFile = OC::$SERVERROOT . '/tests/data/lorem.txt';
$this->instance->file_put_contents('/lorem.txt', file_get_contents($textFile, 'r'));
$this->assertEqual('text/plain', $this->instance->getMimeType('/lorem.txt'));
$this->assertEquals('text/plain', $this->instance->getMimeType('/lorem.txt'));
$pngFile = OC::$SERVERROOT . '/tests/data/logo-wide.png';
$this->instance->file_put_contents('/logo-wide.png', file_get_contents($pngFile, 'r'));
$this->assertEqual('image/png', $this->instance->getMimeType('/logo-wide.png'));
$this->assertEquals('image/png', $this->instance->getMimeType('/logo-wide.png'));
$svgFile = OC::$SERVERROOT . '/tests/data/logo-wide.svg';
$this->instance->file_put_contents('/logo-wide.svg', file_get_contents($svgFile, 'r'));
$this->assertEqual('image/svg+xml', $this->instance->getMimeType('/logo-wide.svg'));
$this->assertEquals('image/svg+xml', $this->instance->getMimeType('/logo-wide.svg'));
}
public function testCopyAndMove() {
@ -121,12 +121,12 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->instance->file_put_contents('/source.txt', file_get_contents($textFile));
$this->instance->copy('/source.txt', '/target.txt');
$this->assertTrue($this->instance->file_exists('/target.txt'));
$this->assertEqual($this->instance->file_get_contents('/source.txt'), $this->instance->file_get_contents('/target.txt'));
$this->assertEquals($this->instance->file_get_contents('/source.txt'), $this->instance->file_get_contents('/target.txt'));
$this->instance->rename('/source.txt', '/target2.txt');
$this->assertTrue($this->instance->file_exists('/target2.txt'));
$this->assertFalse($this->instance->file_exists('/source.txt'));
$this->assertEqual(file_get_contents($textFile), $this->instance->file_get_contents('/target.txt'));
$this->assertEquals(file_get_contents($textFile), $this->instance->file_get_contents('/target.txt'));
}
public function testLocal() {
@ -134,7 +134,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->instance->file_put_contents('/lorem.txt', file_get_contents($textFile));
$localFile = $this->instance->getLocalFile('/lorem.txt');
$this->assertTrue(file_exists($localFile));
$this->assertEqual(file_get_contents($localFile), file_get_contents($textFile));
$this->assertEquals(file_get_contents($localFile), file_get_contents($textFile));
$this->instance->mkdir('/folder');
$this->instance->file_put_contents('/folder/lorem.txt', file_get_contents($textFile));
@ -145,9 +145,9 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertTrue(is_dir($localFolder));
$this->assertTrue(file_exists($localFolder . '/lorem.txt'));
$this->assertEqual(file_get_contents($localFolder . '/lorem.txt'), file_get_contents($textFile));
$this->assertEqual(file_get_contents($localFolder . '/bar.txt'), 'asd');
$this->assertEqual(file_get_contents($localFolder . '/recursive/file.txt'), 'foo');
$this->assertEquals(file_get_contents($localFolder . '/lorem.txt'), file_get_contents($textFile));
$this->assertEquals(file_get_contents($localFolder . '/bar.txt'), 'asd');
$this->assertEquals(file_get_contents($localFolder . '/recursive/file.txt'), 'foo');
}
public function testStat() {
@ -162,12 +162,12 @@ abstract class Test_FileStorage extends UnitTestCase {
$this->assertTrue(($ctimeStart - 1) <= $mTime);
$this->assertTrue($mTime <= ($ctimeEnd + 1));
$this->assertEqual(filesize($textFile), $this->instance->filesize('/lorem.txt'));
$this->assertEquals(filesize($textFile), $this->instance->filesize('/lorem.txt'));
$stat = $this->instance->stat('/lorem.txt');
//only size and mtime are requered in the result
$this->assertEqual($stat['size'], $this->instance->filesize('/lorem.txt'));
$this->assertEqual($stat['mtime'], $mTime);
$this->assertEquals($stat['size'], $this->instance->filesize('/lorem.txt'));
$this->assertEquals($stat['mtime'], $mTime);
$mtimeStart = time();
$supportsTouch = $this->instance->touch('/lorem.txt');
@ -181,7 +181,7 @@ abstract class Test_FileStorage extends UnitTestCase {
if ($this->instance->touch('/lorem.txt', 100) !== false) {
$mTime = $this->instance->filemtime('/lorem.txt');
$this->assertEqual($mTime, 100);
$this->assertEquals($mTime, 100);
}
}
@ -207,7 +207,7 @@ abstract class Test_FileStorage extends UnitTestCase {
$svgFile = OC::$SERVERROOT . '/tests/data/logo-wide.svg';
$this->instance->file_put_contents('/logo-wide.svg', file_get_contents($svgFile, 'r'));
$result = $this->instance->search('logo');
$this->assertEqual(2, count($result));
$this->assertEquals(2, count($result));
$this->assertContains('/logo-wide.svg', $result);
$this->assertContains('/logo-wide.png', $result);
}
@ -229,6 +229,6 @@ abstract class Test_FileStorage extends UnitTestCase {
$fh = $this->instance->fopen('foo', 'r');
$content = stream_get_contents($fh);
$this->assertEqual(file_get_contents($textFile), $content);
$this->assertEquals(file_get_contents($textFile), $content);
}
}

View File

@ -20,7 +20,7 @@
*
*/
class Test_Filesystem extends UnitTestCase {
class Test_Filesystem extends PHPUnit_Framework_TestCase {
/**
* @var array tmpDirs
*/
@ -47,28 +47,28 @@ class Test_Filesystem extends UnitTestCase {
public function testMount() {
OC_Filesystem::mount('OC_Filestorage_Local', self::getStorageData(), '/');
$this->assertEqual('/', OC_Filesystem::getMountPoint('/'));
$this->assertEqual('/', OC_Filesystem::getMountPoint('/some/folder'));
$this->assertEqual('', OC_Filesystem::getInternalPath('/'));
$this->assertEqual('some/folder', OC_Filesystem::getInternalPath('/some/folder'));
$this->assertEquals('/', OC_Filesystem::getMountPoint('/'));
$this->assertEquals('/', OC_Filesystem::getMountPoint('/some/folder'));
$this->assertEquals('', OC_Filesystem::getInternalPath('/'));
$this->assertEquals('some/folder', OC_Filesystem::getInternalPath('/some/folder'));
OC_Filesystem::mount('OC_Filestorage_Local', self::getStorageData(), '/some');
$this->assertEqual('/', OC_Filesystem::getMountPoint('/'));
$this->assertEqual('/some/', OC_Filesystem::getMountPoint('/some/folder'));
$this->assertEqual('/some/', OC_Filesystem::getMountPoint('/some/'));
$this->assertEqual('/', OC_Filesystem::getMountPoint('/some'));
$this->assertEqual('folder', OC_Filesystem::getInternalPath('/some/folder'));
$this->assertEquals('/', OC_Filesystem::getMountPoint('/'));
$this->assertEquals('/some/', OC_Filesystem::getMountPoint('/some/folder'));
$this->assertEquals('/some/', OC_Filesystem::getMountPoint('/some/'));
$this->assertEquals('/', OC_Filesystem::getMountPoint('/some'));
$this->assertEquals('folder', OC_Filesystem::getInternalPath('/some/folder'));
}
public function testNormalize() {
$this->assertEqual('/path', OC_Filesystem::normalizePath('/path/'));
$this->assertEqual('/path/', OC_Filesystem::normalizePath('/path/', false));
$this->assertEqual('/path', OC_Filesystem::normalizePath('path'));
$this->assertEqual('/path', OC_Filesystem::normalizePath('\path'));
$this->assertEqual('/foo/bar', OC_Filesystem::normalizePath('/foo//bar/'));
$this->assertEqual('/foo/bar', OC_Filesystem::normalizePath('/foo////bar'));
$this->assertEquals('/path', OC_Filesystem::normalizePath('/path/'));
$this->assertEquals('/path/', OC_Filesystem::normalizePath('/path/', false));
$this->assertEquals('/path', OC_Filesystem::normalizePath('path'));
$this->assertEquals('/path', OC_Filesystem::normalizePath('\path'));
$this->assertEquals('/foo/bar', OC_Filesystem::normalizePath('/foo//bar/'));
$this->assertEquals('/foo/bar', OC_Filesystem::normalizePath('/foo////bar'));
if (class_exists('Normalizer')) {
$this->assertEqual("/foo/bar\xC3\xBC", OC_Filesystem::normalizePath("/foo/baru\xCC\x88"));
$this->assertEquals("/foo/bar\xC3\xBC", OC_Filesystem::normalizePath("/foo/baru\xCC\x88"));
}
}
@ -100,10 +100,10 @@ class Test_Filesystem extends UnitTestCase {
$rootView->mkdir('/' . $user);
$rootView->mkdir('/' . $user . '/files');
$this->assertFalse($rootView->file_put_contents('/.htaccess', 'foo'));
$this->assertFalse(OC_Filesystem::file_put_contents('/.htaccess', 'foo'));
$this->assertFalse((bool)$rootView->file_put_contents('/.htaccess', 'foo'));
$this->assertFalse((bool)OC_Filesystem::file_put_contents('/.htaccess', 'foo'));
$fh = fopen(__FILE__, 'r');
$this->assertFalse(OC_Filesystem::file_put_contents('/.htaccess', $fh));
$this->assertFalse((bool)OC_Filesystem::file_put_contents('/.htaccess', $fh));
}
public function testHooks() {
@ -134,6 +134,6 @@ class Test_Filesystem extends UnitTestCase {
public function dummyHook($arguments) {
$path = $arguments['path'];
$this->assertEqual($path, OC_Filesystem::normalizePath($path)); //the path passed to the hook should already be normalized
$this->assertEquals($path, OC_Filesystem::normalizePath($path)); //the path passed to the hook should already be normalized
}
}

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
class Test_Geo extends UnitTestCase {
class Test_Geo extends PHPUnit_Framework_TestCase {
function testTimezone() {
$result = OC_Geo::timezone(3, 3);
$expected = 'Africa/Porto-Novo';

View File

@ -22,7 +22,7 @@
*
*/
class Test_Group extends UnitTestCase {
class Test_Group extends PHPUnit_Framework_TestCase {
function setUp() {
OC_Group::clearBackends();
}
@ -43,24 +43,24 @@ class Test_Group extends UnitTestCase {
$this->assertFalse(OC_Group::inGroup($user1, $group2));
$this->assertFalse(OC_Group::inGroup($user2, $group2));
$this->assertTrue(OC_Group::addToGroup($user1, $group1));
$this->assertTrue((bool)OC_Group::addToGroup($user1, $group1));
$this->assertTrue(OC_Group::inGroup($user1, $group1));
$this->assertFalse(OC_Group::inGroup($user2, $group1));
$this->assertFalse(OC_Group::inGroup($user1, $group2));
$this->assertFalse(OC_Group::inGroup($user2, $group2));
$this->assertFalse(OC_Group::addToGroup($user1, $group1));
$this->assertFalse((bool)OC_Group::addToGroup($user1, $group1));
$this->assertEqual(array($user1), OC_Group::usersInGroup($group1));
$this->assertEqual(array(), OC_Group::usersInGroup($group2));
$this->assertEquals(array($user1), OC_Group::usersInGroup($group1));
$this->assertEquals(array(), OC_Group::usersInGroup($group2));
$this->assertEqual(array($group1), OC_Group::getUserGroups($user1));
$this->assertEqual(array(), OC_Group::getUserGroups($user2));
$this->assertEquals(array($group1), OC_Group::getUserGroups($user1));
$this->assertEquals(array(), OC_Group::getUserGroups($user2));
OC_Group::deleteGroup($group1);
$this->assertEqual(array(), OC_Group::getUserGroups($user1));
$this->assertEqual(array(), OC_Group::usersInGroup($group1));
$this->assertEquals(array(), OC_Group::getUserGroups($user1));
$this->assertEquals(array(), OC_Group::usersInGroup($group1));
$this->assertFalse(OC_Group::inGroup($user1, $group1));
}
@ -69,7 +69,7 @@ class Test_Group extends UnitTestCase {
OC_Group::useBackend(new OC_Group_Dummy());
$emptyGroup = null;
$this->assertEqual(false, OC_Group::createGroup($emptyGroup));
$this->assertEquals(false, OC_Group::createGroup($emptyGroup));
}
@ -80,8 +80,8 @@ class Test_Group extends UnitTestCase {
$groupCopy = $group;
$this->assertEqual(false, OC_Group::createGroup($groupCopy));
$this->assertEqual(array($group), OC_Group::getGroups());
$this->assertEquals(false, OC_Group::createGroup($groupCopy));
$this->assertEquals(array($group), OC_Group::getGroups());
}
@ -90,8 +90,8 @@ class Test_Group extends UnitTestCase {
$adminGroup = 'admin';
OC_Group::createGroup($adminGroup);
$this->assertEqual(false, OC_Group::deleteGroup($adminGroup));
$this->assertEqual(array($adminGroup), OC_Group::getGroups());
$this->assertEquals(false, OC_Group::deleteGroup($adminGroup));
$this->assertEquals(array($adminGroup), OC_Group::getGroups());
}
@ -100,8 +100,8 @@ class Test_Group extends UnitTestCase {
$groupNonExistent = 'notExistent';
$user = uniqid();
$this->assertEqual(false, OC_Group::addToGroup($user, $groupNonExistent));
$this->assertEqual(array(), OC_Group::getGroups());
$this->assertEquals(false, OC_Group::addToGroup($user, $groupNonExistent));
$this->assertEquals(array(), OC_Group::getGroups());
}
@ -122,7 +122,7 @@ class Test_Group extends UnitTestCase {
OC_Group::addToGroup($user3, $group1);
OC_Group::addToGroup($user3, $group2);
$this->assertEqual(array($user1, $user2, $user3),
$this->assertEquals(array($user1, $user2, $user3),
OC_Group::usersInGroups(array($group1, $group2, $group3)));
// FIXME: needs more parameter variation
@ -141,16 +141,16 @@ class Test_Group extends UnitTestCase {
OC_Group::createGroup($group1);
//groups should be added to the first registered backend
$this->assertEqual(array($group1), $backend1->getGroups());
$this->assertEqual(array(), $backend2->getGroups());
$this->assertEquals(array($group1), $backend1->getGroups());
$this->assertEquals(array(), $backend2->getGroups());
$this->assertEqual(array($group1), OC_Group::getGroups());
$this->assertEquals(array($group1), OC_Group::getGroups());
$this->assertTrue(OC_Group::groupExists($group1));
$this->assertFalse(OC_Group::groupExists($group2));
$backend1->createGroup($group2);
$this->assertEqual(array($group1, $group2), OC_Group::getGroups());
$this->assertEquals(array($group1, $group2), OC_Group::getGroups());
$this->assertTrue(OC_Group::groupExists($group1));
$this->assertTrue(OC_Group::groupExists($group2));
@ -161,22 +161,22 @@ class Test_Group extends UnitTestCase {
$this->assertFalse(OC_Group::inGroup($user2, $group1));
$this->assertTrue(OC_Group::addToGroup($user1, $group1));
$this->assertTrue((bool)OC_Group::addToGroup($user1, $group1));
$this->assertTrue(OC_Group::inGroup($user1, $group1));
$this->assertFalse(OC_Group::inGroup($user2, $group1));
$this->assertFalse($backend2->inGroup($user1, $group1));
$this->assertFalse(OC_Group::addToGroup($user1, $group1));
$this->assertFalse((bool)OC_Group::addToGroup($user1, $group1));
$this->assertEqual(array($user1), OC_Group::usersInGroup($group1));
$this->assertEquals(array($user1), OC_Group::usersInGroup($group1));
$this->assertEqual(array($group1), OC_Group::getUserGroups($user1));
$this->assertEqual(array(), OC_Group::getUserGroups($user2));
$this->assertEquals(array($group1), OC_Group::getUserGroups($user1));
$this->assertEquals(array(), OC_Group::getUserGroups($user2));
OC_Group::deleteGroup($group1);
$this->assertEqual(array(), OC_Group::getUserGroups($user1));
$this->assertEqual(array(), OC_Group::usersInGroup($group1));
$this->assertEquals(array(), OC_Group::getUserGroups($user1));
$this->assertEquals(array(), OC_Group::usersInGroup($group1));
$this->assertFalse(OC_Group::inGroup($user1, $group1));
}
}

View File

@ -20,7 +20,7 @@
*
*/
abstract class Test_Group_Backend extends UnitTestCase {
abstract class Test_Group_Backend extends PHPUnit_Framework_TestCase {
/**
* @var OC_Group_Backend $backend
*/
@ -52,18 +52,18 @@ abstract class Test_Group_Backend extends UnitTestCase {
$name2=$this->getGroupName();
$this->backend->createGroup($name1);
$count=count($this->backend->getGroups())-$startCount;
$this->assertEqual(1, $count);
$this->assertEquals(1, $count);
$this->assertTrue((array_search($name1, $this->backend->getGroups())!==false));
$this->assertFalse((array_search($name2, $this->backend->getGroups())!==false));
$this->backend->createGroup($name2);
$count=count($this->backend->getGroups())-$startCount;
$this->assertEqual(2, $count);
$this->assertEquals(2, $count);
$this->assertTrue((array_search($name1, $this->backend->getGroups())!==false));
$this->assertTrue((array_search($name2, $this->backend->getGroups())!==false));
$this->backend->deleteGroup($name2);
$count=count($this->backend->getGroups())-$startCount;
$this->assertEqual(1, $count);
$this->assertEquals(1, $count);
$this->assertTrue((array_search($name1, $this->backend->getGroups())!==false));
$this->assertFalse((array_search($name2, $this->backend->getGroups())!==false));
}
@ -91,15 +91,15 @@ abstract class Test_Group_Backend extends UnitTestCase {
$this->assertFalse($this->backend->addToGroup($user1, $group1));
$this->assertEqual(array($user1), $this->backend->usersInGroup($group1));
$this->assertEqual(array(), $this->backend->usersInGroup($group2));
$this->assertEquals(array($user1), $this->backend->usersInGroup($group1));
$this->assertEquals(array(), $this->backend->usersInGroup($group2));
$this->assertEqual(array($group1), $this->backend->getUserGroups($user1));
$this->assertEqual(array(), $this->backend->getUserGroups($user2));
$this->assertEquals(array($group1), $this->backend->getUserGroups($user1));
$this->assertEquals(array(), $this->backend->getUserGroups($user2));
$this->backend->deleteGroup($group1);
$this->assertEqual(array(), $this->backend->getUserGroups($user1));
$this->assertEqual(array(), $this->backend->usersInGroup($group1));
$this->assertEquals(array(), $this->backend->getUserGroups($user1));
$this->assertEquals(array(), $this->backend->usersInGroup($group1));
$this->assertFalse($this->backend->inGroup($user1, $group1));
}
}

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
class Test_Helper extends UnitTestCase {
class Test_Helper extends PHPUnit_Framework_TestCase {
function testHumanFileSize() {
$result = OC_Helper::humanFileSize(0);

View File

@ -19,7 +19,7 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
class Test_Share extends UnitTestCase {
class Test_Share extends PHPUnit_Framework_TestCase {
protected $itemType;
protected $userBackend;

View File

@ -20,7 +20,7 @@
*
*/
class Test_StreamWrappers extends UnitTestCase {
class Test_StreamWrappers extends PHPUnit_Framework_TestCase {
public function testFakeDir() {
$items=array('foo', 'bar');
OC_FakeDirStream::$dirs['test']=$items;
@ -30,7 +30,7 @@ class Test_StreamWrappers extends UnitTestCase {
$result[]=$file;
$this->assertContains($file, $items);
}
$this->assertEqual(count($items), count($result));
$this->assertEquals(count($items), count($result));
}
public function testStaticStream() {
@ -39,7 +39,7 @@ class Test_StreamWrappers extends UnitTestCase {
$this->assertFalse(file_exists($staticFile));
file_put_contents($staticFile, file_get_contents($sourceFile));
$this->assertTrue(file_exists($staticFile));
$this->assertEqual(file_get_contents($sourceFile), file_get_contents($staticFile));
$this->assertEquals(file_get_contents($sourceFile), file_get_contents($staticFile));
unlink($staticFile);
clearstatcache();
$this->assertFalse(file_exists($staticFile));
@ -52,7 +52,7 @@ class Test_StreamWrappers extends UnitTestCase {
$file='close://'.$tmpFile;
$this->assertTrue(file_exists($file));
file_put_contents($file, file_get_contents($sourceFile));
$this->assertEqual(file_get_contents($sourceFile), file_get_contents($file));
$this->assertEquals(file_get_contents($sourceFile), file_get_contents($file));
unlink($file);
clearstatcache();
$this->assertFalse(file_exists($file));
@ -68,7 +68,7 @@ class Test_StreamWrappers extends UnitTestCase {
$this->fail('Expected exception');
}catch(Exception $e) {
$path=$e->getMessage();
$this->assertEqual($path, $tmpFile);
$this->assertEquals($path, $tmpFile);
}
}

View File

@ -22,7 +22,7 @@
OC::autoload('OC_Template');
class Test_TemplateFunctions extends UnitTestCase {
class Test_TemplateFunctions extends PHPUnit_Framework_TestCase {
public function testP() {
// FIXME: do we need more testcases?
@ -31,7 +31,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($htmlString);
$result = ob_get_clean();
$this->assertEqual("&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;", $result);
$this->assertEquals("&lt;script&gt;alert(&#039;xss&#039;);&lt;/script&gt;", $result);
}
public function testPNormalString() {
@ -40,7 +40,7 @@ class Test_TemplateFunctions extends UnitTestCase {
p($normalString);
$result = ob_get_clean();
$this->assertEqual("This is a good string!", $result);
$this->assertEquals("This is a good string!", $result);
}
@ -51,7 +51,7 @@ class Test_TemplateFunctions extends UnitTestCase {
print_unescaped($htmlString);
$result = ob_get_clean();
$this->assertEqual($htmlString, $result);
$this->assertEquals($htmlString, $result);
}
public function testPrintUnescapedNormalString() {
@ -60,7 +60,7 @@ class Test_TemplateFunctions extends UnitTestCase {
print_unescaped($normalString);
$result = ob_get_clean();
$this->assertEqual("This is a good string!", $result);
$this->assertEquals("This is a good string!", $result);
}

View File

@ -30,7 +30,7 @@
* For an example see /tests/lib/user/dummy.php
*/
abstract class Test_User_Backend extends UnitTestCase {
abstract class Test_User_Backend extends PHPUnit_Framework_TestCase {
/**
* @var OC_User_Backend $backend
*/
@ -53,18 +53,18 @@ abstract class Test_User_Backend extends UnitTestCase {
$name2=$this->getUser();
$this->backend->createUser($name1, '');
$count=count($this->backend->getUsers())-$startCount;
$this->assertEqual(1, $count);
$this->assertEquals(1, $count);
$this->assertTrue((array_search($name1, $this->backend->getUsers())!==false));
$this->assertFalse((array_search($name2, $this->backend->getUsers())!==false));
$this->backend->createUser($name2, '');
$count=count($this->backend->getUsers())-$startCount;
$this->assertEqual(2, $count);
$this->assertEquals(2, $count);
$this->assertTrue((array_search($name1, $this->backend->getUsers())!==false));
$this->assertTrue((array_search($name2, $this->backend->getUsers())!==false));
$this->backend->deleteUser($name2);
$count=count($this->backend->getUsers())-$startCount;
$this->assertEqual(1, $count);
$this->assertEquals(1, $count);
$this->assertTrue((array_search($name1, $this->backend->getUsers())!==false));
$this->assertFalse((array_search($name2, $this->backend->getUsers())!==false));
}

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
class Test_Util extends UnitTestCase {
class Test_Util extends PHPUnit_Framework_TestCase {
// Constructor
function Test_Util() {

View File

@ -22,7 +22,7 @@
//require_once("../lib/template.php");
class Test_VCategories extends UnitTestCase {
class Test_VCategories extends PHPUnit_Framework_TestCase {
protected $objectType;
protected $user;
@ -49,7 +49,7 @@ class Test_VCategories extends UnitTestCase {
$catmgr = new OC_VCategories($this->objectType, $this->user, $defcategories);
$this->assertEqual(4, count($catmgr->categories()));
$this->assertEquals(4, count($catmgr->categories()));
}
public function testAddCategories() {
@ -59,25 +59,25 @@ class Test_VCategories extends UnitTestCase {
foreach($categories as $category) {
$result = $catmgr->add($category);
$this->assertTrue($result);
$this->assertTrue((bool)$result);
}
$this->assertFalse($catmgr->add('Family'));
$this->assertFalse($catmgr->add('fAMILY'));
$this->assertEqual(4, count($catmgr->categories()));
$this->assertEquals(4, count($catmgr->categories()));
}
public function testdeleteCategories() {
$defcategories = array('Friends', 'Family', 'Work', 'Other');
$catmgr = new OC_VCategories($this->objectType, $this->user, $defcategories);
$this->assertEqual(4, count($catmgr->categories()));
$this->assertEquals(4, count($catmgr->categories()));
$catmgr->delete('family');
$this->assertEqual(3, count($catmgr->categories()));
$this->assertEquals(3, count($catmgr->categories()));
$catmgr->delete(array('Friends', 'Work', 'Other'));
$this->assertEqual(0, count($catmgr->categories()));
$this->assertEquals(0, count($catmgr->categories()));
}
@ -90,8 +90,8 @@ class Test_VCategories extends UnitTestCase {
$catmgr->addToCategory($id, 'Family');
}
$this->assertEqual(1, count($catmgr->categories()));
$this->assertEqual(9, count($catmgr->idsForCategory('Family')));
$this->assertEquals(1, count($catmgr->categories()));
$this->assertEquals(9, count($catmgr->idsForCategory('Family')));
}
/**
@ -110,8 +110,8 @@ class Test_VCategories extends UnitTestCase {
$this->assertFalse(in_array($id, $catmgr->idsForCategory('Family')));
}
$this->assertEqual(1, count($catmgr->categories()));
$this->assertEqual(0, count($catmgr->idsForCategory('Family')));
$this->assertEquals(1, count($catmgr->categories()));
$this->assertEquals(0, count($catmgr->idsForCategory('Family')));
}
}