Problems passing variables to gettext

From: Date: Wed, 23 Dec 2009 03:48:27 +0000
Subject: Problems passing variables to gettext
Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1341@lists.php.net to get a copy of this message
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.

« previous php.i18n (#1341) next »