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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Language.pmod:508:   {    inherit _ymd_base;       constant month_names=    ({"January","February","March","April","May","June","July","August",    "September","October","November","December"});       constant week_day_names=    ({"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"});    -  void create() +  protected void create()    {    SETUPSTUFF;    }       string week_name_from_number(int n)    {    return sprintf("w%d",n);    }       int week_number_from_name(string s)
pike.git/lib/modules/Calendar.pmod/Language.pmod:609:    "Winter Solstice": "Vintersolstånd",    "Spring Equinox": "Vårdagjämning",    "Autumn Equinox": "Höstdagjämning",      // not translated:   // "Halloween"   // "Alla helgons dag"   // "Valborgsmässoafton"    ]);    -  void create() +  protected void create()    {    SETUPSTUFF;    }       string week_name_from_number(int n)    {    return sprintf("v%d",n);    }       int week_number_from_name(string s)
pike.git/lib/modules/Calendar.pmod/Language.pmod:650:    inherit _ymd_base;       protected private constant month_names=    ({"jänner","feber","märz","april","mai","juni","juli","august",    "september","oktober","november","dezember"});       protected private constant week_day_names=    ({"montag","dienstag","mittwoch","donnerstag",    "freitag","samstag","sonntag"});    -  void create() +  protected void create()    {    SETUPSTUFF;    }   }   constant cDE_AT=cAUSTRIAN; // this is a german dialect, appearantly      // Welsh   // source: book      class cWELSH
pike.git/lib/modules/Calendar.pmod/Language.pmod:682:    {    return "dydd "+::week_day_name_from_number(n);    }       int week_day_number_from_name(string name)    {    sscanf(name,"dydd %s",name);    return week_day_number_from_name(name);    }    -  void create() +  protected void create()    {    SETUPSTUFF;    }   }   constant cCY=cWELSH;   constant cCYM=cWELSH;      // Spanish   // Julio César Gázquez <jgazquez@dld.net>   
pike.git/lib/modules/Calendar.pmod/Language.pmod:729:    "Immaculate Conception":"Inmaculada Concepción",    "Christmas Day":"Natividad del Señor",    "New Year's Day":"Año Nuevo",    "Holy Thursday":"Jueves Santo",    "Good Friday":"Viernes Santo",    "Holy Saturday":"Sãbado de gloria",    "Easter":"Domingo de resurrección",    "Corpus Christi":"Corpus Christi"    ]);    -  void create() +  protected void create()    {    SETUPSTUFF;    }   }   constant cES=cSPANISH;   constant cSPA=cSPANISH;      // portugese   // source: Sérgio Araújo <sergio@projecto-oasis.cx>   
pike.git/lib/modules/Calendar.pmod/Language.pmod:788:    "Portugal Day":"Dia de Portugal",    "Corpus Christi":"Corpo de Deus",    "Assumption Day":"Assunção",    "Republic Day":"Implantação da República",    "All Saints Day":"Todos-os-Santos",    "Restoration of the Independence":"Restauração da Independência",    "Immaculate Conception":"Imaculada Conceição",    "Christmas":"Natal"    ]);    -  void create() +  protected void create()    {    SETUPSTUFF;    }   }   constant cPT=cPORTUGESE; // Portugese (Brasil)   constant cPOR=cPORTUGESE;      // Hungarian   // Csongor Fagyal <concept@conceptonline.hu>   
pike.git/lib/modules/Calendar.pmod/Language.pmod:827:    "Holiday of Labor":"A munka ünnepe",    "Constitution Day":"Az alkotmány ünnepe",    "'56 Revolution Day":"Az '56-os Forradalom ünnepe",    "Easter":"Húsvét",    "Easter monday":"Húsvét",    "Whitsunday":"Pünkösd",    "Whitmonday":"Pünkösd",    "Christmas":"Christmas",    ]);    -  void create() +  protected void create()    {    SETUPSTUFF;    }   }      // Modern Latin   // source: book      constant cLA=cLATIN;   constant cLAT=cLATIN;
pike.git/lib/modules/Calendar.pmod/Language.pmod:871:    {    return year_name_from_number(y);    }       string year_name_from_number(int y)    {    if (y<1) return sprintf("%d BC",1-y); // ?    return sprintf("anno ab Incarnatione Domini %s",roman_number(y));    }    -  void create() +  protected void create()    {    SETUPSTUFF;    }   }      // Roman latin   // source: calendar FAQ + book      class cROMAN   {
pike.git/lib/modules/Calendar.pmod/Language.pmod:948:    ({    "ataasinngorneq",    "marlunngorneq",    "pingasunngorneq",    "sisamanngorneq",    "tallimanngorneq",    "arfininngorneq",    "sabaat",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cIS=cICELANDIC; // Icelandic   constant cISL=cICELANDIC;   class cICELANDIC   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:987:    ({    "Manudagur",    "Tridjudagur",    "Midvikudagur",    "Fimmtudagur",    "Föstudagur",    "Laugardagur",    "Sunnudagur",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cFA=cPERSIAN; // Persian (Iran)   constant cFAS=cPERSIAN;   class cPERSIAN   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1026:    ({    "dwsnbh",    "shzsnbh",    "tharsnbh",    "pngzsnbh",    "gmeh",    "snbh",    "ykzsnbh", // <yf><kf><zwnj><sn><n+><b+><h+>    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cAF=cAFRIKAANS; // Afrikaans (South Africa)   constant cAFR=cAFRIKAANS;   class cAFRIKAANS   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1065:    ({    "Maandag",    "Dinsdag",    "Woensdag",    "Donderdag",    "Vrydag",    "Saterdag",    "Sondag",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cGA=cIRISH; // Irish Gaelic   constant cGLE=cIRISH;   class cIRISH   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1114:    "Dé hAoine",    "Dé Sathairn",    "Dé Domhnaigh",    });       protected private constant short_week_day_names=    ({    "Lua","Mai","Céa","Déa","Aoi","Sat", "Dom",    });    -  void create() { SETUPSTUFF2; } +  protected void create() { SETUPSTUFF2; }   }         // source: anonymous unix locale file      constant cEU=cBASQUE; // Basque (Spain)   constant cEUS=cBASQUE;   class cBASQUE   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1153:    ({    "astelehena",    "asteartea",    "asteazkena",    "osteguna",    "ostirala",    "larunbata",    "igandea",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cNO=cNORWEGIAN; // Norwegian   constant cNOR=cNORWEGIAN;   class cNORWEGIAN   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1192:    ({    "mandag",    "tirsdag",    "onsdag",    "torsdag",    "fredag",    "lørdag",    "søndag",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file            constant cNL=cDUTCH; // Dutch   constant cNLD=cDUTCH;   class cDUTCH
pike.git/lib/modules/Calendar.pmod/Language.pmod:1233:    ({    "maandag",    "dinsdag",    "woensdag",    "donderdag",    "vrijdag",    "zaterdag",    "zondag",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cPL=cPOLISH; // Polish   constant cPOL=cPOLISH;   class cPOLISH   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1272:    ({    "poniedzialek", // <p><o><n><i><e><d><z><i><a><l/><e><k>    "wtorek",    "sroda",    "czwartek",    "piatek",    "sobota",    "niedziela",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      class cPOLISH_UNICODE   {    inherit _ymd_base;       protected private constant month_names=    ({    "stycze\x0143", // <s><t><y><c><z><e><n'>    "luty",
pike.git/lib/modules/Calendar.pmod/Language.pmod:1306:    ({    "poniedzia\x0142""ek", // <p><o><n><i><e><d><z><i><a><l/><e><k>    "wtorek",    "sroda",    "czwartek",    "piatek",    "sobota",    "niedziela",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: Cile Ekici (@ Roxen IS)      constant cTR=cTURKISH; // Turkish   constant cTUR=cTURKISH; // Turkish   class cTURKISH   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1345:    ({    "Pazartesi",    "Sali", // <S><a><l><i.>    "Çarsamba",    "Persembe",    "Cuma",    "Cumartesi",    "Pazar",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cTR_UNICODE=cTURKISH_UNICODE; // Turkish   constant cTUR_UNICODE=cTURKISH_UNICODE; // Turkish   class cTURKISH_UNICODE   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1381:    ({    "Pazartesi",    "Sal\x0131", // <S><a><l><i.> i without dot    "Çarsamba",    "Per\x015f""embe",// s-cedilla    "Cuma",    "Cumartesi",    "Pazar",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      // source: anonymous unix locale file            constant cDE=cGERMAN; // German   constant cDEU=cGERMAN;   class cGERMAN   {
pike.git/lib/modules/Calendar.pmod/Language.pmod:1421:    ({    "Montag",    "Dienstag",    "Mittwoch",    "Donnerstag",    "Freitag",    "Samstag",    "Sonntag",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cLV=cLATVIAN; // Latvian   constant cLAV=cLATVIAN;   class cLATVIAN   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1460:    ({    "pirmdiena",    "otrdiena",    "tresdiena",    "ceturtdiena",    "piektdiena",    "sestdiena",    "svetdiena", // <s><v><e-><t><d><i><e><n><a>    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cLV_UNICODE=cLATVIAN_UNICODE;   constant cLAV_UNICODE=cLATVIAN_UNICODE;   class cLATVIAN_UNICODE   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1496:    ({    "pirmdiena",    "otrdiena",    "tresdiena",    "ceturtdiena",    "piektdiena",    "sestdiena",    "sv\x0113""tdiena", // <s><v><e-><t><d><i><e><n><a>    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cFI=cFINNISH; // Finnish   constant cFIN=cFINNISH;   class cFINNISH   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1535:    ({    "maanantai",    "tiistai",    "keskiviikko",    "torstai",    "perjantai",    "lauantai",    "sunnuntai",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cLT=cLITHUANIAN; // Lithuanian   constant cLIT=cLITHUANIAN;   class cLITHUANIAN   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1574:    ({    "Pirmadienis",    "Antradienis",    "Treciadienis",    "Ketvirtadienis",    "Penktadienis",    "Sestadienis", // <S<><e><s<><t><a><d><i><e><n><i><s>    "Sekmadienis",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      class cLITHUANIAN_UNICODE   {    inherit _ymd_base;       protected private constant month_names=    ({    "sausio",    "vasario",
pike.git/lib/modules/Calendar.pmod/Language.pmod:1608:    ({    "Pirmadienis",    "Antradienis",    "Treciadienis",    "Ketvirtadienis",    "Penktadienis",    "\x0160""estadienis", // <S<><e><s<><t><a><d><i><e><n><i><s>    "Sekmadienis",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // source: anonymous unix locale file      constant cET=cESTONIAN; // Estonian   constant cEST=cESTONIAN;   class cESTONIAN   {    inherit _ymd_base;
pike.git/lib/modules/Calendar.pmod/Language.pmod:1647:    ({    "esmaspäev",    "teisipäev",    "kolmapäev",    "neljapäev",    "reede",    "laupäev",    "pühapäev", // <p><u:><h><a><p><a:><e><v>    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cGL=cGALICIAN; // Galician (Spain)   constant cGLG=cGALICIAN;   class cGALICIAN   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1683:    ({    "Luns",    "Martes",    "Mércores",    "Xoves",    "Venres",    "Sabado",    "Domingo",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cID=cINDONESIAN;   class cINDONESIAN   {    inherit _ymd_base;       protected private constant month_names=    ({    "Januari",
pike.git/lib/modules/Calendar.pmod/Language.pmod:1718:    ({    "Senin",    "Selasa",    "Rabu",    "Kamis",    "Jumat",    "Sabtu",    "Minggu",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cFR=cFRENCH; // French   constant cFRA=cFRENCH;   class cFRENCH   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1754:    ({    "lundi",    "mardi",    "mercredi",    "jeudi",    "vendredi",    "samedi",    "dimanche",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cIT=cITALIAN; // Italian   constant cITA=cITALIAN;   class cITALIAN   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1790:    ({    "lunedi", // swizz italian: "lunedì" - should I care?    "martedi",    "mercoledi",    "giovedi",    "venerdi",    "sabato",    "domenica",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cCA=cCATALAN; // Catalan (Catalonia)   constant cCAT=cCATALAN;   class cCATALAN   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1826:    ({    "dilluns",    "dimarts",    "dimecres",    "dijous",    "divendres",    "dissabte",    "diumenge",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cSL=cSLOVENIAN; // Slovenian   constant cSLV=cSLOVENIAN;   class cSLOVENIAN   {    inherit _ymd_base;       protected constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1862:    ({    "ponedeljek",    "torek",    "sreda",    "cetrtek", // <c<><e><t><r><t><e><k>    "petek",    "sobota",    "nedelja",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      class cSLOVENIAN_UNICODE   {    inherit cSLOVENIAN;       protected constant week_day_names=    ({    "ponedeljek",    "torek",    "sreda",    "\x010d""etrtek", // <c<><e><t><r><t><e><k>    "petek",    "sobota",    "nedelja",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cFO=cFAROESE; // Faroese   constant cFAO=cFAROESE;   class cFAROESE   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1916:    ({    "manadagur",    "týsdagur",    "mikudagur",    "hosdagur",    "friggjadagur",    "leygardagur",    "sunnudagur",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cRO=cROMANIAN; // Romanian   constant cRON=cROMANIAN;   class cROMANIAN   {    inherit _ymd_base;       protected constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:1952:    ({    "Luni",    "Marti", // <M><A><R><T,><I>    "Miercuri",    "Joi",    "Vineri",    "Simbata", // <S><I/>><M><B><A(><T><A(>    "Duminica", // <D><U><M><I><N><I><C><A(>    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      class cROMANIAN_UNICODE   {    inherit cROMANIAN;       protected constant week_day_names=    ({    "Luni",    "Mar\x0163""i", // <M><A><R><T,><I>    "Miercuri",    "Joi",    "Vineri",    "Sîmb\x0103""t\x0103", // <S><I/>><M><B><A(><T><A(>    "Duminic\x0103", // <D><U><M><I><N><I><C><A(>    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cHR=cCROATIAN; // Croatian   constant cHRV=cCROATIAN; // Croatian   class cCROATIAN   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:2006:    ({    "Ponedjeljak",    "Utorak",    "Srijeda",    "Cetvrtak", // <C<><e><t><v><r><t><a><k>    "Petak",    "Subota",    "Nedjelja",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      class cCROATIAN_UNICODE   {    inherit _ymd_base;       protected private constant month_names=    ({    "Sije\415anj",    "Velja\415a",
pike.git/lib/modules/Calendar.pmod/Language.pmod:2040:    ({    "Ponedjeljak",    "Utorak",    "Srijeda",    "\414etvrtak",    "Petak",    "Subota",    "Nedjelja",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cDA=cDANISH; // Danish   constant cDAN=cDANISH;   class cDANISH   {    inherit _ymd_base;       protected private constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:2101:    "New Year's Day" :"Nytårsdag",    "New Year's Eve" :"Nytårsaften",    "Palm Sunday" :"Palme søndag",    "Pentecost Monday" :"2. Pinsedag",    "Pentecost" :"Pinsedag",    "Prince Fredrik's Birthday" :"Kronprins Fredriks fødselsdag",    "Epiphany" :"Hellig trekongers dag",    "Epiphany Eve" :"Hellig trekongers aften",    ]);    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }      constant cSR=cSERBIAN; // Serbian (Yugoslavia)   constant cSRP=cSERBIAN;   class cSERBIAN   {    inherit _ymd_base;       protected constant month_names=    ({
pike.git/lib/modules/Calendar.pmod/Language.pmod:2137:    ({    "ponedeljak",    "utorak",    "sreda",    "cetvrtak",    "petak",    "subota",    "nedelja",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         class cSERBIAN_UNICODE   {    inherit cSERBIAN;       protected constant week_day_names=    ({    "ponedeljak",    "utorak",    "sreda",    "\415etvrtak",    "petak",    "subota",    "nedelja",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         constant cEL=cGREEK_UNICODE; //Greek Ellinika   constant cGR=cGREEK_UNICODE;   class cGREEK_UNICODE   {    inherit _ymd_base;    -  static private constant month_names= +  private constant month_names=    ({    "\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2",    "\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2",    "\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2",    "\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2",    "\u039c\u03ac\u03b9\u03bf\u03c2",    "\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2",    "\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2",    "\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2",    "\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2",    "\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2",    "\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2",    "\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2",    });    -  static private constant week_day_names= +  private constant week_day_names=    ({    "\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1",    "\u03a4\u03c1\u03af\u03c4\u03b7",    "\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7",    "\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7",    "\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae",    "\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf",    "\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae",    });    -  void create() { SETUPSTUFF; } +  protected void create() { SETUPSTUFF; }   }         // ----------------------------------------------------------------      // find & compile language      protected mapping _cache=([]);      Calendar.Rule.Language `[](string lang)