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
Georg Bauer
5354de5ddd
-d isn't used at the moment
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@727 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 17:19:11 +00:00
Georg Bauer
98d7430609
i18n patch - references #65
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@726 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 17:01:05 +00:00
Georg Bauer
a60b2050c6
Testing SVN branch commits
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@725 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 16:58:54 +00:00
Jacob Kaplan-Moss
5b59bb5c8f
Testing svn branch commit
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 15:44:46 +00:00
Jacob Kaplan-Moss
8813e41020
Created i18n branch.
...
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@722 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 15:27:57 +00:00
Adrian Holovaty
277cc05462
Changed django.core.template_file to use absolute import for 'template' module
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@721 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 15:06:53 +00:00
Jacob Kaplan-Moss
2aadb6ef8c
Nonsense change to README to test svn auth setup
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 15:04:02 +00:00
Adrian Holovaty
38649f4c3f
Fixed #537 -- Fixed typo in [718]. Thanks, Esaj
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@719 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 14:59:49 +00:00
Jacob Kaplan-Moss
22f27949bd
Fixed #537 ; thanks, fonso
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@718 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:29:12 +00:00
Jacob Kaplan-Moss
152d437305
Fixed #546 - render_to_string and render_to_response may now take lists of templates and use select_template instead of get_template. Thanks, hugo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@717 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:26:49 +00:00
Jacob Kaplan-Moss
808b3f4b91
Fixed #106 - "Add another" now correctly works in IE - thanks, Paolo
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@716 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 13:02:34 +00:00
Adrian Holovaty
8a7189f38f
Fixed #501 -- Fixed block.super in multi-level templates, and added unit tests to confirm. Thanks for the patch, django@kieranholland.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 04:22:09 +00:00
Adrian Holovaty
26021249a4
Fixed #573 -- Added 'Add another' link to many-to-many fields in admin. Thanks, hp@syntomax.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-29 03:19:14 +00:00
Adrian Holovaty
c1a16d54b0
Fixed #553 -- Added django.core.meta.fields.Field.get_internal_type() hook, for creating custom meta.Field subclasses. Thanks, wojtek3
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@713 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-28 23:08:47 +00:00
Jacob Kaplan-Moss
cd34c163cc
Moved JING from django.core.validators into settings where it belongs. Fixes #568 .
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@712 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:34:10 +00:00
Adrian Holovaty
8b67f5f829
Fixed #567 -- Added HttpRequest.has_key() method. Thanks, wojtek3@brandlay.com
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@711 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:33:25 +00:00
Jacob Kaplan-Moss
2d1303bd68
Added EMAIL_SUBJECT_PREFIX setting so you can customize the "[Django]" prefix
...
on emails send with mail_admins/mail_managers. Refs #568 .
git-svn-id: http://code.djangoproject.com/svn/django/trunk@710 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 16:32:21 +00:00
Adrian Holovaty
cac99144fd
Fixed #544 -- Added xmlns and lang attributes to <html> tag in admin_templates/base.html, so that the admin works when served as application/xhtml+xml. Thanks, Sune Kirkeby
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@706 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 04:28:18 +00:00
Adrian Holovaty
787ff70e9d
Fixed #563 -- Fixed minor typo in docs/cache.txt. Thanks, Eugene
...
git-svn-id: http://code.djangoproject.com/svn/django/trunk@705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
2005-09-27 04:25:08 +00:00