Backend\Core\Engine\TwigTemplate::parseLocale PHP Метод

parseLocale() приватный Метод

..)
private parseLocale ( )
    private function parseLocale()
    {
        // init vars
        $localeToAssign = array();
        // get months
        $monthsLong = \SpoonLocale::getMonths(BL::getInterfaceLanguage(), false);
        $monthsShort = \SpoonLocale::getMonths(BL::getInterfaceLanguage(), true);
        // get days
        $daysLong = \SpoonLocale::getWeekDays(BL::getInterfaceLanguage(), false, 'sunday');
        $daysShort = \SpoonLocale::getWeekDays(BL::getInterfaceLanguage(), true, 'sunday');
        // build labels
        foreach ($monthsLong as $key => $value) {
            $localeToAssign['locMonthLong' . \SpoonFilter::ucfirst($key)] = $value;
        }
        foreach ($monthsShort as $key => $value) {
            $localeToAssign['locMonthShort' . \SpoonFilter::ucfirst($key)] = $value;
        }
        foreach ($daysLong as $key => $value) {
            $localeToAssign['locDayLong' . \SpoonFilter::ucfirst($key)] = $value;
        }
        foreach ($daysShort as $key => $value) {
            $localeToAssign['locDayShort' . \SpoonFilter::ucfirst($key)] = $value;
        }
        // assign
        $this->assignArray($localeToAssign);
    }