[Mapbender-dev] LC_MESSAGES and Windows (again)

Thomas Baschetti Thomas.Baschetti at gmx.de
Thu Mar 5 09:40:59 EST 2009


Hi,

because LC_MESSAGES on windows is often undefined,
the following was addes to globalSettings.php

if (!defined('LC_MESSAGES')) define('LC_MESSAGES', 6);

see http://trac.osgeo.org/mapbender/ticket/312

OK, no PHP-Error, but still language support under windows seems to fail:

$selectedLocale = setlocale(LC_MESSAGES, $locale);
$e = new Mb_notice("setlocal fuer LC_MESSAGES " . LC_MESSAGES . " auf 
locale: >" . $selectedLocale . "<");

results in
Notice: setlocal fuer LC_MESSAGES 6 auf locale: ><

and an english mapbender

where
$selectedLocale = setlocale(LC_ALL, $locale);
$e = new Mb_notice("setlocal fuer LC_ALL " . LC_ALL . " auf locale: >" . 
$selectedLocale . "<");

results in
Notice: setlocal fuer LC_ALL 0 auf locale: >German_Germany.1252<

and a german mapbender (and the problems mentioned in 
http://trac.osgeo.org/mapbender/ticket/262

Can anyone confirm this?


Ciao
Thomas


More information about the Mapbender_dev mailing list