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

version» Context lines:

pike.git/lib/modules/Calendar.pmod/Austrian.pmod:1: - // by Martin Baehr <mbaehr@email.archlab.tuwien.ac.at> + //! + //! module Calendar + //! submodule Austrian + //! + //! Same as the ISO calendar, + //! but with austrian as the default language. + //! + //! This calendar exist only for backwards compatible + //! purposes. + //!      inherit Calendar.ISO:ISO;    - void create() - { -  month_names= -  ({"jänner","feber","märz","april","mai","juni","juli","august", -  "september","oktober","november","dezember"}); + import "."; + inherit ISO:ISO;    -  week_day_names= -  ({"montag","dienstag","mittwoch","donnerstag", -  "freitag","samstag","sonntag"}); - } -  - class Week + private static mixed __initstuff=lambda()   { -  inherit ISO::Week; -  -  string name() -  { -  return "w"+(string)this->number(); -  } - } -  - class Year - { -  inherit ISO::Year; -  -  string name() -  { -  if (this->number()<=0) -  return (string)(1-this->number())+" v. Chr."; -  return (string)this->number(); -  } - } +  default_rules=default_rules->set_language("austrian"); + }();