[i18n] String "_Home" from horde/lib/Application.php:67 won't translate
Jan Schneider
jan at horde.org
Wed Jun 15 08:34:41 UTC 2011
Zitat von Luis Felipe Marzagao <lfbm.andamentos at gmail.com>:
> 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/
More information about the i18n
mailing list