Changeset 761
- Timestamp:
- 10/01/05 11:35:20 (3 years ago)
- Files:
-
- django/branches/i18n/django/core/template.py (modified) (1 diff)
- django/branches/i18n/tests/othertests/templates.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/i18n/django/core/template.py
r760 r761 419 419 current = path[1:-1] 420 420 elif path.startswith('_(') and path.endswith(')') and path[2] in ("'", '"') and path[-2] == path[2]: 421 current = _(path[3:-2]) 421 current = _(path[3:-2]) % context 422 422 else: 423 423 current = context django/branches/i18n/tests/othertests/templates.py
r760 r761 245 245 # translation of string without i18n tag 246 246 'i18n11': ('{{ _("blah") }}', {}, "blah"), 247 248 # translation of string without i18n tag but with interpolation 249 'i18n12': ('{{ _("blah%(anton)s") }}', {'anton': 'blubb'}, "blahblubb"), 247 250 } 248 251
