summaryrefslogtreecommitdiff
path: root/includes/view/EventConfig_view.php
diff options
context:
space:
mode:
authorBot <bot@myigel.name>2018-08-29 21:55:32 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-29 23:46:32 +0200
commite8f8fc7f5f5eba315290bc8d45348c3a4d4bee79 (patch)
treef882e29ee1ca436ee98a93a4f8a489630a71b9c1 /includes/view/EventConfig_view.php
parent3a1164164791edbe30c7247b98585474867dd968 (diff)
Replaced gettext translation `_()` with `__()` that uses the Translator class
Diffstat (limited to 'includes/view/EventConfig_view.php')
-rw-r--r--includes/view/EventConfig_view.php54
1 files changed, 27 insertions, 27 deletions
diff --git a/includes/view/EventConfig_view.php b/includes/view/EventConfig_view.php
index fe6de670..2525182a 100644
--- a/includes/view/EventConfig_view.php
+++ b/includes/view/EventConfig_view.php
@@ -10,7 +10,7 @@ function EventConfig_countdown_page($event_config)
{
if (empty($event_config)) {
return div('col-md-12 text-center', [
- heading(sprintf(_('Welcome to the %s!'), '<span class="icon-icon_angel"></span> ENGELSYSTEM'), 2)
+ heading(sprintf(__('Welcome to the %s!'), '<span class="icon-icon_angel"></span> ENGELSYSTEM'), 2)
]);
}
@@ -19,7 +19,7 @@ function EventConfig_countdown_page($event_config)
if (!is_null($event_config['event_name'])) {
$elements[] = div('col-sm-12 text-center', [
heading(sprintf(
- _('Welcome to the %s!'),
+ __('Welcome to the %s!'),
$event_config['event_name'] . ' <span class="icon-icon_angel"></span> ENGELSYSTEM'
), 2)
]);
@@ -27,33 +27,33 @@ function EventConfig_countdown_page($event_config)
if (!is_null($event_config['buildup_start_date']) && time() < $event_config['buildup_start_date']) {
$elements[] = div('col-sm-3 text-center hidden-xs', [
- heading(_('Buildup starts'), 4),
+ heading(__('Buildup starts'), 4),
'<span class="moment-countdown text-big" data-timestamp="' . $event_config['buildup_start_date'] . '">%c</span>',
- '<small>' . date(_('Y-m-d'), $event_config['buildup_start_date']) . '</small>'
+ '<small>' . date(__('Y-m-d'), $event_config['buildup_start_date']) . '</small>'
]);
}
if (!is_null($event_config['event_start_date']) && time() < $event_config['event_start_date']) {
$elements[] = div('col-sm-3 text-center hidden-xs', [
- heading(_('Event starts'), 4),
+ heading(__('Event starts'), 4),
'<span class="moment-countdown text-big" data-timestamp="' . $event_config['event_start_date'] . '">%c</span>',
- '<small>' . date(_('Y-m-d'), $event_config['event_start_date']) . '</small>'
+ '<small>' . date(__('Y-m-d'), $event_config['event_start_date']) . '</small>'
]);
}
if (!is_null($event_config['event_end_date']) && time() < $event_config['event_end_date']) {
$elements[] = div('col-sm-3 text-center hidden-xs', [
- heading(_('Event ends'), 4),
+ heading(__('Event ends'), 4),
'<span class="moment-countdown text-big" data-timestamp="' . $event_config['event_end_date'] . '">%c</span>',
- '<small>' . date(_('Y-m-d'), $event_config['event_end_date']) . '</small>'
+ '<small>' . date(__('Y-m-d'), $event_config['event_end_date']) . '</small>'
]);
}
if (!is_null($event_config['teardown_end_date']) && time() < $event_config['teardown_end_date']) {
$elements[] = div('col-sm-3 text-center hidden-xs', [
- heading(_('Teardown ends'), 4),
+ heading(__('Teardown ends'), 4),
'<span class="moment-countdown text-big" data-timestamp="' . $event_config['teardown_end_date'] . '">%c</span>',
- '<small>' . date(_('Y-m-d'), $event_config['teardown_end_date']) . '</small>'
+ '<small>' . date(__('Y-m-d'), $event_config['teardown_end_date']) . '</small>'
]);
}
@@ -79,27 +79,27 @@ function EventConfig_info($event_config)
&& !is_null($event_config['event_end_date'])
) {
return sprintf(
- _('%s, from %s to %s'),
+ __('%s, from %s to %s'),
$event_config['event_name'],
- date(_('Y-m-d'), $event_config['event_start_date']),
- date(_('Y-m-d'), $event_config['event_end_date'])
+ date(__('Y-m-d'), $event_config['event_start_date']),
+ date(__('Y-m-d'), $event_config['event_end_date'])
);
}
// Event name, start date are set
if (!is_null($event_config['event_name']) && !is_null($event_config['event_start_date'])) {
return sprintf(
- _('%s, starting %s'), $event_config['event_name'],
- date(_('Y-m-d'), $event_config['event_start_date'])
+ __('%s, starting %s'), $event_config['event_name'],
+ date(__('Y-m-d'), $event_config['event_start_date'])
);
}
// Event start+end date are set
if (!is_null($event_config['event_start_date']) && !is_null($event_config['event_end_date'])) {
return sprintf(
- _('Event from %s to %s'),
- date(_('Y-m-d'), $event_config['event_start_date']),
- date(_('Y-m-d'), $event_config['event_end_date'])
+ __('Event from %s to %s'),
+ date(__('Y-m-d'), $event_config['event_start_date']),
+ date(__('Y-m-d'), $event_config['event_end_date'])
);
}
@@ -135,26 +135,26 @@ function EventConfig_edit_view(
form([
div('row', [
div('col-md-6', [
- form_text('event_name', _('Event Name'), $event_name),
- form_info('', _('Event Name is shown on the start page.')),
- form_textarea('event_welcome_msg', _('Event Welcome Message'), $event_welcome_msg),
+ form_text('event_name', __('Event Name'), $event_name),
+ form_info('', __('Event Name is shown on the start page.')),
+ form_textarea('event_welcome_msg', __('Event Welcome Message'), $event_welcome_msg),
form_info(
'',
- _('Welcome message is shown after successful registration. You can use markdown.')
+ __('Welcome message is shown after successful registration. You can use markdown.')
)
]),
div('col-md-3 col-xs-6', [
- form_date('buildup_start_date', _('Buildup date'), $buildup_start_date),
- form_date('event_start_date', _('Event start date'), $event_start_date)
+ form_date('buildup_start_date', __('Buildup date'), $buildup_start_date),
+ form_date('event_start_date', __('Event start date'), $event_start_date)
]),
div('col-md-3 col-xs-6', [
- form_date('teardown_end_date', _('Teardown end date'), $teardown_end_date),
- form_date('event_end_date', _('Event end date'), $event_end_date)
+ form_date('teardown_end_date', __('Teardown end date'), $teardown_end_date),
+ form_date('event_end_date', __('Event end date'), $event_end_date)
])
]),
div('row', [
div('col-md-6', [
- form_submit('submit', _('Save'))
+ form_submit('submit', __('Save'))
])
])
])