Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.0.X] Fixed #10867: make the makemessages command ignore files and …

…only process directories. Thanks, diegobz. Backport of [10833] from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 19e2585a3859475503199ad018688678a1cb3d0f 1 parent 10637a9
@jacobian jacobian authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 django/core/management/commands/
6 django/core/management/commands/
@@ -1,6 +1,7 @@
import re
import os
import sys
+import glob
import warnings
from itertools import dropwhile
from optparse import make_option
@@ -95,8 +96,9 @@ def make_messages(locale=None, domain='django', verbosity='1', all=False, extens
if locale is not None:
elif all:
- languages = [el for el in os.listdir(localedir) if not el.startswith('.')]
+ locale_dirs = filter(os.path.isdir, glob.glob('%s/*' % localedir))
+ languages = [os.path.basename(l) for l in locale_dirs]
for locale in languages:
if verbosity > 0:
print "processing language", locale

0 comments on commit 19e2585

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