Fixed wrong use of locale for obtaining i18n messages