Closed (duplicate)
Project:
Gallery
Version:
6.x-1.0
Component:
Code / API
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2010 at 04:02 UTC
Updated:
14 Feb 2011 at 20:36 UTC
I have a view page which show the location of a few node on a google map. This works fine with the English version of the page , but when I try the dutch version i get the "Javascript is required to view this map" error.
For some stranger reason this only occurs when the view is linked in a menu item.
I looked at the generate javascript code and i noticed that the only difference was that decimal Point het changed in to a comma. How do i prevent the translation of coordinates?
Comments
Comment #1
sstrong commentedI'm having this same issue... seeing that your question has gone 3 months without an answer is frightening.
Comment #2
pixelpreview@gmail.com commentedyes I confirm when I create a view with gmap display, I have no problem when I look this view in english but when I look at it in french ... the [data] in top of page are wrong
see the variable longitude and latitude of the markers, the decimal numbers are written with a comma and not a point in french ! and that breaks the javascript for the page : "longitude": 4,420452,
in gmap_plugin_style_gmap.inc on line 187, I have changed these lines :
to
Comment #3
iorgie commentedSame problem here. Site is dutch and the output of the module uses comma's in the lat en long.
The suggestion made by pixelpreview doesn't work for me, maybe because i am using a line and he is using markers. Just give me a hint to find the code producing this text.
http://php.net/manual/en/function.number-format.php might be the solution, but where to put it?
Comment #4
iorgie commentedProblem still exists in 6.19 with gmap 6.x-1.1
Would be nice if somesone gives this bug some attention
Comment #5
iorgie commentedChanging the default site language to English solves the problem for now. Can I conclude this is a Drupal bug not an Gmap?
Comment #6
iorgie commentedThe locale module edits the output of the Gmap module. This module outputs a lot of javascript.
using English:
Usin Dutch:
Which brings me to the next two questions:
-Why the hell would the locale module process / edit javascript output of another module?
-I know different languages use different symbols for decimal separation ie comma or point. Where can i change this setting?
----------
There is no such setting in http://ftp.drupal.org/files/translations/6.x/drupal/drupal-6.19.nl.po Looking further....
Comment #7
damien tournoud commentedCore doesn't change the current locale nor deal with numeric formatting settings.
What you are seeing is more likely the fact of a contributed module (possibly different then GMap) that would call
setlocale()carelessly. Try to identify it, and reassign to the proper issue queue.Comment #8
iorgie commentedDamien, thanks for your response.
It seem like your are on the right track. I've installed a cfresh drupal installation with ony the gmap module added. No mess up of the javascript.
I'll keep searching.
Comment #9
iorgie commentedEnabling the gallery module on a drupal site also running the gmap module messes with the output of the gmap module.
quick search revealed no
setlocale()within the module itself. Is gallery itself usingsetlocale()somewhere and messing with Drupal?Comment #10
iorgie commentedhttp://drupal.org/node/389452
Comment #11
iorgie commentedhttp://drupal.org/node/389452#comment-1532116 Solved my problem for now.
For me this confirm this is a bug in a drupal module, not gallery.
Comment #12
crifi commentedThis is a duplicate of #389452: setlocale() calls in Gallery wrongly transform float numbers in SQL.