diff options
author | emkael <emkael@tlen.pl> | 2016-06-12 17:25:32 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-06-12 17:25:32 +0200 |
commit | ece88ff6d4c59418dc043c735252aca012eee207 (patch) | |
tree | cfaa9686077952a0ee45e530c9b469ace704a643 /app/frontend/dto/EventDTO.php | |
parent | b1458fd1f8c871ba58976eb079caabc60ae2d275 (diff) |
* localizing DB strings
Diffstat (limited to 'app/frontend/dto/EventDTO.php')
-rw-r--r-- | app/frontend/dto/EventDTO.php | 8 |
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) { |