Results 1 to 1 of 1

Thread: PHP GetText dosn't work

  1. #1
    Join Date
    Feb 2010
    Posts
    5

    PHP GetText dosn't work

    Hello,

    I wrote a php page to test gettext on WAMP2 server on Windows XP.
    I created the .po file using POEdit.
    The problem is that it works with PHP 5.3.8 but it doesn't work (for example) with PHP 5.3.0 and 5.3.3, here is my source code:

    <?php
    putenv("LC_ALL=fr_FR");
    setlocale(LC_ALL, 'fr_FR');
    bindtextdomain("messages", "./locale");
    textdomain("messages");

    echo gettext("Hello World!");
    ?>

    Thanks in advance for helping me.
    Last edited by fadishouha; 10 Nov 2011 at 09:16 AM.

Similar Threads

  1. Help with a project at work (IT/WebServices/PHP?)
    By Punker51 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 18 Jan 2011, 09:00 AM
  2. gettext not working under local xampp
    By thosecars82 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 13 Apr 2010, 05:42 AM
  3. javascrip in php -- does it work?
    By yesberger in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 11 Jul 2006, 12:49 PM
  4. Php Script log-in won't work
    By Arez in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 26 Feb 2006, 05:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •