Re: Problems passing variables to gettext

Hans-Peter Oeri <[email protected]> Wed, 23 Dec 2009 11:50:31 +0100
Newsgroups gmane.comp.php.internationalization
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

-- 
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php