From 76a195a0be5d36c090c05ce60e02466e9783fea3 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Mon, 21 Oct 2013 23:15:21 +0200 Subject: [PATCH] LDAP Wizard: l10n improvements --- apps/user_ldap/ajax/wizard.php | 3 ++- apps/user_ldap/templates/part.wizard-groupfilter.php | 4 ++-- apps/user_ldap/templates/part.wizard-loginfilter.php | 2 +- apps/user_ldap/templates/part.wizard-userfilter.php | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/user_ldap/ajax/wizard.php b/apps/user_ldap/ajax/wizard.php index c90efdf7e9e..e580c097867 100644 --- a/apps/user_ldap/ajax/wizard.php +++ b/apps/user_ldap/ajax/wizard.php @@ -82,7 +82,8 @@ switch($action) { $setParameters = array(); $configuration->setConfiguration($cfg, $setParameters); if(!in_array($key, $setParameters)) { - \OCP\JSON::error(array('message' => $l->t($key.' Could not set configuration '.$setParameters[0]))); + \OCP\JSON::error(array('message' => $l->t($key. + ' Could not set configuration %s', $setParameters[0]))); exit; } $configuration->saveConfiguration(); diff --git a/apps/user_ldap/templates/part.wizard-groupfilter.php b/apps/user_ldap/templates/part.wizard-groupfilter.php index d36c171b639..17ce815589a 100644 --- a/apps/user_ldap/templates/part.wizard-groupfilter.php +++ b/apps/user_ldap/templates/part.wizard-groupfilter.php @@ -1,7 +1,7 @@

- t('Limit the access to ownCloud to groups meeting this criteria:'));?> + t('Limit the access to %s to groups meeting this criteria:', $theme->getName()));?>

diff --git a/apps/user_ldap/templates/part.wizard-loginfilter.php b/apps/user_ldap/templates/part.wizard-loginfilter.php index 4cad6595449..d4a36eb0cb7 100644 --- a/apps/user_ldap/templates/part.wizard-loginfilter.php +++ b/apps/user_ldap/templates/part.wizard-loginfilter.php @@ -13,7 +13,7 @@

- t('Limit the access to ownCloud to users meeting this criteria:'));?> + t('Limit the access to %s to users meeting this criteria:', $theme->getName()));?>