summaryrefslogtreecommitdiff
path: root/app/php/controls/CalendarScaffold.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/php/controls/CalendarScaffold.php')
-rw-r--r--app/php/controls/CalendarScaffold.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/php/controls/CalendarScaffold.php b/app/php/controls/CalendarScaffold.php
index c95cce7..7f15a32 100644
--- a/app/php/controls/CalendarScaffold.php
+++ b/app/php/controls/CalendarScaffold.php
@@ -85,7 +85,9 @@ class CalendarScaffold extends FacadeTemplateControl {
$c->saveData($this->_compileSaveData($param->Item));
}
} else {
- throw new TInvalidDataValueException('Calendar not found');
+ throw new TInvalidDataValueException(
+ Prado::localize('Calendar not found')
+ );
}
$this->Calendars->EditItemIndex = -1;
$this->_rebindData(TRUE);
@@ -120,10 +122,14 @@ class CalendarScaffold extends FacadeTemplateControl {
);
}
} else {
- throw new TInvalidDataValueException('Calendar not found');
+ throw new TInvalidDataValueException(
+ Prado::localize('Calendar not found')
+ );
}
} else {
- throw new TInvalidDataTypeException('Invalid file type');
+ throw new TInvalidDataTypeException(
+ Prado::localize('Invalid file type')
+ );
}
}