# -*- coding: utf-8 -*- =begin Copyright (C) 2014-2015 Takashi SUGA You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive. =end module When class BasicTypes::M17n InternationalFixed = [self, [ "locale:[=en:, ja=ja:, zh=zh:, alias]", "names:[InternationalFixed=en:International_Fixed_Calendar, 国際固定暦, 国際固定曆=]" ]] end # # InternationalFixed Week # class CalendarNote::InternationalFixedWeek < CalendarNote::Week # # InternationalFixed Note # Notes = [When::BasicTypes::M17n, [ "locale:[=en:, ja=ja:, alias]", "names:[InternationalFixed]", # Notes for year ---------------------------- [When::BasicTypes::M17n, "names:[note for year=, 年の暦注=, *year]" ], # Notes for month ---------------------------- [When::BasicTypes::M17n, "names:[note for month=, 月の暦注=, *month]", [When::BasicTypes::M17n, "names:[month name=en:Month, 月の名前=ja:%%<月_(暦)>, zh:該月的名稱=, *alias:Month=]", "[January, 1月, /date/month_names/1] ", "[February, 2月, /date/month_names/2] ", "[March, 3月, /date/month_names/3] ", "[April, 4月, /date/month_names/4] ", "[May, 5月, /date/month_names/5] ", "[June, 6月, /date/month_names/6] ", "[Sol, 7月 ] ", "[July, 8月, /date/month_names/7] ", "[August, 9月, /date/month_names/8] ", "[September,10月, /date/month_names/9] ", "[October, 11月, /date/month_names/10]", "[November, 12月, /date/month_names/11]", "[December, 13月, /date/month_names/12]" ] ], # Notes for day ---------------------------- [When::BasicTypes::M17n, "names:[note for day=, 日の暦注=, *day]", [When::BasicTypes::M17n, "names:[Week, 週, zh:星期]", [DayOfWeek, "label:[Sunday, 日曜日, /date/day_names/0]", {'delta'=> 7}], [DayOfWeek, "label:[Monday, 月曜日, /date/day_names/1]", {'delta'=> 7}], [DayOfWeek, "label:[Tuesday, 火曜日, /date/day_names/2]", {'delta'=> 7}], [DayOfWeek, "label:[Wednesday, 水曜日, /date/day_names/3]", {'delta'=> 7}], [DayOfWeek, "label:[Thursday, 木曜日, /date/day_names/4]", {'delta'=> 7}], [DayOfWeek, "label:[Friday, 金曜日, /date/day_names/5]", {'delta'=> 7}], [DayOfWeek, "label:[Saturday, 土曜日, /date/day_names/6]", {'delta'=> 7}], [DayOfWeek, "label:[OutOfWeek=, 週外日=]", {'delta'=>366}] ], "[Common_Week=]" ] ]] fixed_week_definitions end module CalendarTypes # # InternationalFixed calendar based on Gregorian calendar # InternationalFixed = [SolarYearTableBased, { 'label' => 'InternationalFixed', 'indices' => [ When.Index('InternationalFixedWeekNotes::month::Month', {:unit =>13}), When::Coordinates::DefaultDayIndex ], 'rule_table' => { 365 => {'Length'=>[28]*12 + [29]}, 366 => {'Length'=>[28]* 5 + [29] + [28] *6 + [29]} }, 'note' => 'InternationalFixedWeek' }] end end