# HG changeset patch # User pjenvey # Date 1190954695 0 # Node ID 7b98e2f2b1fd8d3533d622bd701414d39c3555f1 # Parent d1a6eaa04991b60e621133475aa27dda226e779d 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: