Checked in patch for bug 216257 ( with some tweaks ):

Add "Events this month" to dropdown selection list in events pane.
This commit is contained in:
mostafah%oeone.com 2004-11-01 18:50:47 +00:00
parent 189ba5e5c4
commit dc17c17375
22 changed files with 113 additions and 21 deletions

View File

@ -622,15 +622,18 @@
<menuitem id="event-filter-today"
label="&calendar.events.filter.today.label;"
value="today"/>
<menuitem id="event-filter-week"
label="&calendar.events.filter.week.label;"
value="week"/>
<menuitem id="event-filter-2weeks"
label="&calendar.events.filter.2weeks.label;"
value="2weeks"/>
<menuitem id="event-filter-month"
label="&calendar.events.filter.month.label;"
value="month"/>
<menuitem id="event-filter-next7Days"
label="&calendar.events.filter.next7Days.label;"
value="next7Days"/>
<menuitem id="event-filter-next14Days"
label="&calendar.events.filter.next14Days.label;"
value="next14Days"/>
<menuitem id="event-filter-next31Days"
label="&calendar.events.filter.next31Days.label;"
value="next31Days"/>
<menuitem id="event-filter-thisCalendarMonth"
label="&calendar.events.filter.thisCalendarMonth.label;"
value="thisCalendarMonth"/>
<menuitem id="event-filter-future"
label="&calendar.events.filter.future.label;"
value="future"/>

View File

@ -24,6 +24,7 @@
* Colin Phillips <colinp@oeone.com>
* ArentJan Banck <ajbanck@planet.nl>
* Eric Belhaire <eric.belhaire@ief.u-psud.fr>
* Matthew Willis <mattwillis@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -410,18 +411,27 @@ function getAndSetEventTable( )
EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 ) - 1 );
return( gEventSource.getEventsForRange( StartDate, EndDate ) );
case "week":
case "next7Days":
EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 * 8 ) );
return( gEventSource.getEventsForRange( StartDate, EndDate ) );
case "2weeks":
case "next14Days":
EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 * 15 ) );
return( gEventSource.getEventsForRange( StartDate, EndDate ) );
case "month":
case "next31Days":
EndDate = new Date( StartDate.getTime() + ( 1000 * 60 * 60 * 24 * 32 ) );
return( gEventSource.getEventsForRange( StartDate, EndDate ) );
case "thisCalendarMonth":
// midnight on first day of this month
var startOfMonth = new Date( Today.getFullYear(), Today.getMonth(), 1, 0, 0, 0 );
// midnight on first day of next month
var startOfNextMonth = new Date( Today.getFullYear(), (Today.getMonth() + 1), 1, 0, 0, 0 );
// 23:59:59 on last day of this month
var endOfMonth = new Date( startOfNextMonth.getTime() - 1000 );
return( gEventSource.getEventsForRange( startOfMonth, endOfMonth ) );
case "future":
return( gEventSource.getAllFutureEvents() );

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Cites del següent mes">
<!ENTITY calendar.events.filter.future.label "Totes les cites futures">
<!ENTITY calendar.events.filter.current.label "Dia seleccionat actualment">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Fet">
<!ENTITY calendar.unifinder.tree.priority.label "Prioritat">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Události následujícího měsíce">
<!ENTITY calendar.events.filter.future.label "Všechny budoucí události">
<!ENTITY calendar.events.filter.current.label "Právě vybraný den">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Hotovo">
<!ENTITY calendar.unifinder.tree.priority.label "Priorita">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Digwyddiadau'r Mis i Ddod">
<!ENTITY calendar.events.filter.future.label "Holl Ddigwyddiadau'r Dyfodol">
<!ENTITY calendar.events.filter.current.label "Diwrnod Dewis Presennol">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Gorffen">
<!ENTITY calendar.unifinder.tree.priority.label "Blaenoriaeth">

View File

@ -213,6 +213,10 @@
<!ENTITY calendar.events.filter.month.label "Ereignisse des nächsten Monats">
<!ENTITY calendar.events.filter.future.label "Alle zukünftigen Ereignisse">
<!ENTITY calendar.events.filter.current.label "Momentan gewählter Tag">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Erledigt">
<!ENTITY calendar.unifinder.tree.priority.label "Priorität">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Events In The Next Month">
<!ENTITY calendar.events.filter.future.label "All Future Events">
<!ENTITY calendar.events.filter.current.label "Currently Selected Day">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Done">
<!ENTITY calendar.unifinder.tree.priority.label "Priority">

View File

@ -212,6 +212,10 @@
<!ENTITY calendar.events.filter.month.label "Eventos del próximo mes">
<!ENTITY calendar.events.filter.future.label "Todos los eventos del futuro">
<!ENTITY calendar.events.filter.current.label "Día seleccionado">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Hecho">
<!ENTITY calendar.unifinder.tree.priority.label "Prioridad">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Événements du mois qui suit">
<!ENTITY calendar.events.filter.future.label "Tous les événements futurs">
<!ENTITY calendar.events.filter.current.label "Jour courant">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Fait">
<!ENTITY calendar.unifinder.tree.priority.label "Priorité">

View File

@ -218,6 +218,10 @@
<!ENTITY calendar.events.filter.month.label "Események a jövő hónapban">
<!ENTITY calendar.events.filter.future.label "Az összes jövőbeli esemény">
<!ENTITY calendar.events.filter.current.label "A most kiválasztott nap">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Kész">
<!ENTITY calendar.unifinder.tree.priority.label "Prioritás">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Eventi del mese prossimo">
<!ENTITY calendar.events.filter.future.label "Tutti gli eventi futuri">
<!ENTITY calendar.events.filter.current.label "Giorno selezionato">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Fatto">
<!ENTITY calendar.unifinder.tree.priority.label "Priorita' ">

View File

@ -219,6 +219,10 @@
<!ENTITY calendar.events.filter.month.label "翌月のイベント">
<!ENTITY calendar.events.filter.future.label "すべてのこれからのイベント">
<!ENTITY calendar.events.filter.current.label "今、選択中の日">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "完了">
<!ENTITY calendar.unifinder.tree.priority.label "優先度">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Kito mėnesio įvykiai">
<!ENTITY calendar.events.filter.future.label "Visi būsimieji įvykiai">
<!ENTITY calendar.events.filter.current.label "Pasirinktos dienos įvykiai">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Atlikta">
<!ENTITY calendar.unifinder.tree.priority.label "Prioritetas">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Gebeurtenissen in de komende maand">
<!ENTITY calendar.events.filter.future.label "Alle komende gebeurtenissen">
<!ENTITY calendar.events.filter.current.label "Momenteel geselecteerde dag">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Voltooid">
<!ENTITY calendar.unifinder.tree.priority.label "Prioriteit">

View File

@ -212,6 +212,10 @@
<!ENTITY calendar.events.filter.month.label "Wydarzenia w następnym miesiącu">
<!ENTITY calendar.events.filter.future.label "Wszystkie przyszłe wydarzenia">
<!ENTITY calendar.events.filter.current.label "Aktualnie wybrany dzień">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Zrobione">
<!ENTITY calendar.unifinder.tree.priority.label "Priorytet">

View File

@ -217,6 +217,10 @@
<!ENTITY calendar.events.filter.month.label "Eventos Do Pr&#xF3;ximo M&#xEA;s">
<!ENTITY calendar.events.filter.future.label "Todos os Eventos Futuros">
<!ENTITY calendar.events.filter.current.label "Dia Atualmente Selecionado">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Feito">
<!ENTITY calendar.unifinder.tree.priority.label "Prioridade">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Udalosti následujúceho mesiaca">
<!ENTITY calendar.events.filter.future.label "Všetky budúce udalosti">
<!ENTITY calendar.events.filter.current.label "Práve vybraný deň">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Hotovo">
<!ENTITY calendar.unifinder.tree.priority.label "Priorita">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Dogodki prihodnjega meseca">
<!ENTITY calendar.events.filter.future.label "Vsi prihodnji dogodki">
<!ENTITY calendar.events.filter.current.label "Trenutno izbrani dan">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Opravljeno">
<!ENTITY calendar.unifinder.tree.priority.label "Prioriteta">

View File

@ -217,6 +217,10 @@
<!ENTITY calendar.events.filter.month.label "Händelser Den Kommande Månaden">
<!ENTITY calendar.events.filter.future.label "Alla Framtida Händelser">
<!ENTITY calendar.events.filter.current.label "Den Valda Dagens Händelser">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Klar">
<!ENTITY calendar.unifinder.tree.priority.label "Prioritet">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Gelecek aydaki olaylar">
<!ENTITY calendar.events.filter.future.label "Gelecekdeki bütün olaylar">
<!ENTITY calendar.events.filter.current.label "Güncel seçili gün">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Tamamlandı">
<!ENTITY calendar.unifinder.tree.priority.label "Önemlilik">

View File

@ -216,6 +216,10 @@
<!ENTITY calendar.events.filter.month.label "Podawki w přichodnym měsacu">
<!ENTITY calendar.events.filter.future.label "Wšě přichodne podawki">
<!ENTITY calendar.events.filter.current.label "Tuchwilu wubrany dźeń">
<!ENTITY calendar.events.filter.next7Days.label "Events in the Next 7 Days">
<!ENTITY calendar.events.filter.next14Days.label "Events in the Next 14 Days">
<!ENTITY calendar.events.filter.next31Days.label "Events in the Next 31 Days">
<!ENTITY calendar.events.filter.thisCalendarMonth.label "Events in this Calendar Month">
<!ENTITY calendar.unifinder.tree.done.label "Sčinjeny">
<!ENTITY calendar.unifinder.tree.priority.label "Priorita">

View File

@ -553,15 +553,18 @@
<menuitem id="event-filter-today"
label="&calendar.events.filter.today.label;"
value="today"/>
<menuitem id="event-filter-week"
label="&calendar.events.filter.week.label;"
value="week"/>
<menuitem id="event-filter-2weeks"
label="&calendar.events.filter.2weeks.label;"
value="2weeks"/>
<menuitem id="event-filter-month"
label="&calendar.events.filter.month.label;"
value="month"/>
<menuitem id="event-filter-next7Days"
label="&calendar.events.filter.next7Days.label;"
value="next7Days"/>
<menuitem id="event-filter-next14Days"
label="&calendar.events.filter.next14Days.label;"
value="next14Days"/>
<menuitem id="event-filter-next31Days"
label="&calendar.events.filter.next31Days.label;"
value="next31Days"/>
<menuitem id="event-filter-thisCalendarMonth"
label="&calendar.events.filter.thisCalendarMonth.label;"
value="thisCalendarMonth"/>
<menuitem id="event-filter-future"
label="&calendar.events.filter.future.label;"
value="future"/>