Replace use of deprecated locale API

Direct access to the locale property of Configuration objects is now
deprecated.

Change-Id: Iaa48c2e3f61d3d586f20c5ca22fd6d9c5589be29
1 file changed