ID: 29831 Updated by: [EMAIL PROTECTED] Reported By: tedf at ndrw dot co dot uk -Status: Assigned +Status: Closed Bug Type: Gettext related Operating System: Windows NT PHP Version: 4.3.8 Assigned To: edink New Comment:
You can use 4.3.9RC1 until 4.3.9 final is released. 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