diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2020-07-08 19:08:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-08 19:08:34 +0200 |
commit | 44f8312cd31522a256a3819b343a01c6b39e50a6 (patch) | |
tree | 905569476cf457d448a332f390618b9d8d20e8f1 | |
parent | 32927fd4701fdd395f929a37e483575841f412dc (diff) | |
parent | 76eb793f9b273d2120326a280668155f39b6f61b (diff) | |
download | nextcloud-server-44f8312cd31522a256a3819b343a01c6b39e50a6.tar.gz nextcloud-server-44f8312cd31522a256a3819b343a01c6b39e50a6.zip |
Merge pull request #21754 from nextcloud/td/no_translation_on_each_request
Only translate if we need the string
-rw-r--r-- | lib/private/legacy/OC_Util.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index dde47041c2b..ae1b28d5bb0 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -851,7 +851,6 @@ class OC_Util { ]; $missingDependencies = []; $invalidIniSettings = []; - $moduleHint = $l->t('Please ask your server administrator to install the module.'); $iniWrapper = \OC::$server->getIniWrapper(); foreach ($dependencies['classes'] as $class => $module) { @@ -890,7 +889,7 @@ class OC_Util { foreach ($missingDependencies as $missingDependency) { $errors[] = [ 'error' => $l->t('PHP module %s not installed.', [$missingDependency]), - 'hint' => $moduleHint + 'hint' => $l->t('Please ask your server administrator to install the module.'), ]; $webServerRestart = true; } |