changeset 472:2b67406f276a stable

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`. ........
author jruigrok
date Sun, 11 Apr 2010 08:15:12 +0000
parents 40735021c908
children 95b3063ef532
files 0.9.x/ChangeLog 0.9.x/babel/messages/frontend.py
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
 
Copyright (C) 2012-2017 Edgewall Software