PHP 4.0 Bug #8969: Gettext does not work
| From: | teejun at vallcom dot com | Date: | Sun, 28 Jan 2001 19:30:38 +0000 |
| Subject: | PHP 4.0 Bug #8969: Gettext does not work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45277@lists.php.net to get a copy of this message | ||
From: teejun@vallcom.com
Operating system: Linux RedHat 7.0
PHP version: 4.0.4pl1
PHP Bug Type: Gettext related
Bug description: Gettext does not work
1) Just to show that gettext works in the system:
A script:
[teemu@jolly Test]$ cat loca2.sh
#!/bin/sh
LANG=fi
export LANG
TEXTDOMAINDIR=/usr/share/locale
export TEXTDOMAINDIR
TEXTDOMAIN=rpm
export TEXTDOMAIN
gettext "query package owning <file>"
echo
Run the script:
[teemu@jolly Test]$ sh loca2.sh
kysy pakettia, jonka omistuksessa <tiedosto> on
2) Try the same with PHP:
A script:
[teemu@jolly Test]$ cat loca2.php
<?php
putenv ("LANG=fi");
bindtextdomain ("rpm", "/usr/share/locale");
textdomain ("rpm");
print (gettext ("query package owning <file>"));
print ("\n");
?>
Running it:
[teemu@jolly Test]$ /var/www/cgi-bin/php loca2.php
X-Powered-By: PHP/4.0.4pl1
Content-type: text/html
query package owning <file>
3) My configure line:
[teemu@jolly Test]$ strings /var/www/cgi-bin/php | grep configure
'./configure' '--with-config-file-path=/etc/httpd/conf'
'--enable-track-vars' '--enable-force-cgi-redirect' '--with-gettext'
4) I am using the php.ini-dist without modifications.
I have the same problem even if I try to use php-4.0.4pl1-3 (RedHat rpm)
and with php 4.0.2
I have installed my RedHat 7.0 about one month ago and I have run up2date several times.
I saw another report on gettext in problem #8444. The problem was fixed by reinstalling linux. I
really don't feel for reinstalling my OS. And I am afraid that it would only fix the problem
temporarily (untill I update my system).
Best regards,
Teemu Junnila
--
Edit Bug report at: http://bugs.php.net/?id=8969&edit=1