summaryrefslogtreecommitdiff
path: root/includes/controller/user_worklog_controller.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-09-15 14:58:31 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-09-15 14:58:31 +0200
commitd0abc27c079f058c40a74b89e54bd21ba4aad53e (patch)
tree2d42f2a3c99d4a01930832c4e257bd550cbe9ac5 /includes/controller/user_worklog_controller.php
parent13d2786b7b51df927c8976dc767cc27e88bc8e84 (diff)
parent5456fea5031000a6325cdcae5f1e9d4c16b6ed50 (diff)
Merge remote-tracking branch 'MyIgel/translations'
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));
}
}