aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-recur.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-02-06 02:12:34 +0800
committerDan Winship <danw@src.gnome.org>2003-02-06 02:12:34 +0800
commit05020b82c39a859834995723d5726e026b82de75 (patch)
tree94c86a378b27e5b3da840e4d961b827785fdb58c /calendar/cal-util/cal-recur.c
parenta066cf216e1768a2a709613fea72b369f33fd41d (diff)
downloadgsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.tar
gsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.tar.gz
gsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.tar.bz2
gsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.tar.lz
gsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.tar.xz
gsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.tar.zst
gsoc2013-evolution-05020b82c39a859834995723d5726e026b82de75.zip
array of localized month day names ("1st" - "31st")
* cal-util/cal-recur.c (cal_recur_nth): array of localized month day names ("1st" - "31st") * gui/dialogs/recurrence-page.c (make_recur_month_num_submenu, make_recur_month_num_menu, month_num_menu_selection_done_cb): Use the new cal_recur_nth[] array. The way this was done before didn't localize properly. * gui/alarm-notify/notify-main.c (main): s/glade_gnome_init/glade_init/ From evolution-1-2-branch: * gui/e-itip-control.c (write_recurrence_piece): Describe recurrences, if we can. #30993 (set_date_label): If the meeting has recurrences, call write_recurrence_piece after writing the start and end dates. (write_label_piece): Wrap the timezone in <font size=-1> to de-emphasize it a bit and try to keep the timestamp on a single line even with big Outlook timezone names. Add an option to show just the date, for describing the end of recurrences (since the time in the UNTIL is the *beginning* of the last instance, which would confuse people). (update_item): Set the VCALENDAR's METHOD. (ok_clicked_cb): Use update_item, not remove_item, to process a cancelation. Part of #33875. * pcs/cal-backend-file.c (cal_backend_file_cancel_object): New, handle an ICAL_METHOD_CANCEL update. (cal_backend_file_update_objects): Call cal_backend_file_update_object or cal_backend_file_cancel_object as appropriate. svn path=/trunk/; revision=19763
Diffstat (limited to 'calendar/cal-util/cal-recur.c')
-rw-r--r--calendar/cal-util/cal-recur.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/calendar/cal-util/cal-recur.c b/calendar/cal-util/cal-recur.c
index e050004031..214c642f45 100644
--- a/calendar/cal-util/cal-recur.c
+++ b/calendar/cal-util/cal-recur.c
@@ -23,6 +23,7 @@
#include <config.h>
#include <stdlib.h>
#include <string.h>
+#include <libgnome/gnome-i18n.h>
#include <cal-util/cal-recur.h>
#include <cal-util/timeutil.h>
@@ -3978,3 +3979,36 @@ cal_recur_set_rule_end_date (icalproperty *prop,
icalproperty_add_parameter (prop, param);
}
+const char *cal_recur_nth[31] = {
+ N_("1st"),
+ N_("2nd"),
+ N_("3rd"),
+ N_("4th"),
+ N_("5th"),
+ N_("6th"),
+ N_("7th"),
+ N_("8th"),
+ N_("9th"),
+ N_("10th"),
+ N_("11th"),
+ N_("12th"),
+ N_("13th"),
+ N_("14th"),
+ N_("15th"),
+ N_("16th"),
+ N_("17th"),
+ N_("18th"),
+ N_("19th"),
+ N_("20th"),
+ N_("21st"),
+ N_("22nd"),
+ N_("23rd"),
+ N_("24th"),
+ N_("25th"),
+ N_("26th"),
+ N_("27th"),
+ N_("28th"),
+ N_("29th"),
+ N_("30th"),
+ N_("31st")
+};