Bug 894812 - Simplify rewrite rules for locales