Sync gettextutils from oslo
Sync gettextutils from oslo

Add type check for Message params when setting locale to avoid
AttributeError.

Fixes bug: #1229364

Change-Id: I6fe55ebc4eea5fef1d335ad83a84c4879f7f06f9
dragorosson/heat,gonzolino/heat,JioCloud/heat,pshchelo/heat,NeCTAR-RC/heat,maestro-hybrid-cloud/heat,redhat-openstack/heat,openstack/heat,srznew/heat,NeCTAR-RC/heat,rickerc/heat_audit,varunarya10/heat,dragorosson/heat,openstack/heat,steveb/heat,gonzolino/heat,steveb/heat,varunarya10/heat,dims/heat,maestro-hybrid-cloud/heat,rh-s/heat,jasondunsmore/heat,pshchelo/heat,miguelgrinberg/heat,miguelgrinberg/heat,ntt-sic/heat,noironetworks/heat,pratikmallya/heat,rickerc/heat_audit,citrix-openstack-build/heat,citrix-openstack-build/heat,takeshineshiro/heat,dims/heat,rdo-management/heat,srznew/heat,JioCloud/heat,takeshineshiro/heat,noironetworks/heat,jasondunsmore/heat,redhat-openstack/heat,rdo-management/heat,rh-s/heat,cryptickp/heat,cryptickp/heat,pratikmallya/heat,ntt-sic/heat,cwolferh/heat-scratch,cwolferh/heat-scratch