Replace usage of WPLANG with get_locale() for installs without WPLANG set

cc @claudiosmweb