From 849130c011dfa44b9585c2a21e7964fe854eb192 Mon Sep 17 00:00:00 2001 From: Valdnet <47037905+Valdnet@users.noreply.github.com> Date: Tue, 4 May 2021 09:38:46 +0200 Subject: [PATCH 1/2] l10n: Spelling unification Spelling unification in Transifex. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> --- apps/dav/lib/Connector/Sabre/MaintenancePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php b/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php index e5db244c21..033bf4d1c0 100644 --- a/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php +++ b/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php @@ -82,7 +82,7 @@ class MaintenancePlugin extends ServerPlugin { */ public function checkMaintenanceMode() { if ($this->config->getSystemValueBool('maintenance')) { - throw new ServiceUnavailable($this->l10n->t('System in maintenance mode.')); + throw new ServiceUnavailable($this->l10n->t('System is in maintenance mode.')); } if (Util::needUpgrade()) { throw new ServiceUnavailable($this->l10n->t('Upgrade needed')); From b893b5563a269c90788867315a5b647864d5b46b Mon Sep 17 00:00:00 2001 From: Valdnet <47037905+Valdnet@users.noreply.github.com> Date: Tue, 4 May 2021 11:38:45 +0200 Subject: [PATCH 2/2] Fix test Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com> --- apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php b/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php index 94bd1bb0b3..afef4e9141 100644 --- a/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/MaintenancePluginTest.php @@ -55,7 +55,7 @@ class MaintenancePluginTest extends TestCase { public function testMaintenanceMode() { $this->expectException(\Sabre\DAV\Exception\ServiceUnavailable::class); - $this->expectExceptionMessage('System in maintenance mode.'); + $this->expectExceptionMessage('System is in maintenance mode.'); $this->config ->expects($this->exactly(1))