# HG changeset patch # User pjenvey # Date 1190954695 0 # Node ID 4f48bc780538e7251692f7d8874b6543c59167ef # Parent b6efe6a8e2ecf4e57e190bf4ca9ae4b19eea28ee we must mean options.locale here diff --git a/babel/messages/frontend.py b/babel/messages/frontend.py --- a/babel/messages/frontend.py +++ b/babel/messages/frontend.py @@ -717,7 +717,7 @@ if not options.directory: parser.error('you must specify either the input file or ' 'the base directory') - mo_files.append(os.path.join(options.directory, locale, + mo_files.append(os.path.join(options.directory, options.locale, 'LC_MESSAGES', options.domain + '.mo')) if not po_files: