summaryrefslogtreecommitdiff
path: root/includes/controller/user_worklog_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/user_worklog_controller.php
parent3a1164164791edbe30c7247b98585474867dd968 (diff)
Replaced gettext translation `_()` with `__()` that uses the Translator class
Diffstat (limited to 'includes/controller/user_worklog_controller.php')
-rw-r--r--includes/controller/user_worklog_controller.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/controller/user_worklog_controller.php b/includes/controller/user_worklog_controller.php
index a7218071..640dcaba 100644
--- a/includes/controller/user_worklog_controller.php
+++ b/includes/controller/user_worklog_controller.php
@@ -19,7 +19,7 @@ function user_worklog_delete_controller()
if ($request->has('confirmed')) {
UserWorkLog_delete($userWorkLog);
- success(_('Work log entry deleted.'));
+ success(__('Work log entry deleted.'));
redirect(user_link($user_source));
}
@@ -51,7 +51,7 @@ function user_worklog_edit_controller()
if ($valid) {
UserWorkLog_update($userWorkLog);
- success(_('Work log entry updated.'));
+ success(__('Work log entry updated.'));
redirect(user_link($user_source));
}
}
@@ -80,19 +80,19 @@ function user_worklog_from_request($userWorkLog)
);
if (is_null($userWorkLog['work_timestamp'])) {
$valid = false;
- error(_('Please enter work date.'));
+ error(__('Please enter work date.'));
}
$userWorkLog['work_hours'] = $request->input('work_hours');
if (!preg_match("/[0-9]+(\.[0-9]+)?/", $userWorkLog['work_hours'])) {
$valid = false;
- error(_('Please enter work hours in format ##[.##].'));
+ error(__('Please enter work hours in format ##[.##].'));
}
$userWorkLog['comment'] = $request->input('comment');
if (empty($userWorkLog['comment'])) {
$valid = false;
- error(_('Please enter a comment.'));
+ error(__('Please enter a comment.'));
}
return [
@@ -124,7 +124,7 @@ function user_worklog_add_controller()
if ($valid) {
UserWorkLog_create($userWorkLog);
- success(_('Work log entry created.'));
+ success(__('Work log entry created.'));
redirect(user_link($user_source));
}
}