Localize a file.