Gettext on WAMP / Windows

I have some difficulties working out how to make the native gettext extension work in my WAMP environment on Windows 7. I have tried everything I can think of but still nothing. I have now stripped everything down to a simple example:

PHP:

<?php

header( ‘Content-Type: text/html; charset=UTF-8′ );

 

$locale = "Dutch_Netherlands.1252";

 

if (!function_exists("gettext"))

  {

  echo "gettext is not installed";

  }

  else

  {

  echo "gettext is supported";

  }

 

var_dump(putenv("LC_ALL=$locale"));…

Gettext on WAMP / Windows

See original post by vineld

Leave a Reply