[imp] gettext problems (still)
Jan Schneider
jan@horde.org
Fri, 10 May 2002 14:08:29 +0200
Zitat von Frederic Trudeau <ftrudeau@cam.org>:
> Consider this array ;
>
> $Services['SHELL_ACCT'] = array (
> 'translation' => _("Shell acount"),
> 'time_usage' => '0',
> 'disk_usage' => '1',
> 'pass_change' => '1'
> );
>
> This array is part of a file called 'services.inc.php', that is included
> on each pages of the application.
>
> This gets translated fine ;
>
> <?=_("Shell acount");?>
>
> ... but if I call up the string to be translated by its value in the
> array, it does NOT get translated ;
>
> <?=$Services['SHELL_ACCT']['translation'];?>
Did you initialize gettext (bindtextdomain() et al) _before_ including the
config file?
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft