diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2006-01-27 15:49:50 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2006-01-27 15:49:50 +0000 |
| commit | e35655081f105c727d6d57db75ae1b99aa22b60d (patch) | |
| tree | 65890f1f0729ea7bbfeb7977f01fd7b86818f6d2 /django/utils | |
| parent | 23d2be171447bef6f0b30686ffe5324b646d3fb6 (diff) | |
Fixed #1244 -- Renamed templateize to templatize in django.utils.translation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2132 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/translation.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/translation.py b/django/utils/translation.py index dda8c5d7b6..56cd5426f0 100644 --- a/django/utils/translation.py +++ b/django/utils/translation.py @@ -369,7 +369,7 @@ dot_re = re.compile(r'\S') def blankout(src, char): """ Changes every non-whitespace character to the given char. - Used in the templateize function. + Used in the templatize function. """ return dot_re.sub(char, src) @@ -378,7 +378,7 @@ block_re = re.compile(r"""^\s*blocktrans(?:\s+|$)""") endblock_re = re.compile(r"""^\s*endblocktrans$""") plural_re = re.compile(r"""^\s*plural$""") constant_re = re.compile(r"""_\(((?:".*?")|(?:'.*?'))\)""") -def templateize(src): +def templatize(src): """ Turns a Django template into something that is understood by xgettext. It does so by translating the Django translation tags into standard gettext |
