From 1b0d4f499062ae71ee0713f83bb2fdd1c720b91d Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Fri, 16 Oct 2009 16:53:08 +0200 Subject: [PATCH] Indention, gettext. --- turba/lib/Api.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/turba/lib/Api.php b/turba/lib/Api.php index fb92584aa..410578785 100644 --- a/turba/lib/Api.php +++ b/turba/lib/Api.php @@ -1406,13 +1406,12 @@ class Turba_Api extends Horde_Registry_Api foreach ($GLOBALS['attributes'] as $key => $attribute) { if ($attribute['type'] == 'monthdayyear' && !empty($attribute['time_object_label'])) { - - foreach ($GLOBALS['cfgSources'] as $srcKey => $source) { - if (!empty($source['map'][$key])) { - $categories[$key . '::' . $srcKey] = $attribute['time_object_label'] . ' ' . sprintf(_("in %s"), $source['title']); - } + foreach ($GLOBALS['cfgSources'] as $srcKey => $source) { + if (!empty($source['map'][$key])) { + $categories[$key . '::'. $srcKey] = sprintf(_("%s in %s"), $attribute['time_object_label'], $source['title']); } } + } } return $categories; -- 2.11.0