Change the name of method download_file to build_filename.
Write to console when wp_locale doesn't exists.