Rewrite locales system again