[imp] gettext problem

Jan Schneider jan@horde.org
Mon Nov 18 18:49:38 2002


Zitat von Richard Zuidhof <rzuidhof@zonnet.nl>:

> I can not translate variables like this:
> 
> $name="Search";
> echo _($name);
> 
> I also tried _("$name") but no success either. It prints the untranslated
> variable.
> 
> However, this works fine:
> 
> echo _("Search");

Do you have the string inside the .po file you use? If you use Horde's
extract functions, only strings like _("Search") will be detected and
extracted to the messages.po file.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the imp mailing list