Merge pull request #30284 from nextcloud/Valdnet-patch-1

l10n: Separate words and add dots
pull/30537/head
Joas Schilling 2022-01-07 10:20:05 +07:00 committed by GitHub
commit cc9de3fbef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 27 deletions

@ -145,9 +145,9 @@ class Notifier implements INotifier {
];
if ($isDeletedActor) {
$subject = $l->t('You were mentioned on “{file}”, in a comment by a user that has since been deleted');
$subject = $l->t('You were mentioned on "{file}", in a comment by a user that has since been deleted');
} else {
$subject = $l->t('{user} mentioned you in a comment on “{file}”');
$subject = $l->t('{user} mentioned you in a comment on "{file}"');
$subjectParameters['user'] = [
'type' => 'user',
'id' => $comment->getActorId(),

@ -95,7 +95,7 @@ class NotifierTest extends TestCase {
public function testPrepareSuccess() {
$fileName = 'Gre\'thor.odp';
$displayName = 'Huraga';
$message = '@Huraga mentioned you in a comment on “Gre\'thor.odp”';
$message = '@Huraga mentioned you in a comment on "Gre\'thor.odp"';
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $user */
$user = $this->createMock(IUser::class);
@ -149,7 +149,7 @@ class NotifierTest extends TestCase {
$this->notification
->expects($this->once())
->method('setRichSubject')
->with('{user} mentioned you in a comment on “{file}”', $this->anything())
->with('{user} mentioned you in a comment on "{file}"', $this->anything())
->willReturnSelf();
$this->notification
->expects($this->once())
@ -224,7 +224,7 @@ class NotifierTest extends TestCase {
public function testPrepareSuccessDeletedUser() {
$fileName = 'Gre\'thor.odp';
$message = 'You were mentioned on “Gre\'thor.odp”, in a comment by a user that has since been deleted';
$message = 'You were mentioned on "Gre\'thor.odp", in a comment by a user that has since been deleted';
/** @var IUser|\PHPUnit\Framework\MockObject\MockObject $you */
$you = $this->createMock(IUser::class);
@ -273,7 +273,7 @@ class NotifierTest extends TestCase {
$this->notification
->expects($this->once())
->method('setRichSubject')
->with('You were mentioned on “{file}”, in a comment by a user that has since been deleted', $this->anything())
->with('You were mentioned on "{file}", in a comment by a user that has since been deleted', $this->anything())
->willReturnSelf();
$this->notification
->expects($this->once())

@ -250,7 +250,7 @@ class OC {
if (self::$CLI) {
echo $l->t('Cannot write into "config" directory!')."\n";
echo $l->t('This can usually be fixed by giving the webserver write access to the config directory.')."\n";
echo $l->t('This can usually be fixed by giving the web server write access to the config directory.')."\n";
echo "\n";
echo $l->t('But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.')."\n";
echo $l->t('See %s', [ $urlGenerator->linkToDocs('admin-config') ])."\n";
@ -258,7 +258,7 @@ class OC {
} else {
OC_Template::printErrorPage(
$l->t('Cannot write into "config" directory!'),
$l->t('This can usually be fixed by giving the webserver write access to the config directory.') . ' '
$l->t('This can usually be fixed by giving the web server write access to the config directory.') . ' '
. $l->t('But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.') . ' '
. $l->t('See %s', [ $urlGenerator->linkToDocs('admin-config') ]),
503
@ -610,7 +610,7 @@ class OC {
}
//try to configure php to enable big file uploads.
//this doesn´t work always depending on the webserver and php configuration.
//this doesn´t work always depending on the web server and php configuration.
//Let´s try to overwrite some defaults anyway
//try to set the maximum execution time to 60min

@ -755,8 +755,8 @@ class OC_Util {
if (!OC_Helper::isReadOnlyConfigEnabled()) {
if (!is_writable(OC::$configDir) or !is_readable(OC::$configDir)) {
$errors[] = [
'error' => $l->t('Cannot write into "config" directory'),
'hint' => $l->t('This can usually be fixed by giving the webserver write access to the config directory. See %s',
'error' => $l->t('Cannot write into "config" directory.'),
'hint' => $l->t('This can usually be fixed by giving the web server write access to the config directory. See %s',
[ $urlGenerator->linkToDocs('admin-dir_permissions') ]) . '. '
. $l->t('Or, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it. See %s',
[ $urlGenerator->linkToDocs('admin-config') ])
@ -771,8 +771,8 @@ class OC_Util {
|| !is_readable(OC_App::getInstallPath())
) {
$errors[] = [
'error' => $l->t('Cannot write into "apps" directory'),
'hint' => $l->t('This can usually be fixed by giving the webserver write access to the apps directory'
'error' => $l->t('Cannot write into "apps" directory.'),
'hint' => $l->t('This can usually be fixed by giving the web server write access to the apps directory'
. ' or disabling the App Store in the config file.')
];
}
@ -786,7 +786,7 @@ class OC_Util {
} else {
$errors[] = [
'error' => $l->t('Cannot create "data" directory.'),
'hint' => $l->t('This can usually be fixed by giving the webserver write access to the root directory. See %s',
'hint' => $l->t('This can usually be fixed by giving the web server write access to the root directory. See %s',
[$urlGenerator->linkToDocs('admin-dir_permissions')])
];
}
@ -795,10 +795,10 @@ class OC_Util {
$testFile = sprintf('%s/%s.tmp', $CONFIG_DATADIRECTORY, uniqid('data_dir_writability_test_'));
$handle = fopen($testFile, 'w');
if (!$handle || fwrite($handle, 'Test write operation') === false) {
$permissionsHint = $l->t('Permissions can usually be fixed by giving the webserver write access to the root directory. See %s.',
$permissionsHint = $l->t('Permissions can usually be fixed by giving the web server write access to the root directory. See %s.',
[$urlGenerator->linkToDocs('admin-dir_permissions')]);
$errors[] = [
'error' => 'Your data directory is not writable',
'error' => $l->t('Your data directory is not writable.'),
'hint' => $permissionsHint
];
} else {
@ -812,10 +812,10 @@ class OC_Util {
if (!OC_Util::isSetLocaleWorking()) {
$errors[] = [
'error' => $l->t('Setting locale to %s failed',
'error' => $l->t('Setting locale to %s failed.',
['en_US.UTF-8/fr_FR.UTF-8/es_ES.UTF-8/de_DE.UTF-8/ru_RU.UTF-8/'
. 'pt_BR.UTF-8/it_IT.UTF-8/ja_JP.UTF-8/zh_CN.UTF-8']),
'hint' => $l->t('Please install one of these locales on your system and restart your webserver.')
'hint' => $l->t('Please install one of these locales on your system and restart your web server.')
];
}
@ -919,8 +919,8 @@ class OC_Util {
if ($iniWrapper->getBool('mbstring.func_overload') !== null &&
$iniWrapper->getBool('mbstring.func_overload') === true) {
$errors[] = [
'error' => $l->t('mbstring.func_overload is set to "%s" instead of the expected value "0"', [$iniWrapper->getString('mbstring.func_overload')]),
'hint' => $l->t('To fix this issue set <code>mbstring.func_overload</code> to <code>0</code> in your php.ini')
'error' => $l->t('<code>mbstring.func_overload</code> is set to <code>%s</code> instead of the expected value <code>0</code>.', [$iniWrapper->getString('mbstring.func_overload')]),
'hint' => $l->t('To fix this issue set <code>mbstring.func_overload</code> to <code>0</code> in your php.ini.')
];
}
@ -979,8 +979,8 @@ class OC_Util {
$version = $data['server_version'];
if (version_compare($version, '9.0.0', '<')) {
$errors[] = [
'error' => $l->t('PostgreSQL >= 9 required'),
'hint' => $l->t('Please upgrade your database version')
'error' => $l->t('PostgreSQL >= 9 required.'),
'hint' => $l->t('Please upgrade your database version.')
];
}
}
@ -1012,7 +1012,7 @@ class OC_Util {
if ($perms[2] !== '0') {
$l = \OC::$server->getL10N('lib');
return [[
'error' => $l->t('Your data directory is readable by other users'),
'error' => $l->t('Your data directory is readable by other users.'),
'hint' => $l->t('Please change the permissions to 0770 so that the directory cannot be listed by other users.'),
]];
}
@ -1032,13 +1032,13 @@ class OC_Util {
$errors = [];
if ($dataDirectory[0] !== '/') {
$errors[] = [
'error' => $l->t('Your data directory must be an absolute path'),
'hint' => $l->t('Check the value of "datadirectory" in your configuration')
'error' => $l->t('Your data directory must be an absolute path.'),
'hint' => $l->t('Check the value of "datadirectory" in your configuration.')
];
}
if (!file_exists($dataDirectory . '/.ocdata')) {
$errors[] = [
'error' => $l->t('Your data directory is invalid'),
'error' => $l->t('Your data directory is invalid.'),
'hint' => $l->t('Ensure there is a file called ".ocdata"' .
' in the root of the data directory.')
];
@ -1182,7 +1182,7 @@ class OC_Util {
$fp = @fopen($testFile, 'w');
if (!$fp) {
throw new \OCP\HintException('Can\'t create test file to check for working .htaccess file.',
'Make sure it is possible for the webserver to write to ' . $testFile);
'Make sure it is possible for the web server to write to ' . $testFile);
}
fwrite($fp, $testContent);
fclose($fp);