summaryrefslogtreecommitdiff
path: root/app/frontend/dto/EventDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-06-12 17:25:32 +0200
committeremkael <emkael@tlen.pl>2016-06-12 17:25:32 +0200
commitece88ff6d4c59418dc043c735252aca012eee207 (patch)
treecfaa9686077952a0ee45e530c9b469ace704a643 /app/frontend/dto/EventDTO.php
parentb1458fd1f8c871ba58976eb079caabc60ae2d275 (diff)
* localizing DB strings
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) {