changeset 155:51d71e8a2fd6 stable-0.8.x

Ported [157] to 0.8.x branch.
author cmlenz
date Wed, 20 Jun 2007 21:42:14 +0000
parents 52d7ef13aaff
children f3e568f9915e
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