1
0
mirror of https://github.com/django/django.git synced 2025-04-24 17:24:37 +00:00

852 Commits

Author SHA1 Message Date
Adrian Holovaty
ab9aacd4db Fixed #333 and #440 -- Split DEFAULT_MIME_TYPE setting into DEFAULT_CONTENT_TYPE and DEFAULT_CHARSET. Thanks, Maniac.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@786 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 02:27:08 +00:00
Adrian Holovaty
261ab166ce Fixed #586 -- raw_id_admin now works with non-integer primary keys
git-svn-id: http://code.djangoproject.com/svn/django/trunk@785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:51:30 +00:00
Adrian Holovaty
8dda2aeaa3 Improved model validator to check admin.list_filter and type-check admin.list_display
git-svn-id: http://code.djangoproject.com/svn/django/trunk@784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-06 01:41:54 +00:00
Adrian Holovaty
c3fa47edb8 Added USE_FLAT_PAGES setting, which defaults to True.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@782 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 23:36:17 +00:00
Adrian Holovaty
16f9b08611 Clarified get_FOO_list part of docs/db-api.txt to specify keyword arguments are also accepted
git-svn-id: http://code.djangoproject.com/svn/django/trunk@781 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 22:47:36 +00:00
Georg Bauer
04a66b6e55 i18n: added russian translation and added patch for sr translation. thx dimas and petar.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@779 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 13:38:56 +00:00
Georg Bauer
05f9ed4588 i18n: added sr-translation patch from #65
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 12:14:02 +00:00
Georg Bauer
a3899f2226 i18n: make-messages now supports directory names with blanks in them
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@777 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-05 10:34:54 +00:00
Georg Bauer
ce1e5ca769 i18n: added first take at spanish translation (thanks heimy!)
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@776 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 20:10:36 +00:00
Georg Bauer
6e2b74d65e i18n: merged r722:774 from trunk
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@775 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 19:34:43 +00:00
Jacob Kaplan-Moss
837afc5a29 Changed default JING_PATH setting to be something that might actually be useful.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@774 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 18:05:37 +00:00
Adrian Holovaty
78b8fcc235 Fixed typo in docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@772 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 15:17:22 +00:00
Adrian Holovaty
6f07f717c0 Fixed #591 -- fixed typo in docs/templates_python.txt. Thanks, Boffbowsh
git-svn-id: http://code.djangoproject.com/svn/django/trunk@771 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-04 13:34:59 +00:00
Georg Bauer
8c2b8aaee6 i18n: updated the documentation for the new features
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@770 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-03 12:33:50 +00:00
Georg Bauer
5e24a67952 take django_language either from GET or POST (GET has preference if both
are given)


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@769 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-03 12:20:18 +00:00
Georg Bauer
4196ff0b17 i18n: added GET-support to language selection, added serbian translation file and added some convenience
stuff to the DjangoContext - all from a patch by nesh on the list. Thanks nesh! References #65.


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@768 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-03 10:15:11 +00:00
Georg Bauer
ed3f73674b i18n: added preliminary .it translations. thanks C8N.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@767 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-02 18:35:32 +00:00
Georg Bauer
6dec479396 i18n: fixed a bug in one admin template and updated the german translations for the admin
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@764 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 17:33:40 +00:00
Georg Bauer
0649365f43 i18n: changed all admin templates to use the new shorter {{ _(..) }} syntax for i18n strings.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:47:15 +00:00
Georg Bauer
bd9cb4c9f4 i18n: fixed a rather stupid bug in language discovery (sort descending by preference value instead ascending)
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@762 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:45:16 +00:00
Georg Bauer
009694db63 i18n: i18n string resolution now does string interpolation against the context, too
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:35:20 +00:00
Georg Bauer
ae3c26df62 i18n: changed resolve_variable and resolve_variable_with_filters to allways
accept string constants and to accept i18n string constants with _(), too.
That way the i18n tag isn't needed in simple cases.


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 16:24:21 +00:00
Georg Bauer
280747f757 i18n: language en is now successfully recognized on accept-header parsing
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@759 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 15:45:07 +00:00
Georg Bauer
59052e48db i18n: switched ngettext to make use of the standard ngettext instead simulating via gettext
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@758 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 13:28:59 +00:00
Georg Bauer
2c6e366f0a i18n: the i18n tag now supports gettext_noop. unittests updated.
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@757 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 13:05:57 +00:00
Georg Bauer
26bc142f87 i18n: updated the documentation to list ngettext
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 12:56:12 +00:00
Georg Bauer
4eb73a3584 i18n now has support for ngettext and has unittests
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@755 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-10-01 12:47:22 +00:00
Adrian Holovaty
da71528717 Added missing period to docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@754 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 22:07:19 +00:00
Adrian Holovaty
53581d6d8d Small tweak to docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@753 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 22:05:44 +00:00
Adrian Holovaty
a0595851b6 Added docs/outputting_pdf.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 22:02:51 +00:00
Georg Bauer
3049adf485 i18n: added a note on request.LANGUAGE_CODE to the i18n documentation
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@751 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 20:13:41 +00:00
Georg Bauer
64a6eaeb63 i18n: added a first shot at a documentation that tells about how to
do translations with django.


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@750 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 20:10:38 +00:00
Adrian Holovaty
7cc9526b2e Fixed typo in docs/tutorial01.txt. Thanks, Aggelos Orfanakos
git-svn-id: http://code.djangoproject.com/svn/django/trunk@747 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 16:40:15 +00:00
Adrian Holovaty
acde573821 Fixed typo in docs/db-api.txt. Thanks, Aggelos Orfanakos
git-svn-id: http://code.djangoproject.com/svn/django/trunk@746 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 16:39:05 +00:00
Adrian Holovaty
5595fe2aa6 Fixed typo in docs/tutorial03.txt. Thanks, Aggelos Orfanakos
git-svn-id: http://code.djangoproject.com/svn/django/trunk@745 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 16:38:03 +00:00
Georg Bauer
96e37129ba the i18n middleware now stores the chosen language in the request
so that view code can know what language is chosen (for example
to select the right content field from the model if your model
supports multiple languages)


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@744 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 15:53:36 +00:00
Jacob Kaplan-Moss
6b2226bab8 Fixed #447 - the RSS framework can now output pub dates
git-svn-id: http://code.djangoproject.com/svn/django/trunk@743 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 13:58:30 +00:00
Jacob Kaplan-Moss
1838c76307 Fixed #472 - added notes about File/ImageFields from the FAQ to the model API doc
git-svn-id: http://code.djangoproject.com/svn/django/trunk@742 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 13:49:43 +00:00
Georg Bauer
80e450ee2d i18n template tag now accepts varibles with filters or strings.
Variables with filters won't be pulled out for translation, of course, but
will just run the result of the filter through the translation engine.


git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@739 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 08:53:35 +00:00
Georg Bauer
f913e4d8c9 added a gettext_noop function to django.utils.translation
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-30 08:49:11 +00:00
Adrian Holovaty
998fc72c0d Changed [735] so that database-agnostic SQL always gets executed, even if database-specific SQL doesn't exist.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@737 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:43:03 +00:00
Jacob Kaplan-Moss
27b1f69d79 Fixed #295 - added {{{forloop.revcounter}}} and {{{forloop.revcounter0}}} variables to for loops. Also updated the docs and added unit tests to verify correct behavior. Thanks, Clint.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@736 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:34:29 +00:00
Jacob Kaplan-Moss
151b44c89a Fixed #363 - django-admin sqlall now uses database-specific initial data files if they exist.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@735 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:23:11 +00:00
Jacob Kaplan-Moss
022a03ab32 Fixed #541 - generic views now may take a {{{template_loader}}} argument so they can use a different template loader than Django's own. Thanks, Joao.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@734 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 23:16:29 +00:00
Georg Bauer
828ca2572d fixed a missing i18n command in the password changing form
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@733 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 22:39:15 +00:00
Jacob Kaplan-Moss
bab70003fe Fixed #574 - small CSS issue in admin tables. Thanks, Hein-Pieter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@732 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 22:36:48 +00:00
Jacob Kaplan-Moss
2425907eac Fixed #576 - popups no longer show "save & continue" buttons. Thanks, Hein-Pieter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@731 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 22:34:17 +00:00
Georg Bauer
e3b2fbf6ad added more translations for the admin templates so that we can see how translated admin might look - references #65
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 21:23:41 +00:00
Georg Bauer
2c8a8c3c46 made make-messages.py more intelligent with template scanning
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@729 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 21:07:35 +00:00
Adrian Holovaty
3dd1d28c7f Clarified potentially confusing sentence in docs/modpython.txt
git-svn-id: http://code.djangoproject.com/svn/django/trunk@728 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 19:56:17 +00:00