Gettext support in PHP 4.3.8

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jelka
Forum Newbie
Posts: 3
Joined: Tue Apr 04, 2006 4:37 am

Gettext support in PHP 4.3.8

Post 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
jelka
Forum Newbie
Posts: 3
Joined: Tue Apr 04, 2006 4:37 am

Re: Gettext support in PHP 4.3.8

Post by jelka »

Was my question to hard or didn’t I explain it good enough?
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post 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.
jelka
Forum Newbie
Posts: 3
Joined: Tue Apr 04, 2006 4:37 am

Post 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 !
Post Reply