#18932: Buildin template tags seem to break i18n
-------------------------------------+-------------------------------------
     Reporter:  houmie               |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:                       |                  Version:
  Internationalization               |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  i18n                 |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by houmie):

 * version:  1.4 =>
 * type:  Bug => New feature


Comment:

 Thanks for your feedback.

 Well I have already overridden the formats.py for both American and
 British (you can see that in the attached demo). Therefore upon changing
 the language, the best would be if the current language's formatting is
 picked up from formats.py.

 Otherwise if I had to pass a format string to the template it will be
 hardcoded in the template and the whole purpose of formats.py is gone
 through the wind. Since the moment the user changes the language, the
 formatting would change accordingly and hence the latter can't be
 hardcoded into the template.

 |date and |time are very useful to extract the data from a single date
 time field in the template.  Therefore shouldn't they respect localization
 and timezones respectively?

 If you agree to this I have changed the type of this ticket to 'New
 Feature'.
 Hopefully this can be implemented, as its very useful to have.

 Many Thanks,

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18932#comment:4>
Django <https://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 https://groups.google.com/groups/opt_out.


Reply via email to