Page 1 of 1

Gettext support in PHP 4.3.8

Posted: Tue Apr 04, 2006 7:42 am
by jelka
Hi !

I would like to use a web-based php application that needs gettext support.

I found similar problem (viewtopic.php?t=22807&highlight=compile+gettext) to mine on this forum and I hope there is a simular solution.

This is the solution:
You will need the full package (i.e. the .zip package). Go download that and extarct the libintl-1.dll and iconv.dll files from the zip and place both these files in your windows system32 directory.

Then edit your php.ini file to uncomment the gettext extension. i.e...
find ';extension=php_gettext.dll'

and change to 'extension=php_gettext.dll' without the quotes.

Restart your server and all should be good.

I have PHP 4.3.8 and would also that has no gettext support. I tried to download php-4.3.8-Win32.zip (to follow instructions of solution above) but could not find it anywhere. (http://museum.php.net/win32/php-4.3.8-Win32.zip returns 404 File not found error).

I do have php-4.3.9-Win32.zip on my computer and wonder if I can use this to extract the dlls, needed to add gettext support (as was described in the solution of simular problem). Another problem is that the dll "libintl-1.dll" is not present in this php-4.3.9-Win32.zip (the iconv.dll is there).

Any ideas?

Jelka

Re: Gettext support in PHP 4.3.8

Posted: Fri Apr 07, 2006 4:47 am
by jelka
Was my question to hard or didn’t I explain it good enough?

Posted: Fri Apr 07, 2006 7:25 am
by redmonkey
libintl-1.dll is no longer required as of PHP 4.3.8 you only need the iconv.dll, the iconv.dll from PHP 4.3.9 package will most likely work OK with PHP 4.3.8, if not I might have an iconv.dll file from the PHP 4.3.8 windows package knocking around here somewhere.

Posted: Fri Apr 07, 2006 9:43 am
by jelka
redmonkey wrote:the iconv.dll from PHP 4.3.9 package will most likely work OK with PHP 4.3.8, if not I might have an iconv.dll file from the PHP 4.3.8 windows package knocking around here somewhere.
OK I will try with the iconv.dll from 4.3.9 version and notify how it turns out.

Thank you !