Branch: Tag:

2016-07-13

2016-07-13 12:35:19 by Martin Nilsson <nilsson@fastmail.com>

Remove the possibility of localizing Calendar module (except runtime).

23:    return (array)magic;   }    - #include "localization.h" -  +    //! Time and day system   //!   //!@code
513: Inside #if 1
   Time->Day = iso_utc->cDay;    stage--;    object tz= -  master()->resolv("Calendar")["Timezone"][default_timezone]; -  if (!tz) -  error("Failed to make default timezone %O\n",default_timezone); -  else +  master()->resolv("Calendar")["Timezone"]["locale"];    default_rules->timezone=tz; // destructive!    }    if ( !magic[what] || (stage && what!="default_rules")) return UNDEFINED;
534: Inside #if 1
   if (!default_rules)    {    default_rules=master()->resolv("Calendar")["Ruleset"](); -  default_rules=default_rules->set_language(default_language); +  default_rules=default_rules->set_language("ISO");    }    // load ISO_UTC and set timezone there   // if (!iso_utc) `[]("ISO_UTC");
545: Inside #if 1
   {    if (!iso_utc) `[]("ISO_UTC");    stage++; -  defcal=master()->resolv("Calendar")[default_calendar]; +  defcal=master()->resolv("Calendar")["ISO"];    stage--;    }    return defcal[what];