summaryrefslogtreecommitdiff
path: root/includes/controller/event_config_controller.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/controller/event_config_controller.php
parent3a1164164791edbe30c7247b98585474867dd968 (diff)
Replaced gettext translation `_()` with `__()` that uses the Translator class
Diffstat (limited to 'includes/controller/event_config_controller.php')
-rw-r--r--includes/controller/event_config_controller.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/controller/event_config_controller.php b/includes/controller/event_config_controller.php
index e64f47fd..c227b785 100644
--- a/includes/controller/event_config_controller.php
+++ b/includes/controller/event_config_controller.php
@@ -5,7 +5,7 @@
*/
function event_config_title()
{
- return _('Event config');
+ return __('Event config');
}
/**
@@ -54,40 +54,40 @@ function event_config_edit_controller()
$event_welcome_msg = null;
}
- $result = check_request_date('buildup_start_date', _('Please enter buildup start date.'), true);
+ $result = check_request_date('buildup_start_date', __('Please enter buildup start date.'), true);
$buildup_start_date = $result->getValue();
$valid &= $result->isValid();
- $result = check_request_date('event_start_date', _('Please enter event start date.'), true);
+ $result = check_request_date('event_start_date', __('Please enter event start date.'), true);
$event_start_date = $result->getValue();
$valid &= $result->isValid();
- $result = check_request_date('event_end_date', _('Please enter event end date.'), true);
+ $result = check_request_date('event_end_date', __('Please enter event end date.'), true);
$event_end_date = $result->getValue();
$valid &= $result->isValid();
- $result = check_request_date('teardown_end_date', _('Please enter teardown end date.'), true);
+ $result = check_request_date('teardown_end_date', __('Please enter teardown end date.'), true);
$teardown_end_date = $result->getValue();
$valid &= $result->isValid();
if (!is_null($buildup_start_date) && !is_null($event_start_date) && $buildup_start_date > $event_start_date) {
$valid = false;
- error(_('The buildup start date has to be before the event start date.'));
+ error(__('The buildup start date has to be before the event start date.'));
}
if (!is_null($event_start_date) && !is_null($event_end_date) && $event_start_date > $event_end_date) {
$valid = false;
- error(_('The event start date has to be before the event end date.'));
+ error(__('The event start date has to be before the event end date.'));
}
if (!is_null($event_end_date) && !is_null($teardown_end_date) && $event_end_date > $teardown_end_date) {
$valid = false;
- error(_('The event end date has to be before the teardown end date.'));
+ error(__('The event end date has to be before the teardown end date.'));
}
if (!is_null($buildup_start_date) && !is_null($teardown_end_date) && $buildup_start_date > $teardown_end_date) {
$valid = false;
- error(_('The buildup start date has to be before the teardown end date.'));
+ error(__('The buildup start date has to be before the teardown end date.'));
}
if ($valid) {
@@ -111,7 +111,7 @@ function event_config_edit_controller()
date('Y-m-d', $teardown_end_date)
)
);
- success(_('Settings saved.'));
+ success(__('Settings saved.'));
redirect(page_link_to('admin_event_config'));
}
}