From: [EMAIL PROTECTED]
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