aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/l10n/pl.js6
-rw-r--r--apps/files_external/l10n/pl.json6
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php3
-rw-r--r--apps/files_external/lib/Lib/Storage/Swift.php19
-rw-r--r--apps/files_external/lib/Service/LegacyStoragesService.php3
-rw-r--r--apps/files_external/lib/Service/StoragesService.php7
6 files changed, 30 insertions, 14 deletions
diff --git a/apps/files_external/l10n/pl.js b/apps/files_external/l10n/pl.js
index 9b7dce2396a..5d83036fa53 100644
--- a/apps/files_external/l10n/pl.js
+++ b/apps/files_external/l10n/pl.js
@@ -14,6 +14,7 @@ OC.L10N.register(
"(group)" : "(grupa)",
"Compatibility with Mac NFD encoding (slow)" : "Zgodność z kodowaniem Mac NFD (powolny)",
"Admin defined" : "Zdefiniowane przez Administratora",
+ "Are you sure you want to delete this external storage?" : "Czy na pewno chcesz usunąć zewnętrzny magazyn?",
"Delete storage?" : "Usunąć magazyn?",
"Saved" : "Zapisano",
"Saving..." : "Zapisywanie...",
@@ -55,8 +56,10 @@ OC.L10N.register(
"OAuth2" : "OAuth2",
"Client ID" : "ID klienta",
"Client secret" : "Hasło klienta",
+ "OpenStack v2" : "OpenStack v2",
"Tenant name" : "Nazwa dzierżawcy",
"Identity endpoint URL" : "Adres końcówki identyfikującej",
+ "OpenStack v3" : "OpenStack v3",
"Domain" : "Domena",
"Rackspace" : "Rackspace",
"API key" : "Klucz API",
@@ -98,6 +101,8 @@ OC.L10N.register(
"The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "Obsługa cURL w PHP jest wyłączona lub nie jest zainstalowana. Zamontowanie %s jest niemożliwe. Proszę poprosić swojego administratora systemu, żeby ją zainstalował.",
"The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "Obsługa FTP w PHP jest wyłączona lub nie jest zainstalowana. Zamontowanie %s jest niemożliwe. Proszę poprosić swojego administratora systemu, żeby ją zainstalował.",
"\"%s\" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "\"%s\" nie jest zainstalowane. Zamontowanie %s jest niemożliwe. Proszę poprosić swojego administratora systemu, żeby dokonał instalacji.",
+ "External storage support" : "Wsparcie zewnętrznego magazynu",
+ "No external storage configured or you don't have the permission to configure them" : "Brak magazynów zewnętrznych lub nie masz uprawnień do ich konfiguracji",
"Name" : "Nazwa",
"Storage type" : "Typ magazynu",
"Scope" : "Zakres",
@@ -112,6 +117,7 @@ OC.L10N.register(
"Authentication" : "Poświadczenie",
"Configuration" : "Konfiguracja",
"Available for" : "Dostępne dla",
+ "Click to recheck the configuration" : "Kliknij aby ponownie sprawdzić konfigurację",
"Add storage" : "Dodaj zewnętrzne magazyny",
"Advanced settings" : "Ustawienia zaawansowane",
"Delete" : "Usuń",
diff --git a/apps/files_external/l10n/pl.json b/apps/files_external/l10n/pl.json
index cb509d198ab..8c20d980390 100644
--- a/apps/files_external/l10n/pl.json
+++ b/apps/files_external/l10n/pl.json
@@ -12,6 +12,7 @@
"(group)" : "(grupa)",
"Compatibility with Mac NFD encoding (slow)" : "Zgodność z kodowaniem Mac NFD (powolny)",
"Admin defined" : "Zdefiniowane przez Administratora",
+ "Are you sure you want to delete this external storage?" : "Czy na pewno chcesz usunąć zewnętrzny magazyn?",
"Delete storage?" : "Usunąć magazyn?",
"Saved" : "Zapisano",
"Saving..." : "Zapisywanie...",
@@ -53,8 +54,10 @@
"OAuth2" : "OAuth2",
"Client ID" : "ID klienta",
"Client secret" : "Hasło klienta",
+ "OpenStack v2" : "OpenStack v2",
"Tenant name" : "Nazwa dzierżawcy",
"Identity endpoint URL" : "Adres końcówki identyfikującej",
+ "OpenStack v3" : "OpenStack v3",
"Domain" : "Domena",
"Rackspace" : "Rackspace",
"API key" : "Klucz API",
@@ -96,6 +99,8 @@
"The cURL support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "Obsługa cURL w PHP jest wyłączona lub nie jest zainstalowana. Zamontowanie %s jest niemożliwe. Proszę poprosić swojego administratora systemu, żeby ją zainstalował.",
"The FTP support in PHP is not enabled or installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "Obsługa FTP w PHP jest wyłączona lub nie jest zainstalowana. Zamontowanie %s jest niemożliwe. Proszę poprosić swojego administratora systemu, żeby ją zainstalował.",
"\"%s\" is not installed. Mounting of %s is not possible. Please ask your system administrator to install it." : "\"%s\" nie jest zainstalowane. Zamontowanie %s jest niemożliwe. Proszę poprosić swojego administratora systemu, żeby dokonał instalacji.",
+ "External storage support" : "Wsparcie zewnętrznego magazynu",
+ "No external storage configured or you don't have the permission to configure them" : "Brak magazynów zewnętrznych lub nie masz uprawnień do ich konfiguracji",
"Name" : "Nazwa",
"Storage type" : "Typ magazynu",
"Scope" : "Zakres",
@@ -110,6 +115,7 @@
"Authentication" : "Poświadczenie",
"Configuration" : "Konfiguracja",
"Available for" : "Dostępne dla",
+ "Click to recheck the configuration" : "Kliknij aby ponownie sprawdzić konfigurację",
"Add storage" : "Dodaj zewnętrzne magazyny",
"Advanced settings" : "Ustawienia zaawansowane",
"Delete" : "Usuń",
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 12ab6b0fed8..a533298c06d 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -52,6 +52,7 @@ use OCP\Files\Notify\IChange;
use OCP\Files\Notify\IRenameChange;
use OCP\Files\Storage\INotifyStorage;
use OCP\Files\StorageNotAvailableException;
+use OCP\ILogger;
use OCP\Util;
class SMB extends Common implements INotifyStorage {
@@ -202,7 +203,7 @@ class SMB extends Common implements INotifyStorage {
$this->remove($target);
$result = $this->share->rename($absoluteSource, $absoluteTarget);
} catch (\Exception $e) {
- \OC::$server->getLogger()->logException($e, ['level' => Util::WARN]);
+ \OC::$server->getLogger()->logException($e, ['level' => ILogger::WARN]);
return false;
}
unset($this->statCache[$absoluteSource], $this->statCache[$absoluteTarget]);
diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php
index 4fcd60a797d..689fd700253 100644
--- a/apps/files_external/lib/Lib/Storage/Swift.php
+++ b/apps/files_external/lib/Lib/Storage/Swift.php
@@ -45,6 +45,7 @@ use Icewind\Streams\CallbackWrapper;
use Icewind\Streams\IteratorDirectory;
use OC\Files\ObjectStore\SwiftFactory;
use OCP\Files\StorageBadConfigException;
+use OCP\ILogger;
use OpenStack\Common\Error\BadResponseError;
use OpenStack\ObjectStore\v1\Models\StorageObject;
@@ -132,7 +133,7 @@ class Swift extends \OC\Files\Storage\Common {
// Expected response is "404 Not Found", so only log if it isn't
if ($e->getResponse()->getStatusCode() !== 404) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
}
@@ -225,7 +226,7 @@ class Swift extends \OC\Files\Storage\Common {
$this->objectCache->remove($path);
} catch (BadResponseError $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
@@ -269,7 +270,7 @@ class Swift extends \OC\Files\Storage\Common {
$this->objectCache->remove($path . '/');
} catch (BadResponseError $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
@@ -307,7 +308,7 @@ class Swift extends \OC\Files\Storage\Common {
return IteratorDirectory::wrap($files);
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
@@ -331,7 +332,7 @@ class Swift extends \OC\Files\Storage\Common {
}
} catch (BadResponseError $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
@@ -385,7 +386,7 @@ class Swift extends \OC\Files\Storage\Common {
} catch (BadResponseError $e) {
if ($e->getResponse()->getStatusCode() !== 404) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
throw $e;
@@ -409,7 +410,7 @@ class Swift extends \OC\Files\Storage\Common {
return $this->objectStore->readObject($path);
} catch (BadResponseError $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
@@ -496,7 +497,7 @@ class Swift extends \OC\Files\Storage\Common {
$this->objectCache->remove($path2 . '/');
} catch (BadResponseError $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
@@ -513,7 +514,7 @@ class Swift extends \OC\Files\Storage\Common {
$this->objectCache->remove($path2 . '/');
} catch (BadResponseError $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return false;
diff --git a/apps/files_external/lib/Service/LegacyStoragesService.php b/apps/files_external/lib/Service/LegacyStoragesService.php
index f1bd0b753ae..2b681757806 100644
--- a/apps/files_external/lib/Service/LegacyStoragesService.php
+++ b/apps/files_external/lib/Service/LegacyStoragesService.php
@@ -25,6 +25,7 @@
namespace OCA\Files_External\Service;
use OCA\Files_External\Lib\StorageConfig;
+use OCP\ILogger;
/**
* Read mount config from legacy mount.json
@@ -190,7 +191,7 @@ abstract class LegacyStoragesService {
// don't die if a storage backend doesn't exist
\OC::$server->getLogger()->logException($e, [
'message' => 'Could not load storage.',
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
}
diff --git a/apps/files_external/lib/Service/StoragesService.php b/apps/files_external/lib/Service/StoragesService.php
index 89458b70c0c..79eb03cea21 100644
--- a/apps/files_external/lib/Service/StoragesService.php
+++ b/apps/files_external/lib/Service/StoragesService.php
@@ -37,6 +37,7 @@ use \OCA\Files_External\Lib\Backend\Backend;
use \OCA\Files_External\Lib\Auth\AuthMechanism;
use OCP\Files\Config\IUserMountCache;
use \OCP\Files\StorageNotAvailableException;
+use OCP\ILogger;
/**
* Service class to manage external storages
@@ -104,14 +105,14 @@ abstract class StoragesService {
// don't die if a storage backend doesn't exist
\OC::$server->getLogger()->logException($e, [
'message' => 'Could not load storage.',
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return null;
} catch (\InvalidArgumentException $e) {
\OC::$server->getLogger()->logException($e, [
'message' => 'Could not load storage.',
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
return null;
@@ -479,7 +480,7 @@ abstract class StoragesService {
// be instantiated or whenever $user vars where used, in which case
// the storage id could not be computed
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'files_external',
]);
}