From 5d0cd43954513295c813d3557e8cc6d83ba4a134 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 7 Jun 2016 15:06:56 +0200 Subject: * i18nized texts --- app/php/controls/AddToFilter.tpl | 2 +- app/php/controls/CalendarDetails.tpl | 5 +-- app/php/controls/CalendarGroupFilter.tpl | 2 +- app/php/controls/CalendarScaffold.php | 12 +++++-- app/php/controls/CalendarScaffold.tpl | 51 ++++++++++++++++------------ app/php/controls/EventList.php | 5 ++- app/php/controls/HeaderMenu.tpl | 20 +++++++---- app/php/controls/LoginBox.tpl | 24 +++++++------ app/php/controls/PasswordChange.php | 4 ++- app/php/controls/PasswordChange.tpl | 43 +++++++++++++---------- app/php/controls/RegistrationForm.tpl | 43 +++++++++++++---------- app/php/controls/TimezoneSelect.php | 4 ++- app/php/controls/TimezoneSelect.tpl | 5 +-- app/php/controls/UpcomingEvents.tpl | 2 +- app/php/controls/UrlBasedCalendarControl.php | 5 ++- app/php/controls/UserSelection.tpl | 6 ++-- 16 files changed, 142 insertions(+), 91 deletions(-) (limited to 'app/php/controls') diff --git a/app/php/controls/AddToFilter.tpl b/app/php/controls/AddToFilter.tpl index 5b63be8..a202aa7 100644 --- a/app/php/controls/AddToFilter.tpl +++ b/app/php/controls/AddToFilter.tpl @@ -1,7 +1,7 @@ <%= !$this->UserToManage->IsGuest %> <%= $this->Facade->isCalendarPreferred($this->UserToManage, $this->getCalendar()->ID) %> - <%= $this->UserToManage->IsGuest ? 'log in to manage your selections' : '' %> + <%= $this->UserToManage->IsGuest ? Prado::localize('log in to manage your selections') : '' %> <%= $this->getDescription() %> diff --git a/app/php/controls/CalendarDetails.tpl b/app/php/controls/CalendarDetails.tpl index 058a00f..2fd755c 100644 --- a/app/php/controls/CalendarDetails.tpl +++ b/app/php/controls/CalendarDetails.tpl @@ -4,9 +4,10 @@ <%= $this->getCalendar()->Image %> - + + <%[ Source website ]%> <%= $this->getCalendar()->Website %>

- Last updated: <%= $this->getCalendar()->LastUpdated %> + <%[ Last updated: ]%> <%= $this->getCalendar()->LastUpdated %>

diff --git a/app/php/controls/CalendarGroupFilter.tpl b/app/php/controls/CalendarGroupFilter.tpl index e9ae79a..ac82465 100644 --- a/app/php/controls/CalendarGroupFilter.tpl +++ b/app/php/controls/CalendarGroupFilter.tpl @@ -1,7 +1,7 @@
- All + <%[ All ]%>
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') + ); } } diff --git a/app/php/controls/CalendarScaffold.tpl b/app/php/controls/CalendarScaffold.tpl index 5e15b92..6a22bc2 100644 --- a/app/php/controls/CalendarScaffold.tpl +++ b/app/php/controls/CalendarScaffold.tpl @@ -8,26 +8,30 @@ OnUpdateCommand="saveRow"> + DataField="Name"> + <%[ Calendar ]%> + + DataNavigateUrlField="Website"> + <%[ WWW ]%> + <%[ [www] ]%> + + DataNavigateUrlField="Url"> + <%[ ICS ]%> + <%[ [ics] ]%> + - + ListTextField="Name"> + <%[ Category ]%> + + + <%[ Default ]%> + DataField="CustomName"> + <%[ Custom name ]%> + - + DataField="CustomUrl"> + <%[ URL ]%> + + + <%[ Image ]%> <%# $this->Parent->Data->CustomImageUrl %> @@ -66,9 +72,10 @@ + HeaderText=""> + <%[ Edit ]%> + <%[ Save ]%> + <%[ Cancel ]%> + diff --git a/app/php/controls/EventList.php b/app/php/controls/EventList.php index 325641b..d40e000 100644 --- a/app/php/controls/EventList.php +++ b/app/php/controls/EventList.php @@ -5,7 +5,10 @@ class EventList extends UrlBasedCalendarControl { private function _setDate($key, $date) { $datetime = new DateTime($date, new DateTimeZone('UTC')); if (!$datetime) { - throw new TInvalidDataValueException('Invalid date string: ' . $date); + throw new TInvalidDataValueException( + Prado::localize('Invalid date string: {date}', + ['date' => $date]) + ); } $this->setViewState($key, $datetime); } diff --git a/app/php/controls/HeaderMenu.tpl b/app/php/controls/HeaderMenu.tpl index a7e666d..a760588 100644 --- a/app/php/controls/HeaderMenu.tpl +++ b/app/php/controls/HeaderMenu.tpl @@ -1,27 +1,35 @@