diff options
author | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-04-18 09:27:43 +0200 |
---|---|---|
committer | Thomas Mueller <thomas.mueller@tmit.eu> | 2013-04-18 09:27:43 +0200 |
commit | fbd3445d224959cd6ee24797b62e6e25505d5620 (patch) | |
tree | 927300f8fd8a6d2e0f2edd5842f2895aed583eb4 /lib | |
parent | 7dd33911171bf4cc732889a4e6ff27851cb59274 (diff) | |
parent | cbd8b792d9505f2020aa4a0f54c031f26cb5fe02 (diff) | |
download | nextcloud-server-fbd3445d224959cd6ee24797b62e6e25505d5620.tar.gz nextcloud-server-fbd3445d224959cd6ee24797b62e6e25505d5620.zip |
Merge branch 'master' into ext-fs-irods-master
Diffstat (limited to 'lib')
43 files changed, 95 insertions, 51 deletions
diff --git a/lib/base.php b/lib/base.php index dde994a7e57..cb2193bb7aa 100644 --- a/lib/base.php +++ b/lib/base.php @@ -278,7 +278,7 @@ class OC { OC_Config::setValue('maintenance', true); OC_Log::write('core', 'starting upgrade from ' . $installedVersion . ' to ' . $currentVersion, - OC_Log::DEBUG); + OC_Log::WARN); $minimizerCSS = new OC_Minimizer_CSS(); $minimizerCSS->clearCache(); $minimizerJS = new OC_Minimizer_JS(); diff --git a/lib/files/cache/legacy.php b/lib/files/cache/legacy.php index 9556a2639a3..b8e2548639b 100644 --- a/lib/files/cache/legacy.php +++ b/lib/files/cache/legacy.php @@ -80,7 +80,7 @@ class Legacy { } $result = $query->execute(array($path)); $data = $result->fetchRow(); - $data['etag'] = $this->getEtag($data['path']); + $data['etag'] = $this->getEtag($data['path'], $data['user']); return $data; } @@ -90,12 +90,24 @@ class Legacy { * @param type $path * @return string */ - function getEtag($path) { + function getEtag($path, $user = null) { static $query = null; - list(, $user, , $relativePath) = explode('/', $path, 4); - if (is_null($relativePath)) { + + $pathDetails = explode('/', $path, 4); + if((!$user) && !isset($pathDetails[1])) { + //no user!? Too odd, return empty string. + return ''; + } else if(!$user) { + //guess user from path, if no user passed. + $user = $pathDetails[1]; + } + + if(!isset($pathDetails[3]) || is_null($pathDetails[3])) { $relativePath = ''; + } else { + $relativePath = $pathDetails[3]; } + if(is_null($query)){ $query = \OC_DB::prepare('SELECT `propertyvalue` FROM `*PREFIX*properties` WHERE `userid` = ? AND `propertypath` = ? AND `propertyname` = \'{DAV:}getetag\''); } @@ -118,7 +130,7 @@ class Legacy { $result = $query->execute(array($id)); $data = $result->fetchAll(); foreach ($data as $i => $item) { - $data[$i]['etag'] = $this->getEtag($item['path']); + $data[$i]['etag'] = $this->getEtag($item['path'], $item['user']); } return $data; } diff --git a/lib/files/cache/upgrade.php b/lib/files/cache/upgrade.php index 797f4e6ba8c..ca044ba81de 100644 --- a/lib/files/cache/upgrade.php +++ b/lib/files/cache/upgrade.php @@ -127,6 +127,10 @@ class Upgrade { * @return array */ function getNewData($data) { + //Make sure there is a path, otherwise we can do nothing. + if(!isset($data['path'])) { + return false; + } $newData = $data; /** * @var \OC\Files\Storage\Storage $storage diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index 6f56de9f265..c0e9d215fb5 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -23,6 +23,7 @@ * post_rename(oldpath,newpath) * copy(oldpath,newpath, &run) (if the newpath doesn't exists yes, copy, create and write will be emitted in that order) * post_rename(oldpath,newpath) + * post_initMountPoints(user, user_dir) * * the &run parameter can be set to false to prevent the operation from occurring */ @@ -280,6 +281,9 @@ class Filesystem { } } } + + // Chance to mount for other storages + \OC_Hook::emit('OC_Filesystem', 'post_initMountPoints', array('user' => $user, 'user_dir' => $root)); } /** @@ -661,9 +665,4 @@ class Filesystem { } } -\OC_Hook::connect('OC_Filesystem', 'post_write', '\OC\Files\Cache\Updater', 'writeHook'); -\OC_Hook::connect('OC_Filesystem', 'post_touch', '\OC\Files\Cache\Updater', 'touchHook'); -\OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook'); -\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook'); - \OC_Util::setupFS(); diff --git a/lib/l10n.php b/lib/l10n.php index 1e07a9b9557..315e326b292 100644 --- a/lib/l10n.php +++ b/lib/l10n.php @@ -298,10 +298,16 @@ class OC_L10N{ $temp = explode(';', $i); $temp[0] = str_replace('-', '_', $temp[0]); if( ($key = array_search($temp[0], $available)) !== false) { + if (is_null($app)) { + self::$language = $available[$key]; + } return $available[$key]; } foreach($available as $l) { if ( $temp[0] == substr($l, 0, 2) ) { + if (is_null($app)) { + self::$language = $l; + } return $l; } } diff --git a/lib/l10n/ar.php b/lib/l10n/ar.php index 8b7324f3ff4..ae8233f80da 100644 --- a/lib/l10n/ar.php +++ b/lib/l10n/ar.php @@ -18,7 +18,6 @@ "Images" => "صور", "Set an admin username." => "اعداد اسم مستخدم للمدير", "Set an admin password." => "اعداد كلمة مرور للمدير", -"Specify a data folder." => "تحديد مجلد ", "%s enter the database username." => "%s ادخل اسم المستخدم الخاص بقاعدة البيانات.", "%s enter the database name." => "%s ادخل اسم فاعدة البيانات", "%s you may not use dots in the database name" => "%s لا يسمح لك باستخدام نقطه (.) في اسم قاعدة البيانات", diff --git a/lib/l10n/bg_BG.php b/lib/l10n/bg_BG.php index d32e2aadfc5..2d4775a89f3 100644 --- a/lib/l10n/bg_BG.php +++ b/lib/l10n/bg_BG.php @@ -18,7 +18,6 @@ "Images" => "Снимки", "Set an admin username." => "Въведете потребителско име за администратор.", "Set an admin password." => "Въведете парола за администратор.", -"Specify a data folder." => "Укажете папка за данни", "%s enter the database username." => "%s въведете потребителско име за базата с данни.", "%s enter the database name." => "%s въведете име на базата с данни.", "%s you may not use dots in the database name" => "%s, не можете да ползвате точки в името на базата от данни", diff --git a/lib/l10n/ca.php b/lib/l10n/ca.php index 108bb5c09be..16dc74f40c4 100644 --- a/lib/l10n/ca.php +++ b/lib/l10n/ca.php @@ -18,7 +18,6 @@ "Images" => "Imatges", "Set an admin username." => "Establiu un nom d'usuari per l'administrador.", "Set an admin password." => "Establiu una contrasenya per l'administrador.", -"Specify a data folder." => "Especifiqueu una carpeta de dades.", "%s enter the database username." => "%s escriviu el nom d'usuari de la base de dades.", "%s enter the database name." => "%s escriviu el nom de la base de dades.", "%s you may not use dots in the database name" => "%s no podeu usar punts en el nom de la base de dades", diff --git a/lib/l10n/cs_CZ.php b/lib/l10n/cs_CZ.php index d9ec3d82cf7..79161c74e8e 100644 --- a/lib/l10n/cs_CZ.php +++ b/lib/l10n/cs_CZ.php @@ -18,7 +18,6 @@ "Images" => "Obrázky", "Set an admin username." => "Zadejte uživatelské jméno správce.", "Set an admin password." => "Zadejte heslo správce.", -"Specify a data folder." => "Určete složku dat.", "%s enter the database username." => "Zadejte uživatelské jméno %s databáze.", "%s enter the database name." => "Zadejte název databáze pro %s databáze.", "%s you may not use dots in the database name" => "V názvu databáze %s nesmíte používat tečky.", diff --git a/lib/l10n/cy_GB.php b/lib/l10n/cy_GB.php new file mode 100644 index 00000000000..9b087b4a2ef --- /dev/null +++ b/lib/l10n/cy_GB.php @@ -0,0 +1,16 @@ +<?php $TRANSLATIONS = array( +"Help" => "Cymorth", +"Personal" => "Personol", +"Settings" => "Gosodiadau", +"Users" => "Defnyddwyr", +"Apps" => "Pecynnau", +"Admin" => "Gweinyddu", +"seconds ago" => "eiliad yn ôl", +"1 minute ago" => "1 munud yn ôl", +"1 hour ago" => "1 awr yn ôl", +"today" => "heddiw", +"yesterday" => "ddoe", +"last month" => "mis diwethaf", +"last year" => "y llynedd", +"years ago" => "blwyddyn yn ôl" +); diff --git a/lib/l10n/da.php b/lib/l10n/da.php index 38ccbbe8e21..4850d0be19a 100644 --- a/lib/l10n/da.php +++ b/lib/l10n/da.php @@ -18,7 +18,6 @@ "Images" => "Billeder", "Set an admin username." => "Angiv et admin brugernavn.", "Set an admin password." => "Angiv et admin kodeord.", -"Specify a data folder." => "Specificer en data mappe.", "%s enter the database username." => "%s indtast database brugernavnet.", "%s enter the database name." => "%s indtast database navnet.", "%s you may not use dots in the database name" => "%s du må ikke bruge punktummer i databasenavnet.", diff --git a/lib/l10n/de.php b/lib/l10n/de.php index 3c2069d4637..7a680574bfa 100644 --- a/lib/l10n/de.php +++ b/lib/l10n/de.php @@ -18,7 +18,6 @@ "Images" => "Bilder", "Set an admin username." => "Setze Administrator Benutzername.", "Set an admin password." => "Setze Administrator Passwort", -"Specify a data folder." => "Datei-Verzeichnis angeben.", "%s enter the database username." => "%s gib den Datenbank-Benutzernamen an.", "%s enter the database name." => "%s gib den Datenbank-Namen an.", "%s you may not use dots in the database name" => "%s Der Datenbank-Name darf keine Punkte enthalten", @@ -36,7 +35,7 @@ "Offending command was: \"%s\", name: %s, password: %s" => "Fehlerhafter Befehl war: \"%s\", Name: %s, Passwort: %s", "MS SQL username and/or password not valid: %s" => "MS SQL Benutzername und/oder Password ungültig: %s", "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "Dein Web-Server ist noch nicht für Datei-Synchronisation bereit, weil die WebDAV-Schnittstelle vermutlich defekt ist.", -"Please double check the <a href='%s'>installation guides</a>." => "Bitte prüfe die <a href='%s'>Instalationsanleitungen</a>.", +"Please double check the <a href='%s'>installation guides</a>." => "Bitte prüfe die <a href='%s'>Installationsanleitungen</a>.", "seconds ago" => "Gerade eben", "1 minute ago" => "Vor einer Minute", "%d minutes ago" => "Vor %d Minuten", diff --git a/lib/l10n/de_DE.php b/lib/l10n/de_DE.php index 9978cdf8b31..eb002c97be2 100644 --- a/lib/l10n/de_DE.php +++ b/lib/l10n/de_DE.php @@ -18,7 +18,6 @@ "Images" => "Bilder", "Set an admin username." => "Setze Administrator Benutzername.", "Set an admin password." => "Setze Administrator Passwort", -"Specify a data folder." => "Datei-Verzeichnis angeben", "%s enter the database username." => "%s geben Sie den Datenbank-Benutzernamen an.", "%s enter the database name." => "%s geben Sie den Datenbank-Namen an.", "%s you may not use dots in the database name" => "%s Der Datenbank-Name darf keine Punkte enthalten", @@ -36,7 +35,7 @@ "Offending command was: \"%s\", name: %s, password: %s" => "Fehlerhafter Befehl war: \"%s\", Name: %s, Passwort: %s", "MS SQL username and/or password not valid: %s" => "MS SQL Benutzername und/oder Passwort ungültig: %s", "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "Ihr Web-Server ist noch nicht für Datei-Synchronisation bereit, weil die WebDAV-Schnittstelle vermutlich defekt ist.", -"Please double check the <a href='%s'>installation guides</a>." => "Bitte prüfen Sie die <a href='%s'>Instalationsanleitungen</a>.", +"Please double check the <a href='%s'>installation guides</a>." => "Bitte prüfen Sie die <a href='%s'>Installationsanleitungen</a>.", "seconds ago" => "Gerade eben", "1 minute ago" => "Vor einer Minute", "%d minutes ago" => "Vor %d Minuten", diff --git a/lib/l10n/el.php b/lib/l10n/el.php index a3599095258..63f5d8eb836 100644 --- a/lib/l10n/el.php +++ b/lib/l10n/el.php @@ -18,7 +18,6 @@ "Images" => "Εικόνες", "Set an admin username." => "Εισάγετε όνομα χρήστη διαχειριστή.", "Set an admin password." => "Εισάγετε συνθηματικό διαχειριστή.", -"Specify a data folder." => "Καθορίστε τον φάκελο δεδομένων.", "%s enter the database username." => "%s εισάγετε το όνομα χρήστη της βάσης δεδομένων.", "%s enter the database name." => "%s εισάγετε το όνομα της βάσης δεδομένων.", "%s you may not use dots in the database name" => "%s μάλλον δεν χρησιμοποιείτε τελείες στο όνομα της βάσης δεδομένων", diff --git a/lib/l10n/es.php b/lib/l10n/es.php index 37b15a375c4..5b868e2d451 100644 --- a/lib/l10n/es.php +++ b/lib/l10n/es.php @@ -18,7 +18,6 @@ "Images" => "Imágenes", "Set an admin username." => "Configurar un nombre de usuario del administrador", "Set an admin password." => "Configurar la contraseña del administrador.", -"Specify a data folder." => "Especificar la carpeta de datos.", "%s enter the database username." => "%s ingresar el usuario de la base de datos.", "%s enter the database name." => "%s ingresar el nombre de la base de datos", "%s you may not use dots in the database name" => "%s no se puede utilizar puntos en el nombre de la base de datos", diff --git a/lib/l10n/es_AR.php b/lib/l10n/es_AR.php index ff3d47285fc..fc25cd6b1d8 100644 --- a/lib/l10n/es_AR.php +++ b/lib/l10n/es_AR.php @@ -18,7 +18,6 @@ "Images" => "Imágenes", "Set an admin username." => "Configurar un nombre de administrador", "Set an admin password." => "Configurar una palabra clave de administrador", -"Specify a data folder." => "Especificar un directorio de datos", "%s enter the database username." => "%s Entre el Usuario de la Base de Datos", "%s enter the database name." => "%s Entre el Nombre de la Base de Datos", "%s you may not use dots in the database name" => "%s no puede usar puntos en el nombre de la Base de Datos", diff --git a/lib/l10n/et_EE.php b/lib/l10n/et_EE.php index 6948686b7f6..25909e1555e 100644 --- a/lib/l10n/et_EE.php +++ b/lib/l10n/et_EE.php @@ -18,7 +18,6 @@ "Images" => "Pildid", "Set an admin username." => "Määra admin kasutajanimi.", "Set an admin password." => "Määra admini parool.", -"Specify a data folder." => "Määra andmete kaust.", "%s enter the database username." => "%s sisesta andmebaasi kasutajatunnus", "%s enter the database name." => "%s sisesta andmebaasi nimi.", "%s you may not use dots in the database name" => "%s punktide kasutamine andmebaasi nimes pole lubatud", diff --git a/lib/l10n/eu.php b/lib/l10n/eu.php index 36eb397e425..fde65572d8a 100644 --- a/lib/l10n/eu.php +++ b/lib/l10n/eu.php @@ -18,7 +18,6 @@ "Images" => "Irudiak", "Set an admin username." => "Ezarri administraziorako erabiltzaile izena.", "Set an admin password." => "Ezarri administraziorako pasahitza.", -"Specify a data folder." => "Zehaztu data karpeta.", "%s enter the database username." => "%s sartu datu basearen erabiltzaile izena.", "%s enter the database name." => "%s sartu datu basearen izena.", "%s you may not use dots in the database name" => "%s ezin duzu punturik erabili datu basearen izenean.", diff --git a/lib/l10n/fa.php b/lib/l10n/fa.php index f05195f5b8b..b0d423421df 100644 --- a/lib/l10n/fa.php +++ b/lib/l10n/fa.php @@ -14,7 +14,6 @@ "Files" => "پروندهها", "Text" => "متن", "Images" => "تصاویر", -"Specify a data folder." => "پوشه ای برای داده ها مشخص کنید.", "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "احتمالاً وب سرور شما طوری تنظیم نشده است که اجازه ی همگام سازی فایلها را بدهد زیرا به نظر میرسد رابط WebDAV از کار افتاده است.", "Please double check the <a href='%s'>installation guides</a>." => "لطفاً دوباره <a href='%s'>راهنمای نصب</a>را بررسی کنید.", "seconds ago" => "ثانیهها پیش", diff --git a/lib/l10n/fi_FI.php b/lib/l10n/fi_FI.php index 2c85931e1d0..201cae19536 100644 --- a/lib/l10n/fi_FI.php +++ b/lib/l10n/fi_FI.php @@ -18,7 +18,6 @@ "Images" => "Kuvat", "Set an admin username." => "Aseta ylläpitäjän käyttäjätunnus.", "Set an admin password." => "Aseta ylläpitäjän salasana.", -"Specify a data folder." => "Määritä datakansio.", "%s enter the database username." => "%s anna tietokannan käyttäjätunnus.", "%s enter the database name." => "%s anna tietokannan nimi.", "%s you may not use dots in the database name" => "%s et voi käyttää pisteitä tietokannan nimessä", diff --git a/lib/l10n/fr.php b/lib/l10n/fr.php index 9448502df6a..ffc29450461 100644 --- a/lib/l10n/fr.php +++ b/lib/l10n/fr.php @@ -18,7 +18,6 @@ "Images" => "Images", "Set an admin username." => "Spécifiez un nom d'utilisateur pour l'administrateur.", "Set an admin password." => "Spécifiez un mot de passe administrateur.", -"Specify a data folder." => "Spécifiez un répertoire pour les données.", "%s enter the database username." => "%s entrez le nom d'utilisateur de la base de données.", "%s enter the database name." => "%s entrez le nom de la base de données.", "%s you may not use dots in the database name" => "%s vous nez pouvez pas utiliser de points dans le nom de la base de données", diff --git a/lib/l10n/gl.php b/lib/l10n/gl.php index a11724fef43..d38bf8329d1 100644 --- a/lib/l10n/gl.php +++ b/lib/l10n/gl.php @@ -18,7 +18,6 @@ "Images" => "Imaxes", "Set an admin username." => "Estabeleza un nome de usuario administrador", "Set an admin password." => "Estabeleza un contrasinal de administrador", -"Specify a data folder." => "Especifique un cartafol de datos.", "%s enter the database username." => "%s introduza o nome de usuario da base de datos", "%s enter the database name." => "%s introduza o nome da base de datos", "%s you may not use dots in the database name" => "%s non se poden empregar puntos na base de datos", diff --git a/lib/l10n/hu_HU.php b/lib/l10n/hu_HU.php index 537066c6fea..4621c5074b8 100644 --- a/lib/l10n/hu_HU.php +++ b/lib/l10n/hu_HU.php @@ -18,7 +18,6 @@ "Images" => "Képek", "Set an admin username." => "Állítson be egy felhasználói nevet az adminisztrációhoz.", "Set an admin password." => "Állítson be egy jelszót az adminisztrációhoz.", -"Specify a data folder." => "Adja meg az adatokat tartalmazó könyvtár nevét.", "%s enter the database username." => "%s adja meg az adatbázist elérő felhasználó login nevét.", "%s enter the database name." => "%s adja meg az adatbázis nevét.", "%s you may not use dots in the database name" => "%s az adatbázis neve nem tartalmazhat pontot", diff --git a/lib/l10n/id.php b/lib/l10n/id.php index b34fa0ac59d..7eb26c5eb86 100644 --- a/lib/l10n/id.php +++ b/lib/l10n/id.php @@ -18,7 +18,6 @@ "Images" => "Gambar", "Set an admin username." => "Setel nama pengguna admin.", "Set an admin password." => "Setel sandi admin.", -"Specify a data folder." => "Tentukan folder data.", "%s enter the database username." => "%s masukkan nama pengguna basis data.", "%s enter the database name." => "%s masukkan nama basis data.", "%s you may not use dots in the database name" => "%sAnda tidak boleh menggunakan karakter titik pada nama basis data", diff --git a/lib/l10n/it.php b/lib/l10n/it.php index 297f1efde05..847f767fa76 100644 --- a/lib/l10n/it.php +++ b/lib/l10n/it.php @@ -18,7 +18,6 @@ "Images" => "Immagini", "Set an admin username." => "Imposta un nome utente di amministrazione.", "Set an admin password." => "Imposta una password di amministrazione.", -"Specify a data folder." => "Specifica una cartella dei dati.", "%s enter the database username." => "%s digita il nome utente del database.", "%s enter the database name." => "%s digita il nome del database.", "%s you may not use dots in the database name" => "%s non dovresti utilizzare punti nel nome del database", diff --git a/lib/l10n/ja_JP.php b/lib/l10n/ja_JP.php index 529eec3ac52..18d0833792d 100644 --- a/lib/l10n/ja_JP.php +++ b/lib/l10n/ja_JP.php @@ -18,7 +18,6 @@ "Images" => "画像", "Set an admin username." => "管理者のユーザ名を設定。", "Set an admin password." => "管理者のパスワードを設定。", -"Specify a data folder." => "データフォルダを指定。", "%s enter the database username." => "%s のデータベースのユーザ名を入力してください。", "%s enter the database name." => "%s のデータベース名を入力してください。", "%s you may not use dots in the database name" => "%s ではデータベース名にドットを利用できないかもしれません。", @@ -37,7 +36,7 @@ "MS SQL username and/or password not valid: %s" => "MS SQL サーバーのユーザー名/パスワードが正しくありません: %s", "Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "WebDAVインタフェースが動作していないと考えられるため、あなたのWEBサーバはまだファイルの同期を許可するように適切な設定がされていません。", "Please double check the <a href='%s'>installation guides</a>." => "<a href='%s'>インストールガイド</a>をよく確認してください。", -"seconds ago" => "秒前", +"seconds ago" => "数秒前", "1 minute ago" => "1分前", "%d minutes ago" => "%d 分前", "1 hour ago" => "1 時間前", diff --git a/lib/l10n/ka_GE.php b/lib/l10n/ka_GE.php index ff623827216..ffdf549f480 100644 --- a/lib/l10n/ka_GE.php +++ b/lib/l10n/ka_GE.php @@ -5,16 +5,51 @@ "Users" => "მომხმარებელი", "Apps" => "აპლიკაციები", "Admin" => "ადმინისტრატორი", +"ZIP download is turned off." => "ZIP download–ი გათიშულია", +"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." => "Token–ს ვადა გაუვიდა. გთხოვთ განაახლოთ გვერდი.", "Files" => "ფაილები", "Text" => "ტექსტი", +"Images" => "სურათები", +"Set an admin username." => "დააყენეთ ადმინისტრატორის სახელი.", +"Set an admin password." => "დააყენეთ ადმინისტრატორის პაროლი.", +"%s enter the database username." => "%s შეიყვანეთ ბაზის იუზერნეიმი.", +"%s enter the database name." => "%s შეიყვანეთ ბაზის სახელი.", +"%s you may not use dots in the database name" => "%s არ მიუთითოთ წერტილი ბაზის სახელში", +"%s set the database host." => "%s მიუთითეთ ბაზის ჰოსტი.", +"PostgreSQL username and/or password not valid" => "PostgreSQL იუზერნეიმი და/ან პაროლი არ არის სწორი", +"You need to enter either an existing account or the administrator." => "თქვენ უნდა შეიყვანოთ არსებული მომხმარებელის სახელი ან ადმინისტრატორი.", +"Oracle username and/or password not valid" => "Oracle იუზერნეიმი და/ან პაროლი არ არის სწორი", +"MySQL username and/or password not valid" => "MySQL იუზერნეიმი და/ან პაროლი არ არის სწორი", +"DB Error: \"%s\"" => "DB შეცდომა: \"%s\"", +"Offending command was: \"%s\"" => "Offending ბრძანება იყო: \"%s\"", +"MySQL user '%s'@'localhost' exists already." => "MySQL მომხმარებელი '%s'@'localhost' უკვე არსებობს.", +"Drop this user from MySQL" => "წაშალე ეს მომხამრებელი MySQL–იდან", +"MySQL user '%s'@'%%' already exists" => "MySQL მომხმარებელი '%s'@'%%' უკვე არსებობს", +"Drop this user from MySQL." => "წაშალე ეს მომხამრებელი MySQL–იდან", +"Offending command was: \"%s\", name: %s, password: %s" => "Offending ბრძანება იყო: \"%s\", სახელი: %s, პაროლი: %s", +"MS SQL username and/or password not valid: %s" => "MS SQL მომხმარებელი და/ან პაროლი არ არის მართებული: %s", +"Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "თქვენი web სერვერი არ არის კონფიგურირებული ფაილ სინქრონიზაციისთვის, რადგან WebDAV ინტერფეისი შეიძლება იყოს გატეხილი.", +"Please double check the <a href='%s'>installation guides</a>." => "გთხოვთ გადაათვალიეროთ <a href='%s'>ინსტალაციის გზამკვლევი</a>.", "seconds ago" => "წამის წინ", "1 minute ago" => "1 წუთის წინ", +"%d minutes ago" => "%d წუთის წინ", +"1 hour ago" => "1 საათის წინ", +"%d hours ago" => "%d საათის წინ", "today" => "დღეს", "yesterday" => "გუშინ", +"%d days ago" => "%d დღის წინ", "last month" => "გასულ თვეში", +"%d months ago" => "%d თვის წინ", "last year" => "ბოლო წელს", "years ago" => "წლის წინ", +"%s is available. Get <a href=\"%s\">more information</a>" => "%s ხელმისაწვდომია. მიიღეთ <a href=\"%s\">უფრო მეტი ინფორმაცია</a>", "up to date" => "განახლებულია", -"updates check is disabled" => "განახლების ძებნა გათიშულია" +"updates check is disabled" => "განახლების ძებნა გათიშულია", +"Could not find category \"%s\"" => "\"%s\" კატეგორიის მოძებნა ვერ მოხერხდა" ); diff --git a/lib/l10n/lv.php b/lib/l10n/lv.php index c73d306ca0a..38793914073 100644 --- a/lib/l10n/lv.php +++ b/lib/l10n/lv.php @@ -18,7 +18,6 @@ "Images" => "Attēli", "Set an admin username." => "Iestatiet administratora lietotājvārdu.", "Set an admin password." => "Iestatiet administratora paroli.", -"Specify a data folder." => "Norādiet datu mapi.", "%s enter the database username." => "%s ievadiet datubāzes lietotājvārdu.", "%s enter the database name." => "%s ievadiet datubāzes nosaukumu.", "%s you may not use dots in the database name" => "%s datubāžu nosaukumos nedrīkst izmantot punktus", diff --git a/lib/l10n/nl.php b/lib/l10n/nl.php index 10a4060e119..f7cc6ad899c 100644 --- a/lib/l10n/nl.php +++ b/lib/l10n/nl.php @@ -18,7 +18,6 @@ "Images" => "Afbeeldingen", "Set an admin username." => "Stel de gebruikersnaam van de beheerder in.", "Set an admin password." => "Stel een beheerderswachtwoord in.", -"Specify a data folder." => "Geef een datamap op.", "%s enter the database username." => "%s opgeven database gebruikersnaam.", "%s enter the database name." => "%s opgeven databasenaam.", "%s you may not use dots in the database name" => "%s er mogen geen puntjes in de databasenaam voorkomen", diff --git a/lib/l10n/pl.php b/lib/l10n/pl.php index 9a1a5e836c9..c508794c42a 100644 --- a/lib/l10n/pl.php +++ b/lib/l10n/pl.php @@ -18,7 +18,6 @@ "Images" => "Obrazy", "Set an admin username." => "Ustaw nazwę administratora.", "Set an admin password." => "Ustaw hasło administratora.", -"Specify a data folder." => "Określ folder danych.", "%s enter the database username." => "%s wpisz nazwę użytkownika do bazy", "%s enter the database name." => "%s wpisz nazwę bazy.", "%s you may not use dots in the database name" => "%s nie można używać kropki w nazwie bazy danych", diff --git a/lib/l10n/pt_BR.php b/lib/l10n/pt_BR.php index d4f410d8885..8196b43be23 100644 --- a/lib/l10n/pt_BR.php +++ b/lib/l10n/pt_BR.php @@ -18,7 +18,6 @@ "Images" => "Imagens", "Set an admin username." => "Defina um nome de usuário de administrador.", "Set an admin password." => "Defina uma senha de administrador.", -"Specify a data folder." => "Especifique uma pasta de dados.", "%s enter the database username." => "%s insira o nome de usuário do banco de dados.", "%s enter the database name." => "%s insira o nome do banco de dados.", "%s you may not use dots in the database name" => "%s você não pode usar pontos no nome do banco de dados", diff --git a/lib/l10n/pt_PT.php b/lib/l10n/pt_PT.php index 2c813f5b07c..12470686e7e 100644 --- a/lib/l10n/pt_PT.php +++ b/lib/l10n/pt_PT.php @@ -18,7 +18,6 @@ "Images" => "Imagens", "Set an admin username." => "Definir um nome de utilizador de administrador", "Set an admin password." => "Definiar uma password de administrador", -"Specify a data folder." => "Especificar a pasta para os dados.", "%s enter the database username." => "%s introduza o nome de utilizador da base de dados", "%s enter the database name." => "%s introduza o nome da base de dados", "%s you may not use dots in the database name" => "%s não é permitido utilizar pontos (.) no nome da base de dados", diff --git a/lib/l10n/ru.php b/lib/l10n/ru.php index 25a88d5efc2..6f351cd4584 100644 --- a/lib/l10n/ru.php +++ b/lib/l10n/ru.php @@ -18,7 +18,6 @@ "Images" => "Изображения", "Set an admin username." => "Установить имя пользователя для admin.", "Set an admin password." => "становит пароль для admin.", -"Specify a data folder." => "Указать папку данных.", "%s enter the database username." => "%s введите имя пользователя базы данных.", "%s enter the database name." => "%s введите имя базы данных.", "%s you may not use dots in the database name" => "%s Вы не можете использовать точки в имени базы данных", diff --git a/lib/l10n/sk_SK.php b/lib/l10n/sk_SK.php index 8c9ce61622c..2ab255ef8fe 100644 --- a/lib/l10n/sk_SK.php +++ b/lib/l10n/sk_SK.php @@ -18,7 +18,6 @@ "Images" => "Obrázky", "Set an admin username." => "Zadajte používateľské meno administrátora.", "Set an admin password." => "Zadajte heslo administrátora.", -"Specify a data folder." => "Zadajte priečinok pre dáta.", "%s enter the database username." => "Zadajte používateľské meno %s databázy..", "%s enter the database name." => "Zadajte názov databázy pre %s databázy.", "%s you may not use dots in the database name" => "V názve databázy %s nemôžete používať bodky", diff --git a/lib/l10n/sl.php b/lib/l10n/sl.php index a2e1719de87..8775cdd0303 100644 --- a/lib/l10n/sl.php +++ b/lib/l10n/sl.php @@ -18,7 +18,6 @@ "Images" => "Slike", "Set an admin username." => "Nastavi uporabniško ime skrbnika.", "Set an admin password." => "Nastavi geslo skrbnika.", -"Specify a data folder." => "Določi podatkovno mapo.", "%s enter the database username." => "%s - vnos uporabniškega imena podatkovne zbirke.", "%s enter the database name." => "%s - vnos imena podatkovne zbirke.", "%s you may not use dots in the database name" => "%s - v imenu podatkovne zbirke ni dovoljeno uporabljati pik.", diff --git a/lib/l10n/sq.php b/lib/l10n/sq.php index 743c52850ac..649af3c5c25 100644 --- a/lib/l10n/sq.php +++ b/lib/l10n/sq.php @@ -18,7 +18,6 @@ "Images" => "Foto", "Set an admin username." => "Cakto emrin e administratorit.", "Set an admin password." => "Cakto kodin e administratorit.", -"Specify a data folder." => "Specifiko dosjen e të dhënave.", "%s enter the database username." => "% shkruani përdoruesin e database-it.", "%s enter the database name." => "%s shkruani emrin e database-it.", "%s you may not use dots in the database name" => "%s nuk mund të përdorni pikat tek emri i database-it", diff --git a/lib/l10n/sr.php b/lib/l10n/sr.php index 1161b0a44b7..5c6620f82ba 100644 --- a/lib/l10n/sr.php +++ b/lib/l10n/sr.php @@ -16,6 +16,8 @@ "Files" => "Датотеке", "Text" => "Текст", "Images" => "Слике", +"Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken." => "Ваш веб сервер тренутно не подржава синхронизацију датотека јер се чини да је WebDAV сучеље неисправно.", +"Please double check the <a href='%s'>installation guides</a>." => "Погледајте <a href='%s'>водиче за инсталацију</a>.", "seconds ago" => "пре неколико секунди", "1 minute ago" => "пре 1 минут", "%d minutes ago" => "пре %d минута", diff --git a/lib/l10n/uk.php b/lib/l10n/uk.php index 68f7151d15e..9dfc16c3464 100644 --- a/lib/l10n/uk.php +++ b/lib/l10n/uk.php @@ -18,7 +18,6 @@ "Images" => "Зображення", "Set an admin username." => "Встановіть ім'я адміністратора.", "Set an admin password." => "Встановіть пароль адміністратора.", -"Specify a data folder." => "Вкажіть теку для даних.", "%s enter the database username." => "%s введіть ім'я користувача бази даних.", "%s enter the database name." => "%s введіть назву бази даних.", "%s you may not use dots in the database name" => "%s не можна використовувати крапки в назві бази даних", diff --git a/lib/l10n/zh_CN.php b/lib/l10n/zh_CN.php index b79fdfcca1d..2dea94dec36 100644 --- a/lib/l10n/zh_CN.php +++ b/lib/l10n/zh_CN.php @@ -18,7 +18,6 @@ "Images" => "图片", "Set an admin username." => "请设置一个管理员用户名。", "Set an admin password." => "请设置一个管理员密码。", -"Specify a data folder." => "请指定一个数据目录。", "%s enter the database username." => "%s 输入数据库用户名。", "%s enter the database name." => "%s 输入数据库名称。", "%s you may not use dots in the database name" => "%s 您不能在数据库名称中使用英文句号。", diff --git a/lib/log/owncloud.php b/lib/log/owncloud.php index 20df52c27bb..7a11a588330 100644 --- a/lib/log/owncloud.php +++ b/lib/log/owncloud.php @@ -49,7 +49,8 @@ class OC_Log_Owncloud { public static function write($app, $message, $level) { $minLevel=min(OC_Config::getValue( "loglevel", OC_Log::WARN ), OC_Log::ERROR); if($level>=$minLevel) { - $entry=array('app'=>$app, 'message'=>$message, 'level'=>$level, 'time'=>time()); + $time = date("F d, Y H:i:s", time()); + $entry=array('app'=>$app, 'message'=>$message, 'level'=>$level, 'time'=> $time); $handle = @fopen(self::$logFile, 'a'); if ($handle) { fwrite($handle, json_encode($entry)."\n"); diff --git a/lib/setup.php b/lib/setup.php index 7082f0b2afd..769fae11656 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -37,7 +37,7 @@ class OC_Setup { $error[] = $l->t('Set an admin password.'); } if(empty($options['directory'])) { - $error[] = $l->t('Specify a data folder.'); + $options['directory'] = OC::$SERVERROOT."/data"; } if($dbtype == 'mysql' or $dbtype == 'pgsql' or $dbtype == 'oci' or $dbtype == 'mssql') { //mysql and postgresql needs more config options diff --git a/lib/user/database.php b/lib/user/database.php index 210c7f3e1eb..ea938790d22 100644 --- a/lib/user/database.php +++ b/lib/user/database.php @@ -237,13 +237,13 @@ class OC_User_Database extends OC_User_Backend { * @return boolean */ public function userExists($uid) { - $query = OC_DB::prepare( 'SELECT * FROM `*PREFIX*users` WHERE LOWER(`uid`) = LOWER(?)' ); + $query = OC_DB::prepare( 'SELECT COUNT(*) FROM `*PREFIX*users` WHERE LOWER(`uid`) = LOWER(?)' ); $result = $query->execute( array( $uid )); if (OC_DB::isError($result)) { OC_Log::write('core', OC_DB::getErrorMessage($result), OC_Log::ERROR); return false; } - return $result->numRows() > 0; + return $result->fetchOne() > 0; } /** diff --git a/lib/util.php b/lib/util.php index 37fb1bd9d06..34ed4a2a96a 100755 --- a/lib/util.php +++ b/lib/util.php @@ -75,7 +75,7 @@ class OC_Util { public static function getVersion() { // hint: We only can count up. Reset minor/patchlevel when // updating major/minor version number. - return array(5, 80, 01); + return array(5, 80, 02); } /** |