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)?
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*}.
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
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?
I was using Savane. Sorry for the delay, but I'm quite busy these days. I'll ready something asap.
no response from user.