Fix bugs and language with locale handling.