changeset 417:1352648e2dac

Typo's and sorted output of `list-locales`.
author palgarvio
date Mon, 15 Dec 2008 23:14:50 +0000
parents 31f2826d3fd6
children d7ac8fb6b025
files babel/messages/frontend.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/babel/messages/frontend.py
+++ b/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
 
Copyright (C) 2012-2017 Edgewall Software