Bug #17304: Cannot get gettext working

From: Date: Sat, 18 May 2002 10:55:53 +0000
Subject: Bug #17304: Cannot get gettext working
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-7979@lists.php.net to get a copy of this message
From: jsakalos@bigfoot.com Operating system: Linux PHP version: 4.2.0 PHP Bug Type: Gettext related Bug description: Cannot get gettext working I use SuSE Linux 7.3 distribution but I compiled PHP 4.2.0 from source as an apache module --with-apxs and --with-gettext=/usr I also compiled gettext 0.11.2 from source. I tried also --with-included-gettext in vain. When I use gettext from command line, it works: env LANG=sk_SK gettext -sd bsis "This I want to translate" Toto chcem prelozit or, when my locale is not in /usr/share/locale env LANG=sk_SK TEXTDOMAINDIR=/web/bsis/locale gettext .... The PHP script I use is: putenv("LANG=sk_SK"); bindtextdomain("bsis", "./locale"); textdomain("bsis"); echo _("This I want to translate"); Running this script I always get only the english text. -- Edit bug report at http://bugs.php.net/?id=17304&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17304&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17304&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17304&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17304&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17304&r=support Expected behavior: http://bugs.php.net/fix.php?id=17304&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17304&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17304&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17304&r=globals

« previous php.bugs (#7979) next »