[i18n] Howto: i18n text in IMP menu.php ?

Jan Schneider jan at horde.org
Sat Oct 2 03:11:51 PDT 2004


Zitat von Andre Schild <andre at schild.ws>:

> Hello,
>
> what is the correct way to be able to localize the icon/link text in
> userdefined netires in menu.php ?
>
> Currently I have:
>
> $_menu[] = array(
>   'url' =>        '/smartsieve',
>   'text' =>       'Regeln',
>   'icon' =>       'filters.gif',
>   'icon_path' =>  '/horde/imp/graphics/',
>   'target' =>     '_blank',
>   'onclick' =>    ''
> );
>
>
> But I would like to have the text "Regeln" localized to the
> user languages, since we have peoples with different native languages
> accessing this IMP server...

As everywhere else in the code, use _("Regeln"), or better _("Rules").

Jan.

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


More information about the i18n mailing list