[imp] gettext problems (still)

Serge Grondin SGrondin@csbf.qc.ca
Thu, 09 May 2002 15:04:30 -0400


Hi,

    Change the line for that one.
     <?=_($Services['SHELL_ACCT']['translation']);?>

    The   _( )    is a call to gettext and is what do the translation.

Frederic Trudeau a écrit :

> Hello all. Im currently building an application that uses gettext,
> much like Horde applications does, and I have a small problem, that im
> sure you guys will figure out instantly. 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'];?>or<? echo
> $Services['SHELL_ACCT']['translation']; ?> Anyone knows why ? Any help
> would be very appreciated !! Thanks =)

--
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.:   (819) 758-6453, poste 2920
e-Mail bur.: SGrondin@csbf.qc.ca
e-Mail per.: sergegro@globetrotter.net