Mercurial > babel > old > babel-test
changeset 154:4d2117dfd7f5
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 | 4b8ec5f16c85 |
children | e1985b8cdcd6 |
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, '/'),