summaryrefslogtreecommitdiffstats
path: root/apps/dav/l10n/es_EC.js
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2018-10-10 00:13:11 +0000
committerNextcloud bot <bot@nextcloud.com>2018-10-10 00:13:11 +0000
commit7c26bbbd82cc24b6528adf743f5e9a75dc37edf6 (patch)
tree5a52ca435423df82544c0fb6f9f4a3ff827e165c /apps/dav/l10n/es_EC.js
parenta9f4817b652b636a3b2f8c11b2a3e7526e0be82d (diff)
downloadnextcloud-server-7c26bbbd82cc24b6528adf743f5e9a75dc37edf6.tar.gz
nextcloud-server-7c26bbbd82cc24b6528adf743f5e9a75dc37edf6.zip
[tx-robot] updated from transifex
Diffstat (limited to 'apps/dav/l10n/es_EC.js')
-rw-r--r--apps/dav/l10n/es_EC.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/dav/l10n/es_EC.js b/apps/dav/l10n/es_EC.js
index a52f5afeb63..5264c3743ec 100644
--- a/apps/dav/l10n/es_EC.js
+++ b/apps/dav/l10n/es_EC.js
@@ -43,13 +43,9 @@ OC.L10N.register(
"A calendar <strong>event</strong> was modified" : "Un <strong>evento</strong> de un calendario fue modificado",
"A calendar <strong>todo</strong> was modified" : "Un <strong>pendiente</strong> de un calendario fue modificado",
"Contact birthdays" : "Cumpleaños del contacto",
- "%s via %s" : "%s vía %s",
"Invitation canceled" : "Invitación cancelada",
"Hello %s," : "Hola %s,",
- "The meeting »%s« with %s was canceled." : "La cita »%s« con %s fue cancelada.",
"Invitation updated" : "Invitación actualizada",
- "The meeting »%s« with %s was updated." : "La reunión »%s« con %s ha sido actualizada.",
- "%s invited you to »%s«" : "%s te ha invitado a »%s«",
"When:" : "Cuándo:",
"Where:" : "Dónde:",
"Description:" : "Descripción:",
@@ -64,6 +60,10 @@ OC.L10N.register(
"Automatically generate a birthday calendar" : "Generar automaticamente un calendario para cumpleaños",
"Birthday calendars will be generated by a background job." : "Los calendarios de cumpleaños serán generados por un trabajo de segundo plano",
"Hence they will not be available immediately after enabling but will show up after some time." : "Por lo tanto no estarán disponbiles inmediatamente después de habilitarlos pero se mostrarán después de un tiempo.",
+ "%s via %s" : "%s vía %s",
+ "The meeting »%s« with %s was canceled." : "La cita »%s« con %s fue cancelada.",
+ "The meeting »%s« with %s was updated." : "La reunión »%s« con %s ha sido actualizada.",
+ "%s invited you to »%s«" : "%s te ha invitado a »%s«",
"CalDAV server" : "Servidor CalDAV"
},
"nplurals=2; plural=(n != 1);");
*/ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<?php

declare(strict_types=1);

/**
 * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl>
 *
 * @author Roeland Jago Douma <roeland@famdouma.nl>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */

namespace OCA\Files_Versions\Sabre;

use OC\AppFramework\Http\Request;
use OCP\IRequest;
use Sabre\DAV\Exception\NotFound;
use Sabre\DAV\Server;
use Sabre\DAV\ServerPlugin;
use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;

class Plugin extends ServerPlugin {

	/** @var Server */
	private $server;
	/** @var IRequest */
	private $request;

	function __construct(IRequest $request) {
		$this->request = $request;
	}

	function initialize(Server $server) {
		$this->server = $server;

		$server->on('afterMethod:GET', [$this, 'afterGet']);
	}

	public function afterGet(RequestInterface $request, ResponseInterface $response) {
		$path = $request->getPath();
		if (strpos($path, 'versions') !== 0) {
			return;
		}

		try {
			$node = $this->server->tree->getNodeForPath($path);
		} catch (NotFound $e) {
			return;
		}

		if (!($node instanceof VersionFile)) {
			return;
		}

		$filename = $node->getVersion()->getSourceFileName();

		if ($this->request->isUserAgent(
			[
				Request::USER_AGENT_IE,
				Request::USER_AGENT_ANDROID_MOBILE_CHROME,
				Request::USER_AGENT_FREEBOX,
			])) {
			$response->addHeader('Content-Disposition', 'attachment; filename="' . rawurlencode($filename) . '"');
		} else {
			$response->addHeader('Content-Disposition', 'attachment; filename*=UTF-8\'\'' . rawurlencode($filename)
				. '; filename="' . rawurlencode($filename) . '"');
		}
	}
}