Fix localization settings (issue #3618)