Merge pull request #32741 from nextcloud/Valdnet-patch-2

l10n: Delete apostrophe
pull/31637/head
Joas Schilling 3 years ago committed by GitHub
commit 148498bba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files/js/filelist.js
  2. 2
      apps/files/src/components/TransferOwnershipDialogue.vue
  3. 2
      apps/files/templates/list.php
  4. 4
      apps/files_sharing/lib/Controller/RemoteController.php
  5. 16
      apps/files_sharing/lib/Controller/ShareAPIController.php
  6. 2
      apps/files_sharing/templates/part.404.php
  7. 2
      apps/files_sharing/tests/ApiTest.php
  8. 10
      apps/files_sharing/tests/Controller/ShareAPIControllerTest.php
  9. 4
      apps/files_versions/appinfo/info.xml
  10. 4
      apps/settings/lib/Controller/AppSettingsController.php
  11. 2
      apps/settings/lib/Controller/ChangePasswordController.php
  12. 8
      apps/settings/src/components/BasicSettings/BackgroundJob.vue
  13. 2
      apps/theming/src/UserThemes.vue
  14. 14
      build/translation-checker.php
  15. 4
      dist/files-personal-settings.js
  16. 2
      dist/files-personal-settings.js.map
  17. 4
      dist/settings-vue-settings-admin-basic-settings.js
  18. 2
      dist/settings-vue-settings-admin-basic-settings.js.map
  19. 4
      dist/theming-theming-settings.js
  20. 2
      dist/theming-theming-settings.js.map

@ -3579,7 +3579,7 @@
* Shows a "permission denied" notification
*/
_showPermissionDeniedNotification: function() {
var message = t('files', 'You don’t have permission to upload or create files here');
var message = t('files', 'You do not have permission to upload or create files here');
OC.Notification.show(message, {type: 'error'});
},

@ -213,7 +213,7 @@ export default {
logger.error('Could not send ownership transfer request', { error })
if (error?.response?.status === 403) {
this.submitError = t('files', 'Cannot transfer ownership of a file or folder you don\'t own')
this.submitError = t('files', 'Cannot transfer ownership of a file or folder you do not own')
} else {
this.submitError = error.message || t('files', 'Unknown error')
}

@ -6,7 +6,7 @@
<div id="file_action_panel"></div>
<div class="notCreatable notPublic hidden">
<div class="icon-alert-outline"></div>
<?php p($l->t('You don’t have permission to upload or create files here'))?>
<?php p($l->t('You do not have permission to upload or create files here'))?>
</div>
<?php /* Note: the template attributes are here only for the public page. These are normally loaded
through ajax instead (updateStorageStatistics).

@ -86,7 +86,7 @@ class RemoteController extends OCSController {
$this->logger->error('Could not accept federated share with id: ' . $id,
['app' => 'files_sharing']);
throw new OCSNotFoundException('wrong share ID, share doesn\'t exist.');
throw new OCSNotFoundException('wrong share ID, share does not exist.');
}
/**
@ -106,7 +106,7 @@ class RemoteController extends OCSController {
// Make sure the user has no notification for something that does not exist anymore.
$this->externalManager->processNotification($id);
throw new OCSNotFoundException('wrong share ID, share doesn\'t exist.');
throw new OCSNotFoundException('wrong share ID, share does not exist.');
}
/**

@ -366,7 +366,7 @@ class ShareAPIController extends OCSController {
try {
$share = $this->getShareById($id);
} catch (ShareNotFound $e) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
try {
@ -378,7 +378,7 @@ class ShareAPIController extends OCSController {
// Fall trough
}
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
/**
@ -394,7 +394,7 @@ class ShareAPIController extends OCSController {
try {
$share = $this->getShareById($id);
} catch (ShareNotFound $e) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
try {
@ -404,7 +404,7 @@ class ShareAPIController extends OCSController {
}
if (!$this->canAccessShare($share)) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
// if it's a group share or a room share
@ -1056,13 +1056,13 @@ class ShareAPIController extends OCSController {
try {
$share = $this->getShareById($id);
} catch (ShareNotFound $e) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
$this->lock($share->getNode());
if (!$this->canAccessShare($share, false)) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
if (!$this->canEditShare($share)) {
@ -1291,11 +1291,11 @@ class ShareAPIController extends OCSController {
try {
$share = $this->getShareById($id);
} catch (ShareNotFound $e) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
if (!$this->canAccessShare($share)) {
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
throw new OCSNotFoundException($this->l->t('Wrong share ID, share does not exist'));
}
try {

@ -1,6 +1,6 @@
<ul>
<li class="error error-broken-link">
<p><?php p($l->t('Sorry, this link doesn’t seem to work anymore.')) ?></p>
<p><?php p($l->t('Sorry, this link does not seem to work anymore.')) ?></p>
<p><?php p($l->t('Reasons might be:')); ?></p>
<ul>
<li><?php p($l->t('the item was removed')); ?></li>

@ -929,7 +929,7 @@ class ApiTest extends TestCase {
$ocs->getShare(0);
$this->fail();
} catch (OCSNotFoundException $e) {
$this->assertEquals('Wrong share ID, share doesn\'t exist', $e->getMessage());
$this->assertEquals('Wrong share ID, share does not exist', $e->getMessage());
}
$ocs->cleanup();
}

@ -196,7 +196,7 @@ class ShareAPIControllerTest extends TestCase {
public function testDeleteShareShareNotFound() {
$this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class);
$this->expectExceptionMessage('Wrong share ID, share doesn\'t exist');
$this->expectExceptionMessage('Wrong share ID, share does not exist');
$this->shareManager
->expects($this->exactly(6))
@ -433,7 +433,7 @@ class ShareAPIControllerTest extends TestCase {
*/
public function testDeleteSharedWithGroupIDontBelongTo() {
$this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class);
$this->expectExceptionMessage('Wrong share ID, share doesn\'t exist');
$this->expectExceptionMessage('Wrong share ID, share does not exist');
$node = $this->getMockBuilder(File::class)->getMock();
@ -498,7 +498,7 @@ class ShareAPIControllerTest extends TestCase {
->with('ocinternal:42', 'currentUser')
->will($this->throwException(new \OC\Share20\Exception\ShareNotFound()));
$expected = new \OC\OCS\Result(null, 404, 'wrong share ID, share doesn\'t exist.');
$expected = new \OC\OCS\Result(null, 404, 'wrong share ID, share does not exist.');
$this->assertEquals($expected, $this->ocs->getShare(42));
}
*/
@ -808,7 +808,7 @@ class ShareAPIControllerTest extends TestCase {
public function testGetShareInvalidNode() {
$this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class);
$this->expectExceptionMessage('Wrong share ID, share doesn\'t exist');
$this->expectExceptionMessage('Wrong share ID, share does not exist');
$share = \OC::$server->getShareManager()->newShare();
$share->setSharedBy('initiator')
@ -2602,7 +2602,7 @@ class ShareAPIControllerTest extends TestCase {
public function testUpdateShareCantAccess() {
$this->expectException(\OCP\AppFramework\OCS\OCSNotFoundException::class);
$this->expectExceptionMessage('Wrong share ID, share doesn\'t exist');
$this->expectExceptionMessage('Wrong share ID, share does not exist');
$node = $this->getMockBuilder(Folder::class)->getMock();
$share = $this->newShare();

@ -5,8 +5,8 @@
<name>Versions</name>
<summary>This application automatically maintains older versions of files that are changed.</summary>
<description>
This application automatically maintains older versions of files that are changed. When enabled, a hidden versions folder is provisioned in every users directory and is used to store old file versions. A user can revert to an older version through the web interface at any time, with the replaced file becoming a version. The app automatically manages the versions folder to ensure the user doesn’t run out of Quota because of versions.
In addition to the expiry of versions, the versions app makes certain never to use more than 50% of the users currently available free space. If stored versions exceed this limit, the app will delete the oldest versions first until it meets this limit. More information is available in the Versions documentation.
This application automatically maintains older versions of files that are changed. When enabled, a hidden versions folder is provisioned in every user's directory and is used to store old file versions. A user can revert to an older version through the web interface at any time, with the replaced file becoming a version. The app automatically manages the versions folder to ensure the user does not run out of Quota because of versions.
In addition to the expiry of versions, the versions app makes certain never to use more than 50% of the user's currently available free space. If stored versions exceed this limit, the app will delete the oldest versions first until it meets this limit. More information is available in the Versions documentation.
</description>
<version>1.18.0</version>
<licence>agpl</licence>

@ -520,7 +520,7 @@ class AppSettingsController extends Controller {
$this->appManager->clearAppsCache();
return new JSONResponse(['data' => ['appid' => $appId]]);
}
return new JSONResponse(['data' => ['message' => $this->l10n->t('Couldn\'t remove app.')]], Http::STATUS_INTERNAL_SERVER_ERROR);
return new JSONResponse(['data' => ['message' => $this->l10n->t('Could not remove app.')]], Http::STATUS_INTERNAL_SERVER_ERROR);
}
/**
@ -542,7 +542,7 @@ class AppSettingsController extends Controller {
if ($result !== false) {
return new JSONResponse(['data' => ['appid' => $appId]]);
}
return new JSONResponse(['data' => ['message' => $this->l10n->t('Couldn\'t update app.')]], Http::STATUS_INTERNAL_SERVER_ERROR);
return new JSONResponse(['data' => ['message' => $this->l10n->t('Could not update app.')]], Http::STATUS_INTERNAL_SERVER_ERROR);
}
private function sortApps($a, $b) {

@ -243,7 +243,7 @@ class ChangePasswordController extends Controller {
return new JSONResponse([
'status' => 'error',
'data' => [
'message' => $this->l->t('Backend doesn\'t support password change, but the user\'s encryption key was updated.'),
'message' => $this->l->t('Backend does not support password change, but the user\'s encryption key was updated.'),
]
]);
} elseif (!$result && !$recoveryEnabledForUser) {

@ -22,7 +22,7 @@
<template>
<SettingsSection :title="t('settings', 'Background jobs')"
:description="t('settings', 'For the server to work properly, its important to configure background jobs correctly. Cron is the recommended setting. Please see the documentation for more information.')"
:description="t('settings', 'For the server to work properly, it\'s important to configure background jobs correctly. Cron is the recommended setting. Please see the documentation for more information.')"
:doc-url="backgroundJobsDocUrl">
<template v-if="lastCron !== 0">
<span v-if="oldExecution" class="error">
@ -30,11 +30,11 @@
</span>
<span v-else-if="longExecutionNotCron" class="warning">
{{ t('settings', "Some jobs haven’t been executed since {maxAgeRelativeTime}. Please consider increasing the execution frequency.", {maxAgeRelativeTime}) }}
{{ t('settings', "Some jobs have not been executed since {maxAgeRelativeTime}. Please consider increasing the execution frequency.", {maxAgeRelativeTime}) }}
</span>
<span v-else-if="longExecutionCron" class="warning">
{{ t('settings', "Some jobs haven’t been executed since {maxAgeRelativeTime}. Please consider switching to system cron.", {maxAgeRelativeTime}) }}
{{ t('settings', "Some jobs have not been executed since {maxAgeRelativeTime}. Please consider switching to system cron.", {maxAgeRelativeTime}) }}
</span>
<span v-else>
@ -43,7 +43,7 @@
</template>
<span v-else class="error">
{{ t('settings', 'Background job didn’t run yet!') }}
{{ t('settings', 'Background job did not run yet!') }}
</span>
<CheckboxRadioSwitch type="radio"

@ -81,7 +81,7 @@ export default {
descriptionDetail() {
return t(
'theming',
'If you find any issues, don’t hesitate to report them on {issuetracker}our issue tracker{linkend}. And if you want to get involved, come join {designteam}our design team{linkend}!'
'If you find any issues, do not hesitate to report them on {issuetracker}our issue tracker{linkend}. And if you want to get involved, come join {designteam}our design team{linkend}!'
)
.replace('{issuetracker}', this.issuetrackerLink)
.replace('{designteam}', this.designteamLink)

@ -23,6 +23,8 @@ $directories = [
__DIR__ . '/../core/l10n',
];
$isDebug = in_array('--debug', $argv, true) || in_array('-d', $argv, true);
$apps = new \DirectoryIterator(__DIR__ . '/../apps');
foreach ($apps as $app) {
if (!file_exists($app->getPathname() . '/l10n')) {
@ -50,7 +52,7 @@ foreach ($directories as $dir) {
$translations = json_encode($json['translations']);
if (strpos($translations, '|') !== false) {
$errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations' . "\n";
$errors[] = $file->getPathname() . "\n" . ' ' . 'Contains a | in the translations.' . "\n";
}
if (json_last_error() !== JSON_ERROR_NONE) {
@ -58,6 +60,16 @@ foreach ($directories as $dir) {
} else {
$valid++;
}
if ($isDebug && $file->getFilename() === 'en_GB.json') {
$sourceStrings = json_encode(array_keys($json['translations']));
if (strpos($sourceStrings, '\u2019') !== false) {
$errors[] = $file->getPathname() . "\n"
. ' ' . 'Contains a unicode single quote "’" in the english source string, please replace with normal single quotes.' . "\n"
. ' ' . 'Please note that this only updates after a sync to transifex.' . "\n";
}
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save