# HG changeset patch # User jruigrok # Date 1270973712 0 # Node ID 2b67406f276a71f356f9766dd2e0f395e1b3e63d # Parent 40735021c9085a0f6695357f9329f068221b5b4b Merged revisions 459 via svnmerge from http://svn.edgewall.org/repos/babel/trunk ........ r459 | palgarvio | 2008-12-16 00:14:50 +0100 (di, 16 dec 2008) | 2 lines Typo's and sorted output of `list-locales`. ........ diff --git a/0.9.x/ChangeLog b/0.9.x/ChangeLog --- a/0.9.x/ChangeLog +++ b/0.9.x/ChangeLog @@ -4,6 +4,8 @@ * Backport r493-494: documentation typo fixes. * Make the CLDR import script work with Python 2.7. + * Fix various typos. + * Sort output of list-locales. Version 0.9.5 diff --git a/0.9.x/babel/messages/frontend.py b/0.9.x/babel/messages/frontend.py --- a/0.9.x/babel/messages/frontend.py +++ b/0.9.x/babel/messages/frontend.py @@ -639,7 +639,7 @@ identifiers = localedata.list() longest = max([len(identifier) for identifier in identifiers]) format = u'%%-%ds %%s' % (longest + 1) - for identifier in localedata.list(): + for identifier in sorted(localedata.list()): locale = Locale.parse(identifier) output = format % (identifier, locale.english_name) print output.encode(sys.stdout.encoding or @@ -1000,13 +1000,13 @@ parser.add_option('--ignore-obsolete', dest='ignore_obsolete', action='store_true', help='do not include obsolete messages in the output ' - '(default %default)'), + '(default %default)') parser.add_option('--no-fuzzy-matching', '-N', dest='no_fuzzy_matching', action='store_true', - help='do not use fuzzy matching (default %default)'), + help='do not use fuzzy matching (default %default)') parser.add_option('--previous', dest='previous', action='store_true', help='keep previous msgids of translated messages ' - '(default %default)'), + '(default %default)') parser.set_defaults(domain='messages', ignore_obsolete=False, no_fuzzy_matching=False, previous=False) @@ -1017,7 +1017,7 @@ if not options.output_file and not options.output_dir: parser.error('you must specify the output file or directory') if options.output_file and not options.locale: - parser.error('you must specify the loicale') + parser.error('you must specify the locale') if options.no_fuzzy_matching and options.previous: options.previous = False