summaryrefslogtreecommitdiff
path: root/includes/view/UserWorkLog_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/UserWorkLog_view.php')
-rw-r--r--includes/view/UserWorkLog_view.php26
1 files changed, 13 insertions, 13 deletions
diff --git a/includes/view/UserWorkLog_view.php b/includes/view/UserWorkLog_view.php
index 772d4aee..e64f5412 100644
--- a/includes/view/UserWorkLog_view.php
+++ b/includes/view/UserWorkLog_view.php
@@ -11,14 +11,14 @@ function UserWorkLog_delete_view($user_source, $userWorkLog)
{
return page_with_title(UserWorkLog_delete_title(), [
info(sprintf(
- _('Do you want to delete the worklog entry for %s?'),
+ __('Do you want to delete the worklog entry for %s?'),
User_Nick_render($user_source)
), true),
buttons([
- button(user_link($user_source), glyph('remove') . _('cancel')),
+ button(user_link($user_source), glyph('remove') . __('cancel')),
button(user_worklog_delete_link($userWorkLog, [
'confirmed' => 1
- ]), glyph('ok') . _('delete'), 'btn-danger')
+ ]), glyph('ok') . __('delete'), 'btn-danger')
])
]);
}
@@ -28,7 +28,7 @@ function UserWorkLog_delete_view($user_source, $userWorkLog)
*/
function UserWorkLog_delete_title()
{
- return _('Delete work log entry');
+ return __('Delete work log entry');
}
/**
@@ -41,11 +41,11 @@ function UserWorkLog_delete_title()
function UserWorkLog_edit_form($user_source, $userWorkLog)
{
return form([
- form_info(_('User'), User_Nick_render($user_source)),
- form_date('work_timestamp', _('Work date'), $userWorkLog['work_timestamp'], null, time()),
- form_text('work_hours', _('Work hours'), $userWorkLog['work_hours']),
- form_text('comment', _('Comment'), $userWorkLog['comment']),
- form_submit('submit', _('Save'))
+ form_info(__('User'), User_Nick_render($user_source)),
+ form_date('work_timestamp', __('Work date'), $userWorkLog['work_timestamp'], null, time()),
+ form_text('work_hours', __('Work hours'), $userWorkLog['work_hours']),
+ form_text('comment', __('Comment'), $userWorkLog['comment']),
+ form_submit('submit', __('Save'))
]);
}
@@ -60,7 +60,7 @@ function UserWorkLog_edit_view($user_source, $userWorkLog)
{
return page_with_title(UserWorkLog_edit_title(), [
buttons([
- button(user_link($user_source), _('back'))
+ button(user_link($user_source), __('back'))
]),
msg(),
UserWorkLog_edit_form($user_source, $userWorkLog)
@@ -78,7 +78,7 @@ function UserWorkLog_add_view($user_source, $userWorkLog)
{
return page_with_title(UserWorkLog_add_title(), [
buttons([
- button(user_link($user_source), _('back'))
+ button(user_link($user_source), __('back'))
]),
msg(),
UserWorkLog_edit_form($user_source, $userWorkLog)
@@ -90,7 +90,7 @@ function UserWorkLog_add_view($user_source, $userWorkLog)
*/
function UserWorkLog_edit_title()
{
- return _('Edit work log entry');
+ return __('Edit work log entry');
}
/**
@@ -98,5 +98,5 @@ function UserWorkLog_edit_title()
*/
function UserWorkLog_add_title()
{
- return _('Add work log entry');
+ return __('Add work log entry');
}