Beispiel #1
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="JE"/>.
 /// </summary>
 public JE()
 {
     Code       = "JE";
     Alpha3Code = "JEY";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Jersey").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.EN);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Early May Bank Holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The9th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Liberation Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).Before(June),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Spring Bank Holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).Before(September),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Summer Bank Holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary()
         }
     };
 }
Beispiel #2
0
 public BE_DE()
 {
     Code = "BE-DE";
     Langues.Add(Langue.DE);
     Names = NamesBuilder.Make.Add(Langue.DE, "Deutschsprachige Gemeinschaft").AsDictionary();
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The15th),
             Names      = NamesBuilder.Make
                          .Add(Langue.FR, "Jour de la Communauté Germanophone")
                          .Add(Langue.NL, "Feestdag van de Duitstalige Gemeenschap")
                          .Add(Langue.DE, "Tag der Deutschsprachigen Gemeinschaft").AsDictionary()
         }
     };
 }
Beispiel #3
0
 public BE_WAL()
 {
     Code = "BE-WAL";
     Langues.Add(Langue.FR);
     Names = NamesBuilder.Make.Add(Langue.FR, "Communauté française").AsDictionary();
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The11th),
             Names      = NamesBuilder.Make
                          .Add(Langue.FR, "La fête de la communauté française")
                          .Add(Langue.NL, "Feestdag van de Franse Gemeenschap")
                          .Add(Langue.DE, "Tag der Französischsprachigen Gemeinschaft").AsDictionary()
         }
     };
 }
Beispiel #4
0
 public BE_VLG()
 {
     Code = "BE-VLG";
     Langues.Add(Langue.NL);
     Names = NamesBuilder.Make.Add(Langue.NL, "Vlaamse Gemeenschap").AsDictionary();
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The11th),
             Names      = NamesBuilder.Make
                          .Add(Langue.FR, "Fête de la Région wallonne")
                          .Add(Langue.NL, "Feestdag van de Vlaamse Gemeenschap")
                          .Add(Langue.DE, "Festtag der Wallonischen Region").AsDictionary()
         }
     };
 }
Beispiel #5
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="AX"/>.
 /// </summary>
 public AX()
 {
     Code       = "AX";
     Alpha3Code = "ALA";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Åland Islands").Add(Langue.SV, "Landskapet Åland").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.SV);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Nyårsdagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Trettondedag jul").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The30th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Ålands demilitariseringsdag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Långfredagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Påsk").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Annandag påsk").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Första Maj").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Kristi himmelfärds dag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Pingst").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The9th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Självstyrelsedagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Third, Friday).After("06-01").ThenStartAt("12:00"),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Midsommarafton").AsDictionary(),
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Third, Saturday).After("06-01"),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Midsommardagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The6th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Självständighetsdagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th).StartAtNoon,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Julafton").AsDictionary(),
             Type       = Bank
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Juldagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Annandag jul").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st).StartAtNoon,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Nyårsafton").AsDictionary(),
             Type       = Bank
         }
     };
 }
Beispiel #6
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="FR"/>.
 /// </summary>
 public FR()
 {
     Code       = "FR";
     Alpha3Code = "FRA";
     Names      = NamesBuilder.Make.Add(Langue.EN, "France").Add(Langue.FR, "France").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.FR);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Jour de l'an").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.FR, "Lundi de pâques").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Fête du travail").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The8th),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Fête de la Victoire 1945").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.FR, "Ascension").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.FR, "Pentecôte").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.FR, "Lundi de Pentecôte").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).Before(June),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Fête des mères").AsDictionary(),
             Type       = Observance,
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The14th),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Fête nationale").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Assomption").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Toussaint").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The11th),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Armistice 1918").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.FR, "Noël").AsDictionary()
         }
     };
     States = new ListState()
     {
         Parent    = this,
         Langues   = Langues,
         Container = { new FR_67(), new FR_68(), new FR_57(), new FR_YT(), new FR_MQ(), new FR_GP(), new FR_GF(), new FR_RE() }
     }.Initialize(x => x.Init());
 }
Beispiel #7
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="HR"/>.
 /// </summary>
 public HR()
 {
     Code       = "HR";
     Alpha3Code = "HRV";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Croatia").Add(Langue.HR, "Hrvatska").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.HR);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Nova godina").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Bogojavljenje, Sveta tri kralja").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CarnivalTuesday,
             Names      = NamesBuilder.Make.Add(Langue.HR, "Pokladni utorak").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.HR, "Uskrs").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.HR, "Drugi dan Uskrsa").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CorpusChristi,
             Names      = NamesBuilder.Make.Add(Langue.HR, "Tijelovo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Praznik rada").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Majčin dan").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The22nd),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Dan antifašističke borbe").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The25th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Dan državnosti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The5th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Dan pobjede i domovinske zahvalnosti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Velika Gospa").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The8th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Dan neovisnosti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Svi sveti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Božić").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.HR, "Svetog Stjepana").AsDictionary()
         }
     };
     States = new ListState()
     {
         Parent    = this,
         Langues   = Langues,
         Container = { new HR_17(), new HR_19() }
     }.Initialize(x => x.Init());
 }
Beispiel #8
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="RO"/>.
 /// </summary>
 public RO()
 {
     Code       = "RO";
     Alpha3Code = "ROU";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Romania").Add(Langue.RO, "Romania").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.RO);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Anul nou").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The8th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Mamei").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Easter,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Paștele").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Două zi de Pasti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua muncii").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Eroilor").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Rusaliile").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Două zi de Rusalii").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Mamei").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The1st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Copilului").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The26th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua drapelului national").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The29th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Imnului național").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Adormirea Maicii Domnului").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The30th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Sfântul Andrei").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The1st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua națională, Ziua Marii Uniri").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The8th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Constituției").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Crăciunul").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Două zi de Crăciun").AsDictionary()
         }
     };
 }
Beispiel #9
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="HU"/>.
 /// </summary>
 public HU()
 {
     Code       = "HU";
     Alpha3Code = "HUN";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Hungary").Add(Langue.HU, "Magyarország").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.HU);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Újév").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HU, "A köztársaság emléknapja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The25th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "A kommunista diktatúrák áldozatainak emléknapja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The8th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Nemzetközi nőnap").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The15th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Nemzeti ünnep").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The16th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "A holokauszt áldozatainak emléknapja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday.StartAtMidnight.UntilMidnight.Every(1).Year.Since(2017),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Nagypéntek").AsDictionary(),
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.HU, "Húsvétvasárnap").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.HU, "Húsvéthétfő").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HU, "A munka ünnepe").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Anyák napja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The21st),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Honvédelmi nap").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.HU, "Pünkösdvasárnap").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.HU, "Pünkösdhétfő").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The4th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "A nemzeti összetartozás napja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The19th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "A független Magyarország napja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The20th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Szent István ünnepe").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The6th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Az aradi vértanúk emléknapja").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The23rd),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Nemzeti ünnep").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Mindenszentek").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The6th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Mikulás, Télapó").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Karácsony").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Karácsony másnapja").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st),
             Names      = NamesBuilder.Make.Add(Langue.HU, "Szilveszter").AsDictionary(),
             Type       = Observance
         }
     };
 }
Beispiel #10
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="VA"/>.
 /// </summary>
 public VA()
 {
     Code       = "VA";
     Alpha3Code = "VAT";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Vatican City").Add(Langue.IT, "Stato della Città del Vaticano").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.IT);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Maria Santissima Madre di Dio").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Epifania del Signore").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The11th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Anniversario della istituzione dello Stato della Città del Vaticano").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The19th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "San Giuseppe").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.IT, "Lunedì dell’Angelo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay.StartAtMidnight.UntilMidnight.Every(1).Year.To(2009),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Ascensione").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CorpusChristi.StartAtMidnight.UntilMidnight.Every(1).Year.To(2009),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Corpus Domini").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "San Giuseppe lavoratore").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The29th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Santi Pietro e Paolo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Assunzione di Maria in Cielo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.September.The8th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Festa della natività della madonna").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Ognissanti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The8th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Immacolata Concezione").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Natale").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Santo Stefano").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The16th).Since(1978).To(2005),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Elezione del Santo Padre").AsDictionary(),
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The4th).Since(1978).To(2005),
             Names      = NamesBuilder.Make.Add(Langue.IT, "San Carlo Borromeo - Onomastico del Santo Padre").AsDictionary(),
             Note       = "Name day of Pope John Paul II (Karol Józef Wojtyła)"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The19th).Since(2005).To(2013),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Elezione del Santo Padre").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The13th).Since(2013),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Elezione del Santo Padre").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The23rd).Since(2013),
             Names      = NamesBuilder.Make.Add(Langue.IT, "San Giorgio - Onomastico del Santo Padre").AsDictionary(),
             Note       = "Name day of Pope Francis (Jorge Mario Bergoglio)"
         }
     };
 }
Beispiel #11
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="MD"/>.
 /// </summary>
 public MD()
 {
     Code       = "MD";
     Alpha3Code = "MDA";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Moldova").Add(Langue.RO, "Republica Moldova").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.RO);
     SupportedCalendar = new List <Calendar>()
     {
         Gregorian, Julian
     };
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Anul nou").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The8th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Internationala a Femeii").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Easter,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Paștele").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.RO, "Două zi de Pasti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.CustomDay("EASTER +8"),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Paştele Blăjinilor").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua muncii").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The9th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Victoriei").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The27th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua Independentei").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The31st),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Limba noastră").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Saturday).In(October).Every(1).Year.Since(2013),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua vinului").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.MovableFromMovable(First, Sunday).After(First, Saturday).In(October).Every(1).Year.Since(2013),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Ziua vinului").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Craciun pe stil Nou").AsDictionary()
         },
         new JulianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th).StartAtMidnight.Duration.P2D().Over.Julian(),
             Names      = NamesBuilder.Make.Add(Langue.RO, "Craciun pe Rit Vechi").AsDictionary()
         }
     };
     States = new ListState()
     {
         Parent    = this,
         Langues   = Langues,
         Container = { new MD_CA(), new MD_CU() }
     }.Initialize(x => x.Init());
 }
Beispiel #12
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="IE"/>.
 /// </summary>
 public IE()
 {
     Code       = "IE";
     Alpha3Code = "IRL";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Ireland").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.EN);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The17th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "St. Patrick’s Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER -21"),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Mothers Day").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Sunday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.EN, "May Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(June),
             Names      = NamesBuilder.Make.Add(Langue.EN, "First Monday in June").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(August),
             Names      = NamesBuilder.Make.Add(Langue.EN, "First Monday in August").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).Before("10-31"),
             Names      = NamesBuilder.Make.Add(Langue.EN, "October Bank Holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "St. Stephen's Day").AsDictionary()
         }
     };
 }
Beispiel #13
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="MK"/>
 /// </summary>
 public MK()
 {
     Code       = "MK";
     Alpha3Code = "MKD";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Macedonia").Add(Langue.MK, "Република Македонија").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.MK);
     SupportedCalendar = new List <Calendar>()
     {
         Gregorian, Julian
     };
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.January.The1st).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Нова Година").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Easter,
             Names      = NamesBuilder.Make.Add(Langue.MK, "Прв ден Велигден").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.MK, "Втор ден Велигден").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.May.The1st).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на трудот").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.May.The24th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Св. Кирил и Методиј").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.August.The2nd).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на Републиката").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.September.The8th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на независноста").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.October.The11th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на востанието").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.October.The23rd).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на македонската револуционерна борба").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.December.The8th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Св. Климент Охридски").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.MK, "Велики Петок").AsDictionary(),
             Type       = Optional,
             Note       = "Orthodox believers"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.CustomDay("EASTER +47"),
             Names      = NamesBuilder.Make.Add(Langue.MK, "петок пред Духовден").AsDictionary(),
             Type       = Optional,
             Note       = "Orthodox believers"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.MK, "Духовден").AsDictionary(),
             Type       = Optional,
             Note       = "Orthodox believers"
         },
         new JulianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th).Over.Julian(),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Бадник").AsDictionary(),
             Type       = Optional,
             Note       = "Orthodox believers"
         },
         new JulianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th).Over.Julian(),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Богојавление").AsDictionary(),
             Type       = Optional,
             Note       = "Orthodox believers"
         },
         new JulianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th).Over.Julian(),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Успение на Пресвета Богородица").AsDictionary(),
             Type       = Optional,
             Note       = "Orthodox believers"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.December.The25th).If(Sunday).Then.Next(Monday).Over.Julian(),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Успение на Пресвета Богородица").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.MK, "вториот ден на Велигден").AsDictionary(),
             Type       = Optional,
             Note       = "Catholic believers"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Празникот на сите светци").AsDictionary(),
             Type       = Optional,
             Note       = "Catholic believers"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Католички Божиќ").AsDictionary(),
             Type       = Optional,
             Note       = "Catholic believers"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The22nd),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на Албанската азбука").AsDictionary(),
             Type       = Optional,
             Note       = "For members of the Albanian community"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The21st),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Ден на настава на турски јазик").AsDictionary(),
             Type       = Optional,
             Note       = "For members of the the Turkish community"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The27th),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Свети Сава").AsDictionary(),
             Type       = Optional,
             Note       = "For members of the Serbian community"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The8th),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Меѓународен ден на Ромите").AsDictionary(),
             Type       = Optional,
             Note       = "For members of the the Roma community"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The23rd),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Национален ден на Властите").AsDictionary(),
             Type       = Optional,
             Note       = "For members of the Vlach community"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.September.The28th),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Меѓународен ден на Бошњаците").AsDictionary(),
             Type       = Optional,
             Note       = "For Members of the Bosniak community."
         },
         new HijriRule()
         {
             Expression = ExpressionTree.Date.Fix(OnM.DhuAlHijjah.The10th).Over.Hijri(),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Курбан Бајрам").AsDictionary(),
             Type       = Optional,
             Note       = "Muslim believers"
         },
         new HebrewRule()
         {
             Expression = ExpressionTree.Date.Fix(OnH.Tishrei.The10th).Over.Hebrew(),
             Names      = NamesBuilder.Make.Add(Langue.MK, "Јом Кипур").AsDictionary(),
             Type       = Optional,
             Note       = "Jewish believers"
         }
     };
 }
Beispiel #14
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="GB"/>.
 /// </summary>
 public GB()
 {
     Code       = "GB";
     Alpha3Code = "GBR";
     Names      = NamesBuilder.Make.Add(Langue.EN, "United Kingdom").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.EN);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary()
         },
         new GregorianRule()
         {
             Key        = "SUB01",
             Expression = ExpressionTree.Substitute.Fix(On.January.The1st).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER -21"),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Mother's Day").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Sunday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Early May bank holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).Before(June),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Spring bank holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.December.The25th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.December.The26th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Specific(On.June.The5th.Of(2012)),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Queen’s Diamond Jubilee").AsDictionary()
         }
     };
     States = new ListState()
     {
         Parent    = this,
         Langues   = Langues,
         Container = { new GB_ALD(), new GB_ENG(), new GB_NIR(), new GB_SCT(), new GB_WLS() }
     }.Initialize(x => x.Init());
 }
Beispiel #15
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="ES"/>.
 /// </summary>
 public ES()
 {
     Code       = "ES";
     Alpha3Code = "ESP";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Spain").Add(Langue.ES, "España").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.ES);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Año Nuevo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.January.The1st).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Año Nuevo").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de los Reyes Magos").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.January.The6th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de los Reyes Magos").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The19th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "San José").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.March.The19th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "San José").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.MaundyThursday,
             Names      = NamesBuilder.Make.Add(Langue.ES, "Jueves Santo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.ES, "Viernes Santo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.ES, "Pascua").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Fiesta del trabajo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.May.The1st).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Fiesta del trabajo").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Madre").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.ES, "Pentecostés").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The25th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Santiago Apostol").AsDictionary(),
             Type       = Observance,
             Note       = "Regional"
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Asunción").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.August.The15th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Asunción").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Move.Fix(On.October.The12th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Fiesta Nacional de España").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Todos los Santos").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.November.The1st).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Todos los Santos").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Move.Fix(On.December.The6th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Constitución Española").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The8th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "La inmaculada concepción").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.December.The8th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "La inmaculada concepción").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Navidad").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Substitute.Fix(On.December.The25th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Navidad").AsDictionary(),
             Substitute = true
         }
     };
     States = new ListState()
     {
         Parent    = this,
         Langues   = Langues,
         Container = { new ES_MD(), new ES_AN(), new ES_AR() }
     }.Initialize(x => x.Init());
 }
Beispiel #16
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="PT"/>.
 /// </summary>
 public PT()
 {
     Code       = "PT";
     Alpha3Code = "PRT";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Portugal").Add(Langue.PT, "Portugal").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.PT);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Ano Novo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CarnivalTuesday,
             Names      = NamesBuilder.Make.Add(Langue.PT, "Carnaval").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.PT, "Sexta-Feira Santa").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.PT, "Páscoa").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The25th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Dia da Liberdade").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Dia do trabalhador").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Dia das Mães").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CorpusChristi,
             Names      = NamesBuilder.Make.Add(Langue.PT, "Corpo de Deus").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The10th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Dia de Portugal").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Assunção").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The5th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Implantação da República").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Todos os santos").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Restauração da Independência").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The8th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Imaculada Conceição").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Noite de Natal").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Natal").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st),
             Names      = NamesBuilder.Make.Add(Langue.PT, "Véspera de Ano Novo").AsDictionary(),
             Type       = Observance
         }
     };
 }
Beispiel #17
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="CZ"/>.
 /// </summary>
 public CZ()
 {
     Code       = "CZ";
     Alpha3Code = "CZE";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Czech Republic").Add(Langue.CZ, "Česká republika").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.CZ);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Nový rok; Den obnovy samostatného českého státu").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER -4"),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Škaredá středa").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.MaundyThursday,
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Zelený čtvrtek").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Velikonoční pátek").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.HolySaturday,
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Bílá sobota").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.CZ, " Neděle velikonoční").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Velikonoční pondělí").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Svátek práce").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The8th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Den vítězství or Den osvobození").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Den matek").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The5th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, " Den slovanských věrozvěstů Cyrila a Metoděje").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The6th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Den upálení mistra Jana Husa").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.September.The28th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Den české státnosti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The28th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Den vzniku samostatného československého státu").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The17th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Den boje za svobodu a demokracii").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "Štědrý den").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "1. svátek vánoční").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.CZ, "2. svátek vánoční").AsDictionary()
         }
     };
 }
Beispiel #18
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="AG"/>.
 /// </summary>
 public AG()
 {
     Code       = "AG";
     Alpha3Code = "ATG";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Antigua & Barbuda").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.EN);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.January.The1st).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Sunday").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Pentecost").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Whit Monday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EN, "J'Ouvert Morning").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The2nd),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Last Lap").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Move.Fix(On.November.The11th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Independance Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The9th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "V.C Bird Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.December.The25th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Tuesday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.December.The26th).If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary(),
             Substitute = true
         }
     };
     States = new ListState()
     {
         Parent    = this,
         Langues   = Langues,
         Container = { new AG_10() }
     }.Initialize(x => x.Init());
 }
Beispiel #19
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="SE"/>.
 /// </summary>
 public SE()
 {
     Code       = "SE";
     Alpha3Code = "SWE";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Sweden").Add(Langue.SV, "Sverige").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.SV);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Nyårsdagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Trettondedag jul").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Långfredagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Annandag påsk").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Första Maj").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Kristi himmelfärds dag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).Before(June),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Mors dag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The6th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Sveriges nationaldag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Saturday).After("06-20"),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Midsommar").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Saturday).After("10-31"),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Alla Helgons dag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Juldagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Annandag jul").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The13th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Knut").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(March),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Vasaloppet").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The25th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Marie Bebådelsedag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The30th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Valborgsmässoafton").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Påsk").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.SV, "Pingst").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The6th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Gustav-Adolf-dagen").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The11th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Mårtensgås").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The10th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Nobeldagen").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The13th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Luciadagen").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Julafton").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st),
             Names      = NamesBuilder.Make.Add(Langue.SV, "Nyårsafton").AsDictionary(),
             Type       = Observance
         }
     };
 }
Beispiel #20
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="PL"/>.
 /// </summary>
 public PL()
 {
     Code       = "PL";
     Alpha3Code = "POL";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Poland").Add(Langue.PL, "Polska").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.PL);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Nowy Rok").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Święto Trzech Króli").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.PL, "Niedziela Wielkanocna").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.PL, "Drugi dzień Wielkanocy").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Święto Państwowe; Święto Pracy").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The3rd),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Święto Narodowe Trzeciego Maja").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The26th),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Dzień Matki").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.PL, "Zielone Świątki").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CorpusChristi,
             Names      = NamesBuilder.Make.Add(Langue.PL, "Dzień Bożego Ciała").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Wniebowzięcie Najświętszej Maryi Panny").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Wszystkich Świętych").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The11th),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Narodowe Święto Niepodległości").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Pierwszy dzień Bożego Narodzenia").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.PL, "Drugi dzień Bożego Narodzenia").AsDictionary()
         }
     };
 }
Beispiel #21
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="UA"/>.
 /// </summary>
 public UA()
 {
     Code       = "UA";
     Alpha3Code = "UKR";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Ukraine").Add(Langue.UK, "Україна").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.UK);
     SupportedCalendar = new List <Calendar>()
     {
         Gregorian, Julian
     };
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.January.The1st).If(Saturday).Then.Next(Tuesday).Or.If(Sunday).Then.Next(Tuesday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "Новий Рік").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.January.The2nd).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "Новий Рік").AsDictionary(),
             Substitute = true
         },
         new JulianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.December.The25th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday).Over.Julian(),
             Names      = NamesBuilder.Make.Add(Langue.UK, "Різдво").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.March.The8th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "Міжнародний жіночий день").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Easter.StartAtMidnight.Duration.P2D(),
             Names      = NamesBuilder.Make.Add(Langue.UK, "Великдень").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Pentecost.StartAtMidnight.Duration.P2D(),
             Names      = NamesBuilder.Make.Add(Langue.UK, "Трійця").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.May.The1st).If(Saturday).Then.Next(Tuesday).Or.If(Sunday).Then.Next(Tuesday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "День міжнародної солідарності трудящих").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.May.The2nd).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Tuesday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "День міжнародної солідарності трудящих").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.May.The9th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "День перемоги над нацизмом у Другій світовій війні").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.June.The28th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "День Конституції").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.August.The24th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.UK, "День Незалежності").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.October.The14th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday).Since(2015),
             Names      = NamesBuilder.Make.Add(Langue.UK, "День захисника України").AsDictionary(),
             Substitute = true
         }
     };
 }
Beispiel #22
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="SM"/>.
 /// </summary>
 public SM()
 {
     Code       = "SM";
     Alpha3Code = "SMR";
     Names      = NamesBuilder.Make.Add(Langue.EN, "San Marino").Add(Langue.IT, "San Marino").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.IT);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Capodanno").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Epifania").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The5th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Festa di Sant’Agata").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.IT, "Domenica di Pasqua").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.IT, "Lunedì dell’Angelo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The25th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Anniversario dell'Arengo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.April.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Cerimonia di investitura dei Capitani Reggenti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Festa del Lavoro").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Festa della mamma").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CorpusChristi,
             Names      = NamesBuilder.Make.Add(Langue.IT, "Corpus Domini").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The28th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Anniversario della caduta del Fascismo e Festa della Libertà").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Ferragosto").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.September.The3rd),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Festa di San Marino e di Fondazione della Repubblica").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Cerimonia di investitura dei Capitani Reggenti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Tutti i Santi").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The2nd),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Commemorazione dei defunti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The8th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Immacolata Concezione").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Natale").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Santo Stefano").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st),
             Names      = NamesBuilder.Make.Add(Langue.IT, "Ultimo dell’anno").AsDictionary(),
             Type       = Optional
         }
     };
 }
Beispiel #23
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="LI"/>.
 /// </summary>
 public LI()
 {
     Code       = "LI";
     Alpha3Code = "LIE";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Lichtenstein").Add(Langue.DE, "Lichtenstein").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.DE);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Neujahr").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The2nd),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Berchtoldstag").AsDictionary(),
             Type       = Bank
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Heilige Drei Könige").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The2nd),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Lichtmess").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The19th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Josefstag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CarnivalTuesday,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Faschingsdienstag").AsDictionary(),
             Type       = Bank
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Karfreitag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Ostersonntag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Ostermontag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Tag der Arbeit").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Muttertag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Auffahrt").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER +40"),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Feiertagsbrücke").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Pfingstsonntag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Pfingstmontag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CorpusChristi,
             Names      = NamesBuilder.Make.Add(Langue.DE, "Fronleichnam").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER +61"),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Feiertagsbrücke").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Staatsfeiertag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.September.The8th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Mariä Geburt").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Allerheiligen").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The8th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Mariä Empfängnis").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Heiliger Abend").AsDictionary(),
             Type       = Bank
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Weihnachten").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Stephanstag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st),
             Names      = NamesBuilder.Make.Add(Langue.DE, "Silvester").AsDictionary(),
             Type       = Bank
         }
     };
 }
Beispiel #24
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="LV"/>.
 /// </summary>
 public LV()
 {
     Code       = "LV";
     Alpha3Code = "LVA";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Latvia").Add(Langue.LV, "Latvija").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.LV);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Jaunais Gads").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.LV, "Lielā Piektdiena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.LV, "Lieldienas").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.LV, "Otrās Lieldienas").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Darba svētki").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.May.The4th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Latvijas Republikas Neatkarības atjaunošanas diena").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Mātes diena").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The23rd),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Līgo Diena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The24th),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Jāņi").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Observe.Fix(On.November.The18th).If(Saturday).Then.Next(Monday).Or.If(Sunday).Then.Next(Monday),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Latvijas Republikas proklamēšanas diena").AsDictionary(),
             Substitute = true
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Ziemassvētku vakars").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Ziemassvētki").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Otrie Ziemassvētki").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st),
             Names      = NamesBuilder.Make.Add(Langue.LV, "Vecgada vakars").AsDictionary()
         }
     };
 }
Beispiel #25
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="MX"/>.
 /// </summary>
 public MX()
 {
     Code       = "MX";
     Alpha3Code = "MEX";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Mexico").Add(Langue.ES, "México").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.ES);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Año Nuevo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(February),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Constitución (día libre)").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The21st),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Natalicio de Benito Juárez").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Third, Monday).In(March),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Natalicio de Benito Juárez (día libre)").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Fiesta del trabajo").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The10th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Madre").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.September.The16th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Independencia").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The20th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Revolución").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Third, Monday).In(November),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Día de la Revolución (día libre)").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The1st).StartAtMidnight.Every(6).Year.Since(1934),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Transmisión del Poder Ejecutivo Federal").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.ES, "Navidad").AsDictionary()
         }
     };
 }
Beispiel #26
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="IM"/>.
 /// </summary>
 public IM()
 {
     Code       = "IM";
     Alpha3Code = "IMN";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Isle of Man").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.EN);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EN, "New Year's Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Good Friday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.EN, "Easter Monday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Labour Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).Before(June),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Spring Bank Holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Friday).In(June),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Tourist Trophy, Senior Race Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The5th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Tynwald Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).Before(September),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Late Summer Bank Holiday").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Christmas Day").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.EN, "Boxing Day").AsDictionary()
         }
     };
 }
Beispiel #27
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="IS"/>.
 /// </summary>
 public IS()
 {
     Code       = "IS";
     Alpha3Code = "ISL";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Iceland").Add(Langue.IS, "Ísland").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.IS);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Nýársdagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Þrettándinn").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Friday).After("01-18"),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Bóndadagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The18th),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Konudagur").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CarnivalMonday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Bolludagur").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CarnivalTuesday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Sprengidagur").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AshWednesday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Öskudagur").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.PalmSunday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Pálmasunnudagur").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.MaundyThursday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Skírdagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Föstudagurinn langi").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Páskadagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Annar í páskum").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Thursday).After("04-18"),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Sumardagurinn fyrsti").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Hátíðisdagur Verkamanna").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Mæðradagurinn").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Uppstigningardagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Hvítasunnudagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Annar í hvítasunnu").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(June),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Sjómannadagurinn").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The17th),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Íslenski þjóðhátíðardagurinn").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Monday).In(August),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Frídagur verslunarmanna").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Saturday).After("10-21"),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Fyrsti vetrardagur").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The16th).Since(1996),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Dagur íslenskrar tungu").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The23rd),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Þorláksmessa").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th).StartAt1PM.UntilMidnight.If(Sunday).ThenStartAtMidnight,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Aðfangadagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Jóladagur").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.IS, "Annar í jólum").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st).StartAt1PM.UntilMidnight.If(Sunday).ThenStartAtMidnight,
             Names      = NamesBuilder.Make.Add(Langue.IS, "Gamlársdagur").AsDictionary()
         }
     };
 }
Beispiel #28
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="LT"/>.
 /// </summary>
 public LT()
 {
     Code       = "LT";
     Alpha3Code = "LTU";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Lithuania").Add(Langue.LT, "Lietuva").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.LT);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Naujieji metai").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.February.The16th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Lietuvos valstybės atkūrimo diena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The11th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Lietuvos nepriklausomybės atkūrimo diena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.LT, "Velykos").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Tarptautinė darbo diena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Motinos diena").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).In(June),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Tėvo diena").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The24th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Joninės, Rasos").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.July.The6th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Valstybės diena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Žolinė").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.November.The1st),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Visų šventųjų diena").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Šv. Kūčios").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "Šv. Kalėdos").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.LT, "2. Kalėdų diena").AsDictionary()
         }
     };
 }
Beispiel #29
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="GR"/>.
 /// </summary>
 public GR()
 {
     Code       = "GR";
     Alpha3Code = "GRC";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Greece").Add(Langue.EL, "Ελλάδα").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.EL);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Πρωτοχρονιά").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The6th),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Θεοφάνεια").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.CarnivalMonday,
             Names      = NamesBuilder.Make.Add(Langue.EL, "Καθαρά Δευτέρα").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.March.The25th),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Ευαγγελισμός, Εθνική Εορτή").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.EL, "Μεγάλη Παρασκευή").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Easter,
             Names      = NamesBuilder.Make.Add(Langue.EL, "Πάσχα").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.EL, "Δευτέρα του Πάσχα").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Εργατική Πρωτομαγιά").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Orthodox.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.EL, "Αγίου Πνεύματος").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(May),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Γιορτή της μητέρας").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.August.The15th),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Κοίμηση της Θεοτόκου").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.October.The28th),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Επέτειος του Όχι").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Χριστούγεννα").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.EL, "Δεύτερη μέρα των Χριστουγέννων").AsDictionary()
         }
     };
 }
Beispiel #30
0
 /// <summary>
 /// Initialise une nouvelle instance pour la classe <see cref="NO"/>.
 /// </summary>
 public NO()
 {
     Code       = "NO";
     Alpha3Code = "NOR";
     Names      = NamesBuilder.Make.Add(Langue.EN, "Norway").Add(Langue.NO, "Norge").AsDictionary();
     DaysOff.Add(Sunday);
     Langues.Add(Langue.NO);
     SupportedCalendar.Add(Gregorian);
     Rules = new ListRule()
     {
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.January.The1st),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Første nyttårsdag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(February),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Morsdag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.CustomDay("EASTER -49"),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Fastelavn").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.PalmSunday,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Palmesøndag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.MaundyThursday,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Skjærtorsdag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.GoodFriday,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Langfredag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.HolySaturday,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Påskeaften").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Easter,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Første påskedag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.EasterMonday,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Andre påskedag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The1st),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Første mai").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The8th),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Frigjøringsdag 1945").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.May.The17th),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Grunnlovsdagen").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.AscensionDay,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Kristi himmelfartsdag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.Pentecost,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Første pinsedag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Catholic.WhitMonday,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Andre pinsedag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.June.The23rd),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Sankthansaften").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).In(November),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Farsdag").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Fourth, Sunday).Before("12-24"),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Første søndag i advent").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Third, Sunday).Before("12-24"),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Andre søndag i advent").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(Second, Sunday).Before("12-24"),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Tredje søndag i advent").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Movable(First, Sunday).Before("12-24"),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Fjerde søndag i advent").AsDictionary(),
             Type       = Observance
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The24th),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Julaften").AsDictionary(),
             Type       = Bank
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The25th),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Første Juledag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The26th),
             Names      = NamesBuilder.Make.Add(Langue.NO, "Andre juledag").AsDictionary()
         },
         new GregorianRule()
         {
             Expression = ExpressionTree.Date.Fix(On.December.The31st).StartAt2PM.UntilMidnight.If(Sunday).ThenStartAtMidnight,
             Names      = NamesBuilder.Make.Add(Langue.NO, "Nyttårsaften").AsDictionary(),
             Type       = Bank
         }
     };
 }