Django

Code

Changeset 2132

Show
Ignore:
Timestamp:
01/27/06 09:49:50 (3 years ago)
Author:
adrian
Message:

Fixed #1244 -- Renamed templateize to templatize in django.utils.translation.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/bin/make-messages.py

    r2056 r2132  
    11#!/usr/bin/python 
    22 
    3 from django.utils.translation import templateize 
     3from django.utils.translation import templatize 
    44import re 
    55import os 
     
    9797                    if file.endswith('.html'): 
    9898                        src = open(os.path.join(dirpath, file), "rb").read() 
    99                         open(os.path.join(dirpath, '%s.py' % file), "wb").write(templateize(src)) 
     99                        open(os.path.join(dirpath, '%s.py' % file), "wb").write(templatize(src)) 
    100100                        thefile = '%s.py' % file 
    101101                    if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath)) 
  • django/trunk/django/utils/translation.py

    r1941 r2132  
    370370    """ 
    371371    Changes every non-whitespace character to the given char. 
    372     Used in the templateize function. 
     372    Used in the templatize function. 
    373373    """ 
    374374    return dot_re.sub(char, src) 
     
    379379plural_re = re.compile(r"""^\s*plural$""") 
    380380constant_re = re.compile(r"""_\(((?:".*?")|(?:'.*?'))\)""") 
    381 def templateize(src): 
     381def templatize(src): 
    382382    """ 
    383383    Turns a Django template into something that is understood by xgettext. It