diff -r e3e70e197d8d django/bin/make-messages.py
--- a/django/bin/make-messages.py	Fri Sep 14 16:28:26 2007 -0300
+++ b/django/bin/make-messages.py	Sat Sep 15 08:46:26 2007 -0300
@@ -74,8 +74,13 @@ def make_messages():
         if os.path.exists(potfile):
             os.unlink(potfile)
 
+        all_files = []
         for (dirpath, dirnames, filenames) in os.walk("."):
             for file in filenames:
+                all_files.append(os.path.join(dirpath, file))
+            all_files.sort()
+            for file_full_path in all_files:
+                (dirpath, file) = os.path.split(file_full_path)
                 if domain == 'djangojs' and file.endswith('.js'):
                     if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath))
                     src = open(os.path.join(dirpath, file), "rb").read()
