Hello all.
Im currently building an application that uses gettext, and I have a yet unsolved problem.
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.
Now, 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 bery, very appreciated !!
Thanks =)