Added locale support to files.