Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64660 - Cannot get gettext support working in mod_php
Summary: Cannot get gettext support working in mod_php
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-19 10:41 UTC by Matteo Settenvini
Modified: 2004-12-07 17:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
My php_info() output (test.php.html,34.92 KB, text/html)
2004-09-19 13:10 UTC, Matteo Settenvini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matteo Settenvini 2004-09-19 10:41:19 UTC
I compiled mod_php and php with the +nls use flag. php_info() reports gettext support is enabled (I uncommented the right line in php.ini). But I can't get it to translate the strings I have. On other machines with other distros the same pages work well and get translated.

I noticed in http://www.php.net/gettext that:
"To include GNU gettext support in your PHP build you must add the option --with-gettext[=DIR] where DIR is the gettext install directory, defaults to /usr/local."

But in Gentoo gettext is in /usr instead (/usr/bin/gettext).
So is it already right (and then I apologize for this bug), or does it need also the dir passed as an argument at compile time by the php eclass(es)?
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-19 13:00:00 UTC
please include your 'emerge info' output, as well as your phpinfo(); output.
GetText works perfectly fine for me with USE=nls on all of {php,mod_php}-{4*,5*}.
Comment 2 Matteo Settenvini 2004-09-19 13:10:46 UTC
Created attachment 39944 [details]
My php_info() output

Emerge info:
Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040808-r0,
2.6.8-gentoo-r4 i686)
=================================================================
System uname: 2.6.8-gentoo-r4 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.5.3
distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr cjk crypt
cups directfb doc dvd emacs encode esd foomaticdb gdbm gif gnome gpm gtk gtk2
gtkhtml guile imap imlib jack java jpeg kde libg++ libwww mad maildirmbox
mikmod mmx motif mpeg mysql nas ncurses nls oggvorbis opengl oss pam pcmcia
pdflib perl png python qt quicktime readline samba sasl sdl slang spell sse
sse2 ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xprint xv zlib
video_cards_i810 video_cards_i830 linguas_it"

From /etc/portage/package.use :
dev-php/mod_php gd dba -sasl
dev-php/php gd dba -sasl
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-19 20:13:38 UTC
That side of it all looks fine, so I'm not sure why it isn't working.
Gettext support in Horde works fine for me.

Could you do up a small testcase that works on another distro and fails on Gentoo and attach it here?
Comment 4 Matteo Settenvini 2004-09-25 00:06:34 UTC
I was using Savane. Sorry for the delay, but I'm quite busy these days. I'll ready something asap.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-07 17:32:57 UTC
no response from user.