[i18n] Howto: i18n text in IMP menu.php ?
Jan Schneider
jan at horde.org
Mon Oct 4 06:17:59 PDT 2004
Zitat von Andre Schild <andre at schild.ws>:
> ----- Original Message -----
> *From:* Jan Schneider <jan at horde.org>
> *To:* i18n at lists.horde.org
> *Sent:* Samstag, 2. Oktober 2004 12:11:51
> *Subject:* [i18n] Howto: i18n text in IMP menu.php ?
>
>
>> 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").
>
> Silly quenstion (I'm a PHP / Horde beginner): where do I enter the
> translations for this string ?
Read po/README.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the i18n
mailing list