From 277701a2cc9430677db31c81b2bf154964d6295f Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 2 Jul 2009 15:28:58 +0000 Subject: [PATCH] Internationalize some Event edit form error messages. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Event.pm | 5 +++-- lib/WebGUI/i18n/English/Asset_Event.pm | 10 ++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index f7c9871b0..f5a1e8e0e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -3,6 +3,7 @@ - fixed #10522: Metadata value & label problem - fixed #10594: iCal title display error. - fixed #10602: Calendar feed importing extra characters. + - fixed: Internationalize Event edit form error messages. 7.7.12 - Updated auth to allow sending back of non-text/html mime types. diff --git a/lib/WebGUI/Asset/Event.pm b/lib/WebGUI/Asset/Event.pm index 1075fe3cb..38b11ac22 100644 --- a/lib/WebGUI/Asset/Event.pm +++ b/lib/WebGUI/Asset/Event.pm @@ -1489,15 +1489,16 @@ sub processPropertiesFromFormPost { ### Verify the form was filled out correctly... my @errors; # If the start date is after the end date + my $i18n = WebGUI::International->new($session, 'Asset_Event'); if ($self->get("startDate") gt $self->get("endDate")) { - push @errors, "The event end date must be after the event start date."; + push @errors, $i18n->get("The event end date must be after the event start date."); } # If the dates are the same and the start time is after the end time if ($self->get("startDate") eq $self->get("endDate") && $self->get("startTime") gt $self->get("endTime") ) { - push @errors, "The event end time must be after the event start time."; + push @errors, $i18n->get("The event end time must be after the event start time."); } if (@errors) { diff --git a/lib/WebGUI/i18n/English/Asset_Event.pm b/lib/WebGUI/i18n/English/Asset_Event.pm index 17eb2b042..3331fc7c7 100644 --- a/lib/WebGUI/i18n/English/Asset_Event.pm +++ b/lib/WebGUI/i18n/English/Asset_Event.pm @@ -685,6 +685,16 @@ be useful, others may not.|, lastUpdated => 1204668000, }, + 'The event end date must be after the event start date.' => { + message => q{The event end date must be after the event start date.}, + lastUpdated => 1246549332, + }, + + 'The event end time must be after the event start time.' => { + message => q{The event end time must be after the event start time.}, + lastUpdated => 1204668000, + }, + }; 1;