django1/django/contrib/flatpages
vanschelven 5e3b99d4cf Update django/contrib/flatpages/forms.py
Translate before passing in the variables (i.e. close the bracket earlier).
If you translate after passing in the variables the translated value will contain the actual values for 'url' and 'site' and will therefore not be translated.

(I'm not actually using django's flatpages, but I ran into this apparent error when doing a global grep on my own project)
2012-11-15 22:53:08 +01:00
..
fixtures Fixed #18408 -- Isolated flatpages tests from existing sites. 2012-05-31 18:03:49 +02:00
locale Updated base translation files 2012-10-15 11:17:06 +02:00
templatetags Made more extensive use of get_current_site 2012-09-28 20:33:05 +02:00
tests Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
__init__.py BACKWARDS-INCOMPATIBLE CHANGE -- Moved flatpages and redirects to standalone apps in django.contrib that are NOT installed by default. See http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges for full migration information. 2005-11-11 04:45:05 +00:00
admin.py Fixed #14678 -- Added validation to catch flatpages with the same URL on the same site. Thanks seler for the report, and joni, graham_king, and j4nu5 for work on the patch. 2011-10-07 15:45:52 +00:00
forms.py Update django/contrib/flatpages/forms.py 2012-11-15 22:53:08 +01:00
middleware.py Fixed #8376 -- Use request.path and request.path_info at the right moments when 2008-08-21 01:40:22 +00:00
models.py [py3] Refactored __unicode__ to __str__. 2012-08-12 14:44:40 +02:00
urls.py Fixed #14675 -- Completed removal of `from django.conf.urls.default import *` usage. 2011-09-11 22:36:16 +00:00
views.py Prevented flatpage view from directly accessing settings.SITE_ID 2012-10-01 14:19:33 +02:00