Opened 15 years ago

Closed 15 years ago

#312 closed task (fixed)

i18n Translation does not work on all server class_locale.php

Reported by: astrid_emde Owned by: astrid_emde
Priority: major Milestone: 2.5.1 release
Component: i18n Version: 2.5
Keywords: Cc:

Description


Change History (4)

comment:1 by christoph, 15 years ago

Cc: christoph removed
Resolution: fixed
Status: newclosed

Did you receive this error message?

PHP Warning: setlocale() [<a href='function.setlocale'>function.setlocale</a>]: Invalid locale category name LC_MESSAGES, must be one of LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, or LC_TIME. in ...

The PHP constant LC_MESSAGES seems to be undefined on Windows machines, see

http://lists.mysql.com/eventum-devel/439

I have added this line to globalSettings.php

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

http://trac.osgeo.org/mapbender/changeset/3240

Please re-open if it still doesn't work.

comment:3 by christoph, 15 years ago

Resolution: fixed
Status: closedreopened

The error message disappears with the workaround, but the locale ist not found.

$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: ><

comment:4 by christoph, 15 years ago

Resolution: fixed
Status: reopenedclosed

workaround. LC_MESSAGES doesn't seem to work under Windows.

2.5

http://trac.osgeo.org/mapbender/changeset/3657

trunk

http://trac.osgeo.org/mapbender/changeset/3658

Note: See TracTickets for help on using tickets.