aboutsummaryrefslogtreecommitdiffstats
path: root/lib/l10n
diff options
context:
space:
mode:
authorJenkins for ownCloud <owncloud-bot@tmit.eu>2015-11-05 01:55:14 -0500
committerJenkins for ownCloud <owncloud-bot@tmit.eu>2015-11-05 01:55:14 -0500
commit2f4fa5b49c38c75e60b0cb46e2878e4176e0dd03 (patch)
treeb78d608299940c9445099e66191714920073014e /lib/l10n
parentb23159fa5e9540aa10dd9e39124fe8471f129a02 (diff)
downloadnextcloud-server-2f4fa5b49c38c75e60b0cb46e2878e4176e0dd03.tar.gz
nextcloud-server-2f4fa5b49c38c75e60b0cb46e2878e4176e0dd03.zip
[tx-robot] updated from transifex
Diffstat (limited to 'lib/l10n')
-rw-r--r--lib/l10n/da.js2
-rw-r--r--lib/l10n/da.json2
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/l10n/da.js b/lib/l10n/da.js
index db939815143..928d2f11adb 100644
--- a/lib/l10n/da.js
+++ b/lib/l10n/da.js
@@ -87,6 +87,7 @@ OC.L10N.register(
"Sharing %s failed, because the backend does not allow shares from type %i" : "Deling af %s mislykkedes, fordi backenden ikke tillader delinger fra typen %i",
"Sharing %s failed, because the file does not exist" : "Deling af %s mislykkedes, fordi filen ikke eksisterer",
"You are not allowed to share %s" : "Du har ikke tilladelse til at dele %s",
+ "Sharing %s failed, because you can not share with yourself" : "Deling af %s mislykkedes, fordi du ikke kan dele med dig selv",
"Sharing %s failed, because the user %s does not exist" : "Der skete en fejl ved deling af %s, brugeren %s eksistere ikke",
"Sharing %s failed, because the user %s is not a member of any groups that %s is a member of" : "Der skete en fejl ved deling af %s, brugeren %s er ikke medlem af nogle grupper som %s er medlem af",
"Sharing %s failed, because this item is already shared with %s" : "Der skete en fejl ved deling af %s, objektet er allerede delt med %s",
@@ -105,6 +106,7 @@ OC.L10N.register(
"Sharing backend %s must implement the interface OCP\\Share_Backend" : "Delingsbackend'en %s skal implementere grænsefladen OCP\\Share_Backend",
"Sharing backend %s not found" : "Delingsbackend'en %s blev ikke fundet",
"Sharing backend for %s not found" : "Delingsbackend'en for %s blev ikke fundet",
+ "Sharing failed, because the user %s is the original sharer" : "Deling mislykkedes, fordi brugeren %s er den som delte oprindeligt",
"Sharing %s failed, because the permissions exceed permissions granted to %s" : "Deling af %s mislykkedes, fordi tilladelserne overskred de tillaldelser som %s var tildelt",
"Sharing %s failed, because resharing is not allowed" : "Deling af %s mislykkedes, fordi videredeling ikke er tilladt",
"Sharing %s failed, because the sharing backend for %s could not find its source" : "Deling af %s mislykkedes, fordi back-enden ikke kunne finde kilden til %s",
diff --git a/lib/l10n/da.json b/lib/l10n/da.json
index e06ef9fcfc6..a157f4a21e1 100644
--- a/lib/l10n/da.json
+++ b/lib/l10n/da.json
@@ -85,6 +85,7 @@
"Sharing %s failed, because the backend does not allow shares from type %i" : "Deling af %s mislykkedes, fordi backenden ikke tillader delinger fra typen %i",
"Sharing %s failed, because the file does not exist" : "Deling af %s mislykkedes, fordi filen ikke eksisterer",
"You are not allowed to share %s" : "Du har ikke tilladelse til at dele %s",
+ "Sharing %s failed, because you can not share with yourself" : "Deling af %s mislykkedes, fordi du ikke kan dele med dig selv",
"Sharing %s failed, because the user %s does not exist" : "Der skete en fejl ved deling af %s, brugeren %s eksistere ikke",
"Sharing %s failed, because the user %s is not a member of any groups that %s is a member of" : "Der skete en fejl ved deling af %s, brugeren %s er ikke medlem af nogle grupper som %s er medlem af",
"Sharing %s failed, because this item is already shared with %s" : "Der skete en fejl ved deling af %s, objektet er allerede delt med %s",
@@ -103,6 +104,7 @@
"Sharing backend %s must implement the interface OCP\\Share_Backend" : "Delingsbackend'en %s skal implementere grænsefladen OCP\\Share_Backend",
"Sharing backend %s not found" : "Delingsbackend'en %s blev ikke fundet",
"Sharing backend for %s not found" : "Delingsbackend'en for %s blev ikke fundet",
+ "Sharing failed, because the user %s is the original sharer" : "Deling mislykkedes, fordi brugeren %s er den som delte oprindeligt",
"Sharing %s failed, because the permissions exceed permissions granted to %s" : "Deling af %s mislykkedes, fordi tilladelserne overskred de tillaldelser som %s var tildelt",
"Sharing %s failed, because resharing is not allowed" : "Deling af %s mislykkedes, fordi videredeling ikke er tilladt",
"Sharing %s failed, because the sharing backend for %s could not find its source" : "Deling af %s mislykkedes, fordi back-enden ikke kunne finde kilden til %s",
ass="nx">\OC\Security\CredentialsManager; class CredentialsManagerTest extends \Test\TestCase { /** @var ICrypto */ protected $crypto; /** @var IDBConnection */ protected $dbConnection; /** @var CredentialsManager */ protected $manager; protected function setUp() { parent::setUp(); $this->crypto = $this->getMock('\OCP\Security\ICrypto'); $this->dbConnection = $this->getMockBuilder('\OC\DB\Connection') ->disableOriginalConstructor() ->getMock(); $this->manager = new CredentialsManager($this->crypto, $this->dbConnection); } private function getQeuryResult($row) { $result = $this->getMockBuilder('\Doctrine\DBAL\Driver\Statement') ->disableOriginalConstructor() ->getMock(); $result->expects($this->any()) ->method('fetch') ->will($this->returnValue($row)); return $result; } public function testStore() { $userId = 'abc'; $identifier = 'foo'; $credentials = 'bar'; $this->crypto->expects($this->once()) ->method('encrypt') ->with(json_encode($credentials)) ->willReturn('baz'); $this->dbConnection->expects($this->once()) ->method('setValues') ->with(CredentialsManager::DB_TABLE, ['user' => $userId, 'identifier' => $identifier], ['credentials' => 'baz'] ); $this->manager->store($userId, $identifier, $credentials); } public function testRetrieve() { $userId = 'abc'; $identifier = 'foo'; $this->crypto->expects($this->once()) ->method('decrypt') ->with('baz') ->willReturn(json_encode('bar')); $qb = $this->getMockBuilder('\OC\DB\QueryBuilder\QueryBuilder') ->setConstructorArgs([$this->dbConnection]) ->setMethods(['execute']) ->getMock(); $qb->expects($this->once()) ->method('execute') ->willReturn($this->getQeuryResult(['credentials' => 'baz'])); $this->dbConnection->expects($this->once()) ->method('getQueryBuilder') ->willReturn($qb); $this->manager->retrieve($userId, $identifier); } }