Re: String "_Home" from horde/lib/Application.php:67 won't translate

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.internationalization
Message-ID <[email protected]>
Zitat von Luis Felipe Marzagao <[email protected]>:

> Hello:
>
> The string "_Home" in line 67 of horde/lib/Applcation.php can't be  
> translated.
>
> My horde.po is 100% translated and compiled with no errors, but that
> string is still being shown untranslated
> (http://imageshack.us/f/190/unstranslatedstring.png/).
>
> If I change that line in Application.php from:
>
> $menu->add(Horde::url('services/portal/', false, array('app' =>
> 'horde')), Horde_Core_Translation::t("_Home"), 'horde.png');
>
> to
>
> $menu->add(Horde::url('services/portal/', false, array('app' =>
> 'horde')), _("_Home"), 'horde.png');
>
> then the translation works just fine.
>
> And inserting:
>
> Horde::debug(parent::t($message));
>
> just before:
>
> return parent::t($message);
>
> in line 33 (static public function t) of
> horde/framework/Core/lib/Horde/Core/Translation.php produced the
> attached horde_debug.txt.
>
> For some reason, only the string _Home appears untranslated in the
> debug log (and also on the screen).
>
> Can anyone confirm this?
>
> Thanks.
> Luis Felipe

Nice catch, fixed in Git. ::t() is only supposed to be used in  
framework classes.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/

-- 
Horde i18n mailing list - Join the hunt: http://horde.org/bounties/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.