summaryrefslogtreecommitdiffstats
path: root/lib/private/App/DependencyAnalyzer.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2018-10-09 14:32:14 +0200
committerJoas Schilling <coding@schilljs.com>2018-10-09 14:32:14 +0200
commitea21aa3f7a12c5d1bd80eea329de3eb695fde4e5 (patch)
tree7ff489b7990d01a699dbdf43d1b5ab0bc27b4916 /lib/private/App/DependencyAnalyzer.php
parentea411ccec4095e155755b4edf76fd1490e509e5d (diff)
downloadnextcloud-server-ea21aa3f7a12c5d1bd80eea329de3eb695fde4e5.tar.gz
nextcloud-server-ea21aa3f7a12c5d1bd80eea329de3eb695fde4e5.zip
Use numeric placeholders if there are multiple, so that RTL languages can operate better
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/App/DependencyAnalyzer.php')
-rw-r--r--lib/private/App/DependencyAnalyzer.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/App/DependencyAnalyzer.php b/lib/private/App/DependencyAnalyzer.php
index e8da5a0b63a..1e4d597dbc4 100644
--- a/lib/private/App/DependencyAnalyzer.php
+++ b/lib/private/App/DependencyAnalyzer.php
@@ -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[] = $this->l->t('The library %s is not available.', [$libName]);
continue;
}
@@ -244,15 +244,15 @@ class DependencyAnalyzer {
if (isset($lib['@attributes']['min-version'])) {
$minVersion = $lib['@attributes']['min-version'];
if ($this->compareSmaller($libVersion, $minVersion)) {
- $missing[] = (string)$this->l->t('Library %s with a version higher than %s is required - available version %s.',
- array($libName, $minVersion, $libVersion));
+ $missing[] = $this->l->t('Library %1$s with a version higher than %2$s is required - available version %3$s.',
+ [$libName, $minVersion, $libVersion]);
}
}
if (isset($lib['@attributes']['max-version'])) {
$maxVersion = $lib['@attributes']['max-version'];
if ($this->compareBigger($libVersion, $maxVersion)) {
- $missing[] = (string)$this->l->t('Library %s with a version lower than %s is required - available version %s.',
- array($libName, $maxVersion, $libVersion));
+ $missing[] = $this->l->t('Library %1$s with a version lower than %2$s is required - available version %3$s.',
+ [$libName, $maxVersion, $libVersion]);
}
}
}