From: Jan Schneider Date: Fri, 16 Oct 2009 14:53:08 +0000 (+0200) Subject: Indention, gettext. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1b0d4f499062ae71ee0713f83bb2fdd1c720b91d;p=horde.git Indention, gettext. --- 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;