diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-02-22 10:03:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 10:03:18 +0100 |
commit | c2c2c06546801d956778f5ab87e9042d45b40dc4 (patch) | |
tree | 973d8f1270c94b6ba1d5fb5a5aa08224e3acfc5b /lib/private/App | |
parent | e1bdeb786e785f48b579701d5a9d6e759240dd8f (diff) | |
parent | cacfe3a360988a3fd7bef57706674ea4a007f047 (diff) | |
download | nextcloud-server-c2c2c06546801d956778f5ab87e9042d45b40dc4.tar.gz nextcloud-server-c2c2c06546801d956778f5ab87e9042d45b40dc4.zip |
Merge pull request #8476 from nextcloud/strict_l10n
Make OCP\IL10N strict
Diffstat (limited to 'lib/private/App')
-rw-r--r-- | lib/private/App/DependencyAnalyzer.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/App/DependencyAnalyzer.php b/lib/private/App/DependencyAnalyzer.php index 4193ee5083f..e8da5a0b63a 100644 --- a/lib/private/App/DependencyAnalyzer.php +++ b/lib/private/App/DependencyAnalyzer.php @@ -140,19 +140,19 @@ class DependencyAnalyzer { if (isset($dependencies['php']['@attributes']['min-version'])) { $minVersion = $dependencies['php']['@attributes']['min-version']; if ($this->compareSmaller($this->platform->getPhpVersion(), $minVersion)) { - $missing[] = (string)$this->l->t('PHP %s or higher is required.', $minVersion); + $missing[] = (string)$this->l->t('PHP %s or higher is required.', [$minVersion]); } } if (isset($dependencies['php']['@attributes']['max-version'])) { $maxVersion = $dependencies['php']['@attributes']['max-version']; if ($this->compareBigger($this->platform->getPhpVersion(), $maxVersion)) { - $missing[] = (string)$this->l->t('PHP with a version lower than %s is required.', $maxVersion); + $missing[] = (string)$this->l->t('PHP with a version lower than %s is required.', [$maxVersion]); } } if (isset($dependencies['php']['@attributes']['min-int-size'])) { $intSize = $dependencies['php']['@attributes']['min-int-size']; if ($intSize > $this->platform->getIntSize()*8) { - $missing[] = (string)$this->l->t('%sbit or higher PHP required.', $intSize); + $missing[] = (string)$this->l->t('%sbit or higher PHP required.', [$intSize]); } } return $missing; @@ -209,7 +209,7 @@ class DependencyAnalyzer { } $commandName = $this->getValue($command); if (!$this->platform->isCommandKnown($commandName)) { - $missing[] = (string)$this->l->t('The command line tool %s could not be found', $commandName); + $missing[] = (string)$this->l->t('The command line tool %s could not be found', [$commandName]); } } return $missing; @@ -236,7 +236,7 @@ class DependencyAnalyzer { $libName = $this->getValue($lib); $libVersion = $this->platform->getLibraryVersion($libName); if (is_null($libVersion)) { - $missing[] = (string)$this->l->t('The library %s is not available.', $libName); + $missing[] = (string)$this->l->t('The library %s is not available.', [$libName]); continue; } |