Habari\Locale::set_system_locale PHP Method

set_system_locale() public static method

The problem is that every platform has its own way to designate a locale, so for German you could have 'de', 'de_DE', 'de_DE.UTF-8', 'de_DE.UTF-8@euro' (Linux) or 'DEU' (Windows), etc.
public static set_system_locale ( ) : string
return string the locale that was picked, or false if an error occurred
    public static function set_system_locale()
    {
        if (func_num_args() == 0) {
            return;
        }
        $args = func_get_args();
        array_unshift($args, LC_ALL);
        return call_user_func_array('setlocale', $args);
    }