def get_po_filepath(lang_code, filename=None):
 base_dirpath = os.path.join(get_locale_path(lang_code=lang_code), 'LC_MESSAGES')
 return ((filename and os.path.join(base_dirpath, filename)) or base_dirpath)

def get_po_filepath ( lang_code , filename = None ) : base_dirpath = os . path . join ( get_locale_path ( lang_code = lang_code ) , 'LC_MESSAGES' ) return ( ( filename and os . path . join ( base_dirpath , filename ) ) or base_dirpath )
return the lc_messages directory for the language code .