Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix in makemessages refactoring plus UI tweaks.

  • Loading branch information...
commit 37718eb50b60f44462a64f735072e43a9d60b9a6 1 parent 755f215
Ramiro Morales authored January 19, 2013
10  django/core/management/commands/makemessages.py
@@ -174,11 +174,11 @@ class Command(NoArgsCommand):
174 174
         make_option('--no-default-ignore', action='store_false', dest='use_default_ignore_patterns',
175 175
             default=True, help="Don't ignore the common glob-style patterns 'CVS', '.*', '*~' and '*.pyc'."),
176 176
         make_option('--no-wrap', action='store_true', dest='no_wrap',
177  
-            default=False, help="Don't break long message lines into several lines"),
  177
+            default=False, help="Don't break long message lines into several lines."),
178 178
         make_option('--no-location', action='store_true', dest='no_location',
179  
-            default=False, help="Don't write '#: filename:line' lines"),
  179
+            default=False, help="Don't write '#: filename:line' lines."),
180 180
         make_option('--no-obsolete', action='store_true', dest='no_obsolete',
181  
-            default=False, help="Remove obsolete message strings"),
  181
+            default=False, help="Remove obsolete message strings."),
182 182
         make_option('--keep-pot', action='store_true', dest='keep_pot',
183 183
             default=False, help="Keep .pot file after making messages. Useful when debugging."),
184 184
     )
@@ -274,7 +274,7 @@ def handle_noargs(self, *args, **options):
274 274
         try:
275 275
             for locale in locales:
276 276
                 if self.verbosity > 0:
277  
-                    self.stdout.write("processing language %s\n" % locale)
  277
+                    self.stdout.write("processing locale %s\n" % locale)
278 278
                 self.write_po_file(potfile, locale)
279 279
         finally:
280 280
             if not self.keep_pot and os.path.exists(potfile):
@@ -365,7 +365,7 @@ def write_po_file(self, potfile, locale):
365 365
         if self.no_obsolete:
366 366
             msgs, errors, status = _popen(
367 367
                 'msgattrib %s %s -o "%s" --no-obsolete "%s"' %
368  
-                (wrap, location, pofile, pofile))
  368
+                (self.wrap, self.location, pofile, pofile))
369 369
             if errors:
370 370
                 if status != STATUS_OK:
371 371
                     raise CommandError(

0 notes on commit 37718eb

Please sign in to comment.
Something went wrong with that request. Please try again.