Bug #9539: Correct translations for application names
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Jan 2011 17:25:41 +0000 (10:25 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Jan 2011 17:25:41 +0000 (10:25 -0700)
framework/Core/lib/Horde/Registry.php

index fb18ef8..f0ae1e1 100644 (file)
@@ -1458,9 +1458,17 @@ class Horde_Registry
                 : (isset($this->applications['horde'][$parameter]) ? $this->applications['horde'][$parameter] : null);
         }
 
-        return ($parameter == 'name')
-            ? _($pval)
-            : $pval;
+        if ($parameter != 'name') {
+            return $pval;
+        }
+
+        $pushed = $this->pushApp('horde');
+        $pval = _($pval);
+        if ($pushed) {
+            $this->popApp();
+        }
+
+        return $pval;
     }
 
     /**