From ea21aa3f7a12c5d1bd80eea329de3eb695fde4e5 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 9 Oct 2018 14:32:14 +0200 Subject: Use numeric placeholders if there are multiple, so that RTL languages can operate better Signed-off-by: Joas Schilling --- core/ajax/update.php | 2 +- core/templates/loginflow/authpicker.php | 2 +- core/templates/loginflow/grant.php | 2 +- core/templates/untrustedDomain.php | 2 +- core/templates/update.admin.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/ajax/update.php b/core/ajax/update.php index 377da746100..6def2c6797b 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -187,7 +187,7 @@ if (\OCP\Util::needUpgrade()) { $eventSource->send('success', (string)$l->t('Checked database schema update for apps')); }); $updater->listen('\OC\Updater', 'appUpgrade', function ($app, $version) use ($eventSource, $l) { - $eventSource->send('success', (string)$l->t('Updated "%s" to %s', array($app, $version))); + $eventSource->send('success', (string)$l->t('Updated "%1$s" to %2$s', array($app, $version))); }); $updater->listen('\OC\Updater', 'incompatibleAppDisabled', function ($app) use (&$incompatibleApps) { $incompatibleApps[]= $app; diff --git a/core/templates/loginflow/authpicker.php b/core/templates/loginflow/authpicker.php index 4e2282a1807..7c7eabd308c 100644 --- a/core/templates/loginflow/authpicker.php +++ b/core/templates/loginflow/authpicker.php @@ -30,7 +30,7 @@ $urlGenerator = $_['urlGenerator'];

t('Connect to your account')) ?>

- t('Please log in before granting %s access to your %s account.', [ + t('Please log in before granting %1$s access to your %2$s account.', [ '' . \OCP\Util::sanitizeHTML($_['client']) . '', \OCP\Util::sanitizeHTML($_['instanceName']) ])) ?> diff --git a/core/templates/loginflow/grant.php b/core/templates/loginflow/grant.php index 6278e910bdb..a03b31f762c 100644 --- a/core/templates/loginflow/grant.php +++ b/core/templates/loginflow/grant.php @@ -30,7 +30,7 @@ $urlGenerator = $_['urlGenerator'];

t('Account access')) ?>

- t('You are about to grant %s access to your %s account.', [ + t('You are about to grant %1$s access to your %2$s account.', [ '' . \OCP\Util::sanitizeHTML($_['client']) . '', \OCP\Util::sanitizeHTML($_['instanceName']) ])) ?> diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php index 1443c412821..7de4ff78f30 100644 --- a/core/templates/untrustedDomain.php +++ b/core/templates/untrustedDomain.php @@ -8,6 +8,6 @@


- t('Further information how to configure this can be found in the %sdocumentation%s.', ['', ''])); ?> + t('Further information how to configure this can be found in the %1$sdocumentation%2$s.', ['', ''])); ?>

diff --git a/core/templates/update.admin.php b/core/templates/update.admin.php index e8087b297e9..f4a1c72ae8d 100644 --- a/core/templates/update.admin.php +++ b/core/templates/update.admin.php @@ -3,7 +3,7 @@

t('App update required')); ?>

-

t('%s will be updated to version %s', +

t('%1$s will be updated to version %2$s', array($_['productName'], $_['version']))); ?>

-- cgit v1.2.3