#13617: USE_L10N results in faulty javascript code in GeoDjango with some
locales
-----------------------+----------------------------------------------------
Reporter: piquadrat | Owner: nobody
Status: new | Milestone:
Component: GIS | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
-----------------------+----------------------------------------------------
German is one of the locales which uses a comma as the decimal separator.
When this locale is active, template code like
[http://code.djangoproject.com/browser/django/tags/releases/1.2/django/contrib/gis/templates/gis/google
/google-map.js#L12 this] results in faulty Javascript code, e.g:
{{{
#!javascript
geodjango.geopoint.setCenter(new GLatLng(47,3690239, 8,5380326), 12);
}}}
The problem is not strictly related to GeoDjango, it appears everywhere
where templates are used to generate Javascript (or other formats with
strict syntax) that contain floats.
--
Ticket URL: <http://code.djangoproject.com/ticket/13617>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.