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/CalendarGroupDTO.php | |
parent | b1458fd1f8c871ba58976eb079caabc60ae2d275 (diff) |
* localizing DB strings
Diffstat (limited to 'app/frontend/dto/CalendarGroupDTO.php')
-rw-r--r-- | app/frontend/dto/CalendarGroupDTO.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/frontend/dto/CalendarGroupDTO.php b/app/frontend/dto/CalendarGroupDTO.php index 7b64c6e..a607826 100644 --- a/app/frontend/dto/CalendarGroupDTO.php +++ b/app/frontend/dto/CalendarGroupDTO.php @@ -1,9 +1,10 @@ <?php +Prado::using('Application.dto.BaseDTO'); Prado::using('Application.model.Category'); Prado::using('Application.dto.CalendarDTO'); -class CalendarGroupDTO { +class CalendarGroupDTO extends BaseDTO { public $Name; public $ID; @@ -11,7 +12,10 @@ class CalendarGroupDTO { public $Calendars = []; public function loadRecord(Category $categoryRecord, array $calendars) { - $this->Name = $categoryRecord->Name; + $this->Name = self::getTranslation( + $categoryRecord->Name, + 'CalendarGroup.Name' + ); $this->ID = $categoryRecord->ID; $this->Priority = $categoryRecord->Priority; $this->Calendars = array_map( |