summaryrefslogtreecommitdiff
path: root/app/frontend/dto/EventDTO.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/dto/EventDTO.php')
-rw-r--r--app/frontend/dto/EventDTO.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/frontend/dto/EventDTO.php b/app/frontend/dto/EventDTO.php
index 8f5cdf5..9af06e4 100644
--- a/app/frontend/dto/EventDTO.php
+++ b/app/frontend/dto/EventDTO.php
@@ -1,10 +1,11 @@
<?php
+Prado::using('Application.dto.BaseDTO');
Prado::using('Application.model.Entry');
Prado::using('Application.dto.CalendarDTO');
Prado::using('Application.facades.UserFacade');
-class EventDTO {
+class EventDTO extends BaseDTO {
public $DateString;
public $Name;
@@ -45,7 +46,10 @@ class EventDTO {
}
public function loadRecord(Entry $event, array $calendars) {
- $this->Name = $event->Name;
+ $this->Name = self::getTranslation(
+ $event->Name,
+ 'Event.Name'
+ );
$this->Location = $event->Location;
if ($event->AllDay) {