#29831 [Opn->Asn]: gettext missing from windows build

From: Date: Sat, 28 Aug 2004 18:10:25 +0000
Subject: #29831 [Opn->Asn]: gettext missing from windows build
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65390@lists.php.net to get a copy of this message
ID: 29831 Updated by: sniper@php.net -Summary: bindtextdomain Reported By: tedf at ndrw dot co dot uk -Status: Open +Status: Assigned -Bug Type: *Configuration Issues +Bug Type: Gettext related Operating System: Windows NT PHP Version: 4.3.8 -Assigned To: +Assigned To: edink Previous Comments: ------------------------------------------------------------------------ [2004-08-25 09:58:57] tedf at ndrw dot co dot uk Description: ------------ It seems that this function requires the gettext module, I assume this is php-gettext.dll this is not shipped with 4.3.8. My test code work OK on Linux fails on Windows. Any suggestions? I am using 4.3.8 becasue it is the same version as My ISP is using. There is fix in bug report #18693 but the download link is bad Reproduce code: --------------- <?php // Set language to German setlocale(LC_ALL, 'de_DE'); // Specify location of translation tables bindtextdomain("myPHPApp", "./locale"); // Choose domain textdomain("myPHPApp"); // Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now // Print a test message echo gettext("Welcome to My PHP Application"); // Or use the alias _() for gettext() echo _("Have a nice day"); ?> Expected result: ---------------- Dsiplay some text Actual result: -------------- Fatal error: Call to undefined function: bindtextdomain() in F:\Inetpub\wwwroot\test\bind.php on line 6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29831&edit=1

« previous php.bugs (#65390) next »