Ticket #10867: django-makemessages.patch
File django-makemessages.patch, 688 bytes (added by , 16 years ago) |
---|
-
makemessages.py
1 1 import re 2 2 import os 3 3 import sys 4 import glob 4 5 import warnings 5 6 from itertools import dropwhile 6 7 from optparse import make_option … … 95 96 if locale is not None: 96 97 languages.append(locale) 97 98 elif all: 98 languages = [el for el in os.listdir(localedir) if not el.startswith('.')] 99 locale_dirs = filter(os.path.isdir, glob.glob('%s/*' % localedir)) 100 languages = [os.path.basename(l) for l in locale_dirs] 99 101 100 102 for locale in languages: 101 103 if verbosity > 0: