Use application name translations from horde, not Horde_Core.
authorJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 14:34:27 +0000 (15:34 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 14:42:16 +0000 (15:42 +0100)
framework/Core/lib/Horde/Core/Sidebar.php
framework/Core/lib/Horde/Registry.php

index 6071ee0..d624445 100644 (file)
@@ -136,10 +136,11 @@ class Horde_Core_Sidebar
                 break;
 
             default:
-                // Need to run the name through gettext since the user's
-                // locale may not have been loaded when registry.php was
-                // parsed.
-                $name = Horde_Core_Translation::t($params['name']);
+                // Need to run the name through Horde's gettext since the
+                // user's locale may not have been loaded when registry.php was
+                // parsed, and the translations of the application names are
+                // not in the Core package.
+                $name = _($params['name']);
 
                 // Headings have no webroot; they're just containers for other
                 // menu items.
index 067c894..d843410 100644 (file)
@@ -1368,7 +1368,7 @@ class Horde_Registry
         }
 
         return ($parameter == 'name')
-            ? Horde_Core_Translation::t($pval)
+            ? _($pval)
             : $pval;
     }