private static function initLanguageMap($language = '')
    {
        if (count(self::$map) > 0 && (($language == '') || ($language == self::$language))) {
            return;
        }

        // Is a specific map associated with $language?
        if (isset(self::$maps[$language]) && is_array(self::$maps[$language])) {
            // Move this map to end. This means it will have priority over others
            $m = self::$maps[$language];
            unset(self::$maps[$language]);
            self::$maps[$language] = $m;
        }

        // Reset static vars
        self::$language = $language;
        self::$map = array();
        self::$chars = '';

        foreach (self::$maps as $map) {
            foreach ($map as $orig => $conv) {
                self::$map[$orig] = $conv;
                self::$chars .= $orig;
            }
        }

        self::$regex = '/[' . self::$chars . ']/u';
    }
private static function initLanguageMap($language = '')
    {
        if (count(self::$map) > 0 && (($language == '') || ($language == self::$language))) {
            return;
        }

        // Is a specific map associated with $language?
        if (isset(self::$maps[$language]) && is_array(self::$maps[$language])) {
            // Move this map to end. This means it will have priority over others
            $m = self::$maps[$language];
            unset(self::$maps[$language]);
            self::$maps[$language] = $m;
        }

        // Reset static vars
        self::$language = $language;
        self::$map = array();
        self::$chars = '';

        foreach (self::$maps as $map) {
            foreach ($map as $orig => $conv) {
                self::$map[$orig] = $conv;
                self::$chars .= $orig;
            }
        }

        self::$regex = '/[' . self::$chars . ']/u';
    }
private static function initLanguageMap ( $ language = '' ) { if ( count ( self :: $ map ) > 0 && ( ( $ language == '' ) || ( $ language == self :: $ language ) ) ) { return ; } // Is a specific map associated with $language? if ( isset ( self :: $ maps [ $ language ] ) && is_array ( self :: $ maps [ $ language ] ) ) { // Move this map to end. This means it will have priority over others $ m = self :: $ maps [ $ language ] ; unset ( self :: $ maps [ $ language ] ) ; self :: $ maps [ $ language ] = $ m ; } // Reset static vars self :: $ language = $ language ; self :: $ map = array ( ) ; self :: $ chars = '' ; foreach ( self :: $ maps as $ map ) { foreach ( $ map as $ orig => $ conv ) { self :: $ map [ $ orig ] = $ conv ; self :: $ chars .= $ orig ; } } self :: $ regex = '/[' . self :: $ chars . ']/u' ; }
Initializes the character map.

Part of the URLify.php Project <https://github.com/jbroadway/urlify/>

@see https://github.com/jbroadway/urlify/blob/master/URLify.php
Initializes the character map .