How can i use gettext in windows 2000
problem in compile .po file. how can i make the .po file.

tell me in detail step by step.
also unable to find msgfmt.exe, libiconv.dll, libintl.dll to compile .po file in windows

    How we make the .po file from php file in windows. i have the code given below:-

    <?php

    $language = 'jp';

    putenv("LANG=$language");

    setlocale(LC_ALL, $language);

    // Set the text domain as 'messages'
    $domain = 'messages';
    echo bindtextdomain($domain, ".\locale");

    textdomain($domain);

    echo gettext("A string to be translated would go here");
    ?>

    now i want to make messages.po file.how can i make this on.

    can it generates automatically in windows.

    please help me

      How we make the .po file from php file in windows. i have the code given below:-

      <?php

      $language = 'jp';

      putenv("LANG=$language");

      setlocale(LC_ALL, $language);

      // Set the text domain as 'messages'
      $domain = 'messages';
      echo bindtextdomain($domain, ".\locale");

      textdomain($domain);

      echo gettext("A string to be translated would go here");
      ?>

      now i want to make messages.po file.how can i make this on.

      can it generates automatically in windows.

      please help me

        $handle = fopen('messages.po','w');
        fwrite($handle,'A string to be translated would go here');
        fclose;
        

        or maybe have a read of my signiture.

          Write a Reply...