#13617: USE_L10N results in faulty javascript code in GeoDjango with some 
locales
--------------------------------+-------------------------------------------
          Reporter:  piquadrat  |         Owner:  jbronn        
            Status:  assigned   |     Milestone:  1.3           
         Component:  GIS        |       Version:  1.2           
        Resolution:             |      Keywords:  L10N gis gmaps
             Stage:  Accepted   |     Has_patch:  0             
        Needs_docs:  0          |   Needs_tests:  0             
Needs_better_patch:  0          |  
--------------------------------+-------------------------------------------
Changes (by piquadrat):

 * cc: piquadrat (added)

Comment:

 How about introducing a template tag to temporarily disables L10N? e.g.

 {{{
 #!text/html
 {% noloc %}
     <script type="text/javascript">
         var myreal = {{ myreal }};
     </script>
 {% endnoloc %}
 }}}

 I'll let the native speakers come up with a better name for the tag ;)

 As an ugly workaround, one can use the fact that variables aren't
 localized if used with "{% firstof %}" (not sure if this is intended or
 another bug):

 {{{
 #!text/html
 {% firstof myvar 0 %}
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13617#comment:6>
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.

Reply via email to