Mercurial > babel > mirror
diff babel/messages/extract.py @ 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 | 63a93d33511a |
children | 32be08ab2440 40563335820a |
line wrap: on
line diff
--- 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, '/'),