[pmwiki-users] Solved (was: Problem with Google Map API and locale de_DE)

Christian Bartolomaeus bartolin at gmx.de
Wed Jun 7 10:47:09 CDT 2006


* On 2006-06-07 Patrick R. Michaud (pmichaud at pobox.com) wrote:
> On Tue, Jun 06, 2006 at 09:23:02PM +0200, Christian Bartolomaeus wrote:
> > Hi,
> > 
> > I just encountered the following problem with the new 
> > Google Map API [1]: When using the Google Map API on a wiki which
> > sets 
> > 
> >   'Locale' => 'de_DE'
> > 
> > via XLPage, the GMap-API seems to get confused. I guess it has
> > something to do with using the dot '.' instead of the comma ',' when
> > giving fractional numbers as values for latitude ('lat') and longitude
> > ('lon').
> > [...]
> 
> The locale setting is causing periods to change to commas.
> After the call to XLPage(), try restoring the locale back to
> the standard dot:
> 
>     XLPage('de', 'PmWikiDe.XLPage');
>     setlocale(LC_NUMERIC, 'C');

Worked like a charm. Thanks a lot!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : /pipermail/pmwiki-users/attachments/20060607/fc0eca0b/attachment.bin 


More information about the pmwiki-users mailing list