summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/l10n
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2023-06-20 00:23:02 +0000
committerNextcloud bot <bot@nextcloud.com>2023-06-20 00:23:02 +0000
commit0d961dc9a2bb3b6005af5eec51692b760a9e0029 (patch)
tree12d8cf1b3a54eb41e6aefacd390dde3fc958f1cb /apps/admin_audit/l10n
parentfec43fc1325b75e1c98838cd961187e7c0409984 (diff)
downloadnextcloud-server-0d961dc9a2bb3b6005af5eec51692b760a9e0029.tar.gz
nextcloud-server-0d961dc9a2bb3b6005af5eec51692b760a9e0029.zip
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Diffstat (limited to 'apps/admin_audit/l10n')
-rw-r--r--apps/admin_audit/l10n/gl.js2
-rw-r--r--apps/admin_audit/l10n/gl.json2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/admin_audit/l10n/gl.js b/apps/admin_audit/l10n/gl.js
index 24d085532a4..114c760a5ea 100644
--- a/apps/admin_audit/l10n/gl.js
+++ b/apps/admin_audit/l10n/gl.js
@@ -2,6 +2,6 @@ OC.L10N.register(
"admin_audit",
{
"Auditing / Logging" : "Auditoría / Rexistro",
- "Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece recursos de rexistro para o Nextcloud como rexistros de acceso a ficheiros ou calquera outra acción sensíbel."
+ "Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece recursos de rexistro para Nextcloud como rexistros de acceso a ficheiros ou calquera outra acción sensíbel."
},
"nplurals=2; plural=(n != 1);");
diff --git a/apps/admin_audit/l10n/gl.json b/apps/admin_audit/l10n/gl.json
index bcfc4ecb0f1..187504dcdca 100644
--- a/apps/admin_audit/l10n/gl.json
+++ b/apps/admin_audit/l10n/gl.json
@@ -1,5 +1,5 @@
{ "translations": {
"Auditing / Logging" : "Auditoría / Rexistro",
- "Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece recursos de rexistro para o Nextcloud como rexistros de acceso a ficheiros ou calquera outra acción sensíbel."
+ "Provides logging abilities for Nextcloud such as logging file accesses or otherwise sensitive actions." : "Fornece recursos de rexistro para Nextcloud como rexistros de acceso a ficheiros ou calquera outra acción sensíbel."
},"pluralForm" :"nplurals=2; plural=(n != 1);"
} \ No newline at end of file
/* 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
/**
 * @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>
 *
 * @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 OC\App\AppStore\Bundles;

use OCP\IL10N;

class BundleFetcher {
	/** @var IL10N */
	private $l10n;

	/**
	 * @param IL10N $l10n
	 */
	public function __construct(IL10N $l10n) {
		$this->l10n = $l10n;
	}

	/**
	 * @return Bundle[]
	 */
	public function getBundles() {
		return [
			new EnterpriseBundle($this->l10n),
			new GroupwareBundle($this->l10n),
			new SocialSharingBundle($this->l10n),
			new EducationBundle($this->l10n),
		];
	}

	/**
	 * Bundles that should be installed by default after installation
	 *
	 * @return Bundle[]
	 */
	public function getDefaultInstallationBundle() {
		return [
			new CoreBundle($this->l10n),
		];
	}

	/**
	 * Get the bundle with the specified identifier
	 *
	 * @param string $identifier
	 * @return Bundle
	 * @throws \BadMethodCallException If the bundle does not exist
	 */
	public function getBundleByIdentifier($identifier) {
		/** @var Bundle[] $bundles */
		$bundles = array_merge(
			$this->getBundles(),
			$this->getDefaultInstallationBundle()
		);
		foreach($bundles as $bundle) {
			if($bundle->getIdentifier() === $identifier) {
				return $bundle;
			}
		}

		throw new \BadMethodCallException('Bundle with specified identifier does not exist');
	}
}