Internationalize some Event edit form error messages.

This commit is contained in:
Colin Kuskie 2009-07-02 15:28:58 +00:00
parent c30614bdf6
commit 277701a2cc
3 changed files with 14 additions and 2 deletions

View file

@ -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.

View file

@ -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) {

View file

@ -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;