Use getLocale more consistently.

Change-Id: I64d9e651aba3b2872a23e4d4b1b7c32c34f86d90