[Mapbender-dev] setlocale, LC_MESSAGES and windows
Christoph Baudson
christoph.baudson at wheregroup.com
Tue Dec 9 08:21:57 EST 2008
Thomas Baschetti schrieb:
> Hi,
>
> today i encountered a little problem:
> In class_locale.php we call
>
> $selectedLocale = setlocale(LC_MESSAGES, $locale);
>
> which gives a warning.
> Warning: setlocale() [function.setlocale]: Invalid locale category name LC_MESSAGES, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME in C:\Programme\mapbender\http\classes\class_locale.php on line 103
>
> (i had warnings turned off, so i didn't notice this before...)
>
> According to http://de.php.net/manual/en/function.setlocale.php the constant is not always defined:
> LC_MESSAGES for system responses (available if PHP was compiled with libintl)
>
> Unfortunatly PHP under windows doesn't seem to be compiled with libintl, neither
> the version from php.net nor the version bundled with MS4W.
>
> Can we savely change this line, e.g. to
>
> $selectedLocale = setlocale(LC_ALL, $locale);
>
> or do we need a workaround for windows-systems?
> Or am i missing something?
>
> Bye
> Thomas
>
>
Hi Thomas,
this is a known bug, see
http://trac.osgeo.org/mapbender/ticket/312
It will be fixed in 2.5.1.
Christoph
--
********************************************
Where2B-Konferenz
Die Geo-IT Konferenz der WhereGroup
vom 9.-10. Dezember 2008 in Bonn
Web: www.where2b-conference.com
********************************************
_______________________________________
W h e r e G r o u p GmbH & Co. KG
Siemensstraße 8
53121 Bonn
Germany
Christoph Baudson
Anwendungsentwickler
Fon: +49 (0)228 / 90 90 38 - 15
Fax: +49 (0)228 / 90 90 38 - 11
christoph.baudson at wheregroup.com
www.wheregroup.com
Amtsgericht Bonn, HRA 6788
_______________________________________
Komplementärin:
WhereGroup Verwaltungs GmbH
vertreten durch:
Olaf Knopp, Peter Stamm
_______________________________________
More information about the Mapbender_dev
mailing list