Indention, gettext.
authorJan Schneider <jan@horde.org>
Fri, 16 Oct 2009 14:53:08 +0000 (16:53 +0200)
committerJan Schneider <jan@horde.org>
Mon, 26 Oct 2009 18:51:02 +0000 (19:51 +0100)
turba/lib/Api.php

index fb92584..4105787 100644 (file)
@@ -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;