changeset 154:31478eb3fb9e trunk

The default ordering of messages in generated POT files, which is based on the order those messages are found when walking the source tree, is no longer subject to differences between platforms; directory and file names are now always sorted alphabetically.
author cmlenz
date Wed, 20 Jun 2007 21:41:00 +0000
parents 6cb586dc80aa
children 22bc386e2bc3
files ChangeLog babel/messages/extract.py
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,10 @@
  * The character set specified in PO template files is now respected when
    creating new catalog files based on that template. This allows the use of
    characters outside the ASCII range in POT files (ticket #17).
+ * The default ordering of messages in generated POT files, which is based on
+   the order those messages are found when walking the source tree, is no
+   longer subject to differences between platforms; directory and file names
+   are now always sorted alphabetically.
 
 
 Version 0.8
--- a/babel/messages/extract.py
+++ b/babel/messages/extract.py
@@ -125,6 +125,8 @@
         for subdir in dirnames:
             if subdir.startswith('.') or subdir.startswith('_'):
                 dirnames.remove(subdir)
+        dirnames.sort()
+        filenames.sort()
         for filename in filenames:
             filename = relpath(
                 os.path.join(root, filename).replace(os.sep, '/'),
Copyright (C) 2012-2017 Edgewall Software