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