public static function replaceAlias($locale)
    {
        if (!empty($locale) && isset(self::$aliases[$locale])) {
            $locale = self::$aliases[$locale];
        }

        return $locale;
    }
public static function replaceAlias($locale)
    {
        if (!empty($locale) && isset(self::$aliases[$locale])) {
            $locale = self::$aliases[$locale];
        }

        return $locale;
    }
public static function replaceAlias ( $ locale ) { if ( ! empty ( $ locale ) && isset ( self :: $ aliases [ $ locale ] ) ) { $ locale = self :: $ aliases [ $ locale ] ; } return $ locale ; }
Replaces a locale alias with the real locale.

For example, "zh-CN" is replaced with "zh-Hans-CN".

@param string $locale The locale.

@return string The locale.
Replaces a locale alias with the real locale .