<?php
function get_locale() {
global $locale, $wp_local_package;
if ( isset( $locale ) ) {
return apply_filters( 'locale', $locale );
}
if ( isset( $wp_local_package ) ) {
$locale = $wp_local_package;
}
if ( defined( 'WPLANG' ) ) {
$locale = WPLANG;
}