diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-01-07 10:20:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-07 10:20:05 +0100 |
commit | cc9de3fbef9246c89eba4b1a47ce23cc0ba45d06 (patch) | |
tree | 815434d8d30fd5b426f4ef5dc42134ce17c90002 /lib | |
parent | a7811334370b735427d41a953abd53ec5648ab59 (diff) | |
parent | 85444605d3d610f68d10a5b0aa33198c6e691343 (diff) | |
download | nextcloud-server-cc9de3fbef9246c89eba4b1a47ce23cc0ba45d06.tar.gz nextcloud-server-cc9de3fbef9246c89eba4b1a47ce23cc0ba45d06.zip |
Merge pull request #30284 from nextcloud/Valdnet-patch-1
l10n: Separate words and add dots
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 6 | ||||
-rw-r--r-- | lib/private/legacy/OC_Util.php | 36 |
2 files changed, 21 insertions, 21 deletions
diff --git a/lib/base.php b/lib/base.php index 78dba4f835e..75459fc6b42 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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 diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index b7f7432ac74..c2846511774 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -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); |