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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Language.pmod:338:    enumerate(12,1,1)) \    | mkmapping(map(month_names,flat),enumerate(12,1,1)); \    week_day_n2s= mkmapping(enumerate(7,1,1),week_day_names); \    week_day_n2ss= mkmapping(enumerate(7,1,1), \    map(week_day_names,predef::`[],0,2)); \    week_day_s2n= \    mkmapping(map(map(week_day_names,predef::`[],0,2),flat), \    enumerate(7,1,1)) \    | mkmapping(map(week_day_names,flat),enumerate(7,1,1))    - // ---------------------------------------------------------------- +  +  +  + // ======================================================================== +  +  +    // now the real classes:      // this should probably be called UK_en or something:      constant cENGLISH=cISO; -  + constant cEN=cISO;   class cISO   {    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"});
pike.git/lib/modules/Calendar.pmod/Language.pmod:383:    string year_name_from_number(int y)    {    if (y<1) return sprintf("%d BC",1-y);    return (string)y;    }   };      // swedish (note: all name as cLANG where LANG is in caps)      constant cSE_SV=cSWEDISH; + constant cSV=cSWEDISH;   class cSWEDISH   {    inherit _ymd_base;       static private constant month_names=    ({"januari","februari","mars","april","maj","juni","juli","augusti",    "september","oktober","november","december"});       static private constant week_day_names=    ({"måndag","tisdag","onsdag","torsdag",
pike.git/lib/modules/Calendar.pmod/Language.pmod:479:    string year_name_from_number(int y)    {    if (y<1) return sprintf("%d fk",1-y);    return (string)y;    }   }      // austrian   // Martin Baehr <mbaehr@email.archlab.tuwien.ac.at>    + // what's the language code for austrian?   class cAUSTRIAN   {    inherit _ymd_base;       static private constant month_names=    ({"jänner","feber","märz","april","mai","juni","juli","august",    "september","oktober","november","dezember"});       static private constant week_day_names=    ({"montag","dienstag","mittwoch","donnerstag",    "freitag","samstag","sonntag"});       void create()    {    SETUPSTUFF;    }   }      // Welsh    -  + constant cCY=cWELSH;   class cWELSH   {    inherit _ymd_base;       static private constant month_names=    ({"ionawr","chwefror","mawrth","ebrill","mai","mehefin",    "gorffenaf","awst","medi","hydref","tachwedd","rhagfyr"});       static private constant week_day_names=    ({"Llun","Mawrth","Mercher","Iau","Gwener","Sadwrn","Sul"});
pike.git/lib/modules/Calendar.pmod/Language.pmod:530:       void create()    {    SETUPSTUFF;    }   }      // Spanish   // Julio César Gázquez <jgazquez@dld.net>    + constant cES=cSPANISH;   class cSPANISH   {    inherit _ymd_base;       static private constant month_names=    ({"enero","febrero","marzo","abril","mayo","junio",    "julio","agosto","setiembre","octubre","noviembre","diciembre"});       static private constant week_day_names=    ({"lunes","martes","miércoles","jueves",
pike.git/lib/modules/Calendar.pmod/Language.pmod:575:       void create()    {    SETUPSTUFF;    }   }      // portugese   // source: Sérgio Araújo <sergio@projecto-oasis.cx>    + constant cPT=cPORTUGESE;   class cPORTUGESE   {    inherit _ymd_base;       static private constant month_names=    ({    "Janeiro",    "Fevereiro",    "Março",    "Abril",
pike.git/lib/modules/Calendar.pmod/Language.pmod:632:       void create()    {    SETUPSTUFF;    }   }      // Hungarian   // Csongor Fagyal <concept@conceptonline.hu>    + constant cHU=cHUNGARIAN;   class cHUNGARIAN   {    inherit _ymd_base;       static private constant month_names=    ({"Január","Február","Március","Április","Május","Június",    "Július","August","September","October","November","December"});       static private constant week_day_names=    ({"Hétfo","Kedd","Szerda","Csütörtkök","Péntek","Szombat","Vasárnap"});
pike.git/lib/modules/Calendar.pmod/Language.pmod:666:    ]);       void create()    {    SETUPSTUFF;    }   }      // Modern Latin    + constant cLA=cLATIN;   class cLATIN   {    inherit _ymd_base;       static array(string) month_names=    ({"Ianuarius", "Februarius", "Martius", "Aprilis", "Maius", "Iunius",    "Iulius", "Augustus", "September", "October", "November", "December" });       static private constant week_day_names=    ({"lunae","Martis","Mercurii","Jovis","Veneris","Saturni","solis"});
pike.git/lib/modules/Calendar.pmod/Language.pmod:761:    Ruleset.Language l=_cache[lang];    if (l) return l;    program cl=::`[]("c"+lang);       if (!cl) { return ([])[0]; }       l=_cache[lang]=cl();       return l;   } +  + /* +  ISO 639:1988 language codes +  +  aa Afar +  ab Abkhazian +  af Afrikaans +  am Amharic +  ar Arabic +  as Assamese +  ay Aymara +  az Azerbaijani +  ba Bashkir +  be Byelorussian +  bg Bulgarian +  bh Bihari +  bi Bislama +  bn Bengali; Bangla +  bo Tibetan +  br Breton +  ca Catalan +  co Corsican +  cs Czech +  cy Welsh +  da Danish +  de German +  dz Bhutani +  el Greek +  en English +  eo Esperanto +  es Spanish +  et Estonian +  eu Basque +  fa Persian +  fi Finnish +  fj Fiji +  fo Faroese +  fr French +  fy Frisian +  ga Irish (recte Irish Gaelic) +  gd Scots Gaelic (recte Scottish Gaelic) +  gl Galician +  gn Guarani +  gu Gujarati +  gv Manx Gaelic +  ha Hausa +  he Hebrew (formerly iw) +  hi Hindi +  hr Croatian +  hu Hungarian +  hy Armenian +  ia Interlingua +  id Indonesian (formerly in) +  ie Interlingue +  ik Inupiak +  is Icelandic +  it Italian +  iu Inuktitut +  ja Japanese +  jw Javanese +  ka Georgian +  kk Kazakh +  kl Greenlandic +  km Cambodian +  kn Kannada +  ko Korean +  ks Kashmiri +  ku Kurdish +  kw Cornish +  ky Kirghiz +  la Latin +  lb Luxemburgish +  ln Lingala +  lo Laothian (recte Laotian) +  lt Lithuanian +  lv Latvian; Lettish +  mg Malagasy +  mi Maori +  mk Macedonian +  ml Malayalam +  mn Mongolian +  mo Moldavian +  mr Marathi +  ms Malay +  mt Maltese +  my Burmese +  na Nauru +  ne Nepali +  nl Dutch +  no Norwegian +  oc Occitan +  om (Afan) Oromo +  or Oriya +  pa Punjabi +  pl Polish +  ps Pashto, Pushto +  pt Portuguese +  qu Quechua +  rm Rhaeto-Romance +  rn Kirundi +  ro Romanian +  ru Russian +  rw Kinyarwanda +  sa Sanskrit +  sd Sindhi +  se Northern Sámi +  sg Sangho +  sh Serbo-Croatian +  si Singhalese +  sk Slovak +  sl Slovenian +  sm Samoan +  sn Shona +  so Somali +  sq Albanian +  sr Serbian +  ss Siswati +  st Sesotho +  su Sundanese +  sv Swedish +  sw Swahili +  ta Tamil +  te Telugu +  tg Tajik +  th Thai +  ti Tigrinya +  tk Turkmen +  tl Tagalog +  tn Setswana +  to Tonga +  tr Turkish +  ts Tsonga +  tt Tatar +  tw Twi +  ug Uigur +  uk Ukrainian +  ur Urdu +  uz Uzbek +  vi Vietnamese +  vo Volapük +  wo Wolof +  xh Xhosa +  yi Yiddish (formerly ji) +  yo Yoruba +  za Zhuang +  zh Chinese +  zu Zulu + */