|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-30 08:24 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
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