pike.git / lib / modules / Calendar.pmod / Swedish.pmod

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Swedish.pmod:1: - inherit Calendar.ISO; + inherit Calendar.ISO:ISO;      void create()   {    month_names=    ({"januari","februari","mars","april","maj","juni","juli","augusti",    "september","oktober","november","december"});       week_day_names=    ({"måndag","tisdag","onsdag","torsdag",    "fredag","lördag","söndag"});   }    - constant ISO_Week=::Week; - constant ISO_Year=::Year; - constant ISO_Day=::Day; -  +    class Week   { -  inherit ISO_Week; +  inherit ISO::Week;       string name()    {    return "v"+(string)this->number();    }   }      class Year   { -  inherit ISO_Year; +  inherit ISO::Year;       array(array(string)) _namedays;    mapping(string:int) _nameday_lookup;       string name()    {    if (this->number()<=0)    return (string)(1-this->number())+" fk";    return (string)this->number();    }
pike.git/lib/modules/Calendar.pmod/Swedish.pmod:81:    _nameday_lookup =    namedays_lookup_cache[this->leap()+" "+this->leap_day()] = m;    }       return this->day(_nameday_lookup[lower_case(name)]);    }   }      class Day   { -  inherit ISO_Day; +  inherit ISO::Day;       array(string) names()    {    return this->year()->namedays()[this->year_day()];    }   }      // --- namnsdagar, data -------------------------------------------------      mapping namedays_cache=([]);