Hello, I have a problem using gettext in php that I can't solve, I've been
through the different posts, and can't get it. 

I have a file of string variables for a site, like address, phone, etc, of
which one of them has to be translated. 
So I put in the variables.php file
$sitetitle= _('My beautiful site') ; 

Translated it in the po files (through PO edit)

Now in my index page, I set the locales, and call my variables. 
And I can't get $sitetitle to be translated, it still stays in the original
language (which means the variable is recognized, but not translated)

the echo _($sitetitle) does not work. 

Any idea ? 
-- 
View this message in context: 
http://old.nabble.com/Problems-passing-variables-to-gettext-tp26897598p26897598.html
Sent from the Php - Internationalization (i18n) mailing list archive at 
Nabble.com.


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

Reply via email to