From 3871f466e5cc6d748e656feba3f01e97aa9e5719 Mon Sep 17 00:00:00 2001
From: rakekniven <2069590+rakekniven@users.noreply.github.com>
Date: Wed, 22 Nov 2023 14:26:38 +0100
Subject: [PATCH] fix(i18n): Changed grammar
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
---
core/js/setupchecks.js | 2 +-
core/js/tests/specs/setupchecksSpec.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index eb5a20c596614..3a836cd78c6d0 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -217,7 +217,7 @@
}
if (data.isBruteforceThrottled) {
messages.push({
- msg: t('core', 'Your remote address was identified as "{remoteAddress}" and is bruteforce throttled at the moment slowing down the performance of various requests. If the remote address is not your address this can be an indication that a proxy is not configured correctly. Further information can be found in the {linkstart}documentation ↗{linkend}.', { remoteAddress: data.bruteforceRemoteAddress })
+ msg: t('core', 'Your remote address was identified as "{remoteAddress}" and is brute-force throttled at the moment slowing down the performance of various requests. If the remote address is not your address this can be an indication that a proxy is not configured correctly. Further information can be found in the {linkstart}documentation ↗{linkend}.', { remoteAddress: data.bruteforceRemoteAddress })
.replace('{linkstart}', '')
.replace('{linkend}', ''),
type: OC.SetupChecks.MESSAGE_TYPE_ERROR
diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js
index 163a21c46a786..9cbbb9111ef1b 100644
--- a/core/js/tests/specs/setupchecksSpec.js
+++ b/core/js/tests/specs/setupchecksSpec.js
@@ -868,7 +868,7 @@ describe('OC.SetupChecks tests', function() {
async.done(function( data, s, x ){
expect(data).toEqual([{
- msg: 'Your remote address was identified as "::1" and is bruteforce throttled at the moment slowing down the performance of various requests. If the remote address is not your address this can be an indication that a proxy is not configured correctly. Further information can be found in the documentation ↗.',
+ msg: 'Your remote address was identified as "::1" and is brute-force throttled at the moment slowing down the performance of various requests. If the remote address is not your address this can be an indication that a proxy is not configured correctly. Further information can be found in the documentation ↗.',
type: OC.SetupChecks.MESSAGE_TYPE_ERROR
}]);
done();