Skip to content

Commit 095ab44

Browse files
committed
fix(l10n): Improve english source strings
- No leading/trailing whitespace - Use asci single quote Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 86f3b81 commit 095ab44

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

apps/files/src/components/DragAndDropNotice.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default defineComponent({
8585
if (this.isQuotaExceeded) {
8686
return this.t('files', 'Your have used your space quota and cannot upload files anymore')
8787
} else if (!this.canUpload) {
88-
return this.t('files', 'You dont have permission to upload or create files here')
88+
return this.t('files', 'You don\'t have permission to upload or create files here.')
8989
}
9090
return null
9191
},

apps/files/src/components/FilesListTableHeaderActions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ export default defineComponent({
300300
return
301301
}
302302
303-
showError(this.t('files', '"{displayName}" failed on some elements ', { displayName }))
303+
showError(this.t('files', '"{displayName}" failed on some elements', { displayName }))
304304
return
305305
}
306306

apps/files/src/components/FilesListVirtual.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default defineComponent({
189189
caption() {
190190
const defaultCaption = t('files', 'List of files and folders.')
191191
const viewCaption = this.currentView.caption || defaultCaption
192-
const cantUploadCaption = this.cantUpload ? t('files', 'You dont have permission to upload or create files here.') : null
192+
const cantUploadCaption = this.cantUpload ? t('files', 'You don\'t have permission to upload or create files here.') : null
193193
const quotaExceededCaption = this.isQuotaExceeded ? t('files', 'You have used your space quota and cannot upload files anymore.') : null
194194
const sortableCaption = t('files', 'Column headers with buttons are sortable.')
195195
const virtualListNote = t('files', 'This list is not fully rendered for performance reasons. The files will be rendered as you navigate through the list.')

apps/files/templates/list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414
<div class="notCreatable notPublic hidden">
1515
<div class="icon-alert-outline"></div>
16-
<?php p($l->t('You do not have permission to upload or create files here'))?>
16+
<?php p($l->t('You don\'t have permission to upload or create files here.'))?>
1717
</div>
1818
<?php /* Note: the template attributes are here only for the public page. These are normally loaded
1919
through ajax instead (updateStorageStatistics).

apps/settings/lib/SetupChecks/AllowedAdminRanges.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function run(): SetupResult {
3636
$allowedAdminRanges === false
3737
|| (is_array($allowedAdminRanges) && empty($allowedAdminRanges))
3838
) {
39-
return SetupResult::success($this->l10n->t('Admin IP filtering isnt applied.'));
39+
return SetupResult::success($this->l10n->t('Admin IP filtering isn\'t applied.'));
4040
}
4141

4242
if (!is_array($allowedAdminRanges)) {

apps/settings/lib/SetupChecks/DatabaseHasMissingIndices.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function run(): SetupResult {
8585
}
8686
}
8787
return SetupResult::warning(
88-
$this->l10n->t('Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them. ') . $list . '.',
88+
$this->l10n->t('Detected some missing optional indices. Occasionally new indices are added (by Nextcloud or installed applications) to improve database performance. Adding indices can sometimes take awhile and temporarily hurt performance so this is not done automatically during upgrades. Once the indices are added, queries to those tables should be faster. Use the command `occ db:add-missing-indices` to add them.') . "\n" . $list,
8989
$this->urlGenerator->linkToDocs('admin-long-running-migration-steps')
9090
);
9191
}

apps/sharebymail/lib/ShareByMailProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ protected function sendPassword(IShare $share, string $password, array $emails):
426426
$initiatorDisplayName = ($initiatorUser instanceof IUser) ? $initiatorUser->getDisplayName() : $initiator;
427427
$initiatorEmailAddress = ($initiatorUser instanceof IUser) ? $initiatorUser->getEMailAddress() : null;
428428

429-
$plainBodyPart = $this->l->t("%1\$s shared %2\$s with you.\nYou should have already received a separate mail with a link to access it.\n", [$initiatorDisplayName, $filename]);
429+
$plainBodyPart = $this->l->t('%1$s shared %2$s with you. You should have already received a separate mail with a link to access it.', [$initiatorDisplayName, $filename]);
430430
$htmlBodyPart = $this->l->t('%1$s shared %2$s with you. You should have already received a separate mail with a link to access it.', [$initiatorDisplayName, $filename]);
431431

432432
$message = $this->mailer->createMessage();

apps/user_ldap/lib/Access.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public function setPassword($userDN, $password) {
344344
return @$this->invokeLDAPMethod('exopPasswd', $userDN, '', $password) ||
345345
@$this->invokeLDAPMethod('modReplace', $userDN, $password);
346346
} catch (ConstraintViolationException $e) {
347-
throw new HintException('Password change rejected.', Util::getL10N('user_ldap')->t('Password change rejected. Hint: ') . $e->getMessage(), (int)$e->getCode());
347+
throw new HintException('Password change rejected.', Util::getL10N('user_ldap')->t('Password change rejected. Hint: %s', $e->getMessage()), (int)$e->getCode());
348348
}
349349
}
350350

core/Command/Maintenance/Install.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5959

6060
// ignore the OS X setup warning
6161
if (count($errors) !== 1 ||
62-
(string)$errors[0]['error'] !== 'Mac OS X is not supported and Nextcloud will not work properly on this platform. Use it at your own risk! ') {
62+
(string)$errors[0]['error'] !== 'Mac OS X is not supported and Nextcloud will not work properly on this platform. Use it at your own risk!') {
6363
return 1;
6464
}
6565
}

lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public function beforeController($controller, $methodName) {
156156
throw new NotAdminException($this->l10n->t('Logged in account must be an admin, a sub admin or gotten special right to access this setting'));
157157
}
158158
if (!$this->remoteAddress->allowsAdminActions()) {
159-
throw new AdminIpNotAllowedException($this->l10n->t('Your current IP address doesnt allow you to perform admin actions'));
159+
throw new AdminIpNotAllowedException($this->l10n->t('Your current IP address doesn\'t allow you to perform admin actions'));
160160
}
161161
}
162162
if ($this->hasAnnotationOrAttribute($reflectionMethod, 'SubAdminRequired', SubAdminRequired::class)
@@ -173,12 +173,12 @@ public function beforeController($controller, $methodName) {
173173
}
174174
if ($this->hasAnnotationOrAttribute($reflectionMethod, 'SubAdminRequired', SubAdminRequired::class)
175175
&& !$this->remoteAddress->allowsAdminActions()) {
176-
throw new AdminIpNotAllowedException($this->l10n->t('Your current IP address doesnt allow you to perform admin actions'));
176+
throw new AdminIpNotAllowedException($this->l10n->t('Your current IP address doesn\'t allow you to perform admin actions'));
177177
}
178178
if (!$this->hasAnnotationOrAttribute($reflectionMethod, 'SubAdminRequired', SubAdminRequired::class)
179179
&& !$this->hasAnnotationOrAttribute($reflectionMethod, 'NoAdminRequired', NoAdminRequired::class)
180180
&& !$this->remoteAddress->allowsAdminActions()) {
181-
throw new AdminIpNotAllowedException($this->l10n->t('Your current IP address doesnt allow you to perform admin actions'));
181+
throw new AdminIpNotAllowedException($this->l10n->t('Your current IP address doesn\'t allow you to perform admin actions'));
182182
}
183183

184184
}

0 commit comments

Comments
 (0)