Ticket #7050: 7916_v2.diff
File 7916_v2.diff, 1021 bytes (added by , 16 years ago) |
---|
-
core/management/commands/makemessages.py
59 59 os.unlink(potfile) 60 60 61 61 all_files = [] 62 for (dirpath, dirnames, filenames) in os.walk("."): 63 all_files.extend([(dirpath, f) for f in filenames]) 62 for dir_content in os.listdir('.'): 63 if os.path.isfile(dir_content): 64 all_files.append(('.', dir_content)) 65 elif not os.path.isdir(os.path.join(dir_content, 'locale', locale)) and not os.path.isdir(os.path.join(dir_content, 'conf', 'locale', locale)): 66 for (dirpath, dirnames, filenames) in os.walk(dir_content): 67 all_files.extend([(dirpath, f) for f in filenames]) 64 68 all_files.sort() 65 69 for dirpath, file in all_files: 66 70 if domain == 'djangojs' and file.endswith('.js'):