Re: [PHP-I18N] Problems passing variables to gettext
[email protected] (Hans-Peter Oeri) Wed, 23 Dec 2009 11:50:31 +0100
| Newsgroups | php.i18n |
|---|---|
| Message-ID | <[email protected]> |
Hi!
Marie-Aude wrote:
> $sitetitle= _('My beautiful site') ;
[...]
> the echo _($sitetitle) does not work.
Are you actually trying to translate your site's title twice?
If not, gettext problems usually arise from not/wrongly setting the
domain and the path gettext is expecting. If you have a look at the
php manual for the gettext function, there is a complete example.
Greets
HPO