Re: How is /admin/jsi18n/ created
On Thu, Dec 5, 2013 at 4:05 PM, Vincent Hussey <vinhussey@gmail.com> wrote:
> Hi,
> We are looking at date formats for django and we are trying to figure out
> how django creates the localised formats found at the link below.
>
> After a bit of investigation we have found out how to set them using
> DATE_FORMAT, TIME_FORMAT etc. settings in settings.py, but we'd
> like to figure out how this url is generated - it looks like a dynamically
> created link based on
> django/conf/global_settings.py, modified by
> django/conf/locale/xx/formats.py, but we are struggling to figure out the
> exact mechanism.
>
> <script type="text/javascript" src="/admin/jsi18n/"></script>
>
> Thanks
> Vincent
https://docs.djangoproject.com/en/1.6/topics/i18n/translation/#internationalization-in-javascript-code
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1%2BzkfQLW_1k8uWcLYL1gJRhnDy40fjGRUDpXrSQems%2BZA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home