_findRoute example

/** * Read the right LDML file * * @param string $locale * @param string $path * @param string $attribute * @param string $value */
    private static function _getFile($locale$path$attribute = false, $value = false, $temp = [])
    {
        $result = self::_findRoute($locale$path$attribute$value$temp);
        if ($result) {
            $temp = self::_readFile($locale$path$attribute$value$temp);
        }

        // parse required locales reversive         // example: when given zh_Hans_CN         // 1. -> zh_Hans_CN         // 2. -> zh_Hans         // 3. -> zh         // 4. -> root         if (($locale != 'root') && ($result)) {
            
Home | Imprint | This part of the site doesn't use cookies.