summaryrefslogtreecommitdiff
path: root/includes/view/ShiftEntry_view.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/view/ShiftEntry_view.php
parent13d2786b7b51df927c8976dc767cc27e88bc8e84 (diff)
parent5456fea5031000a6325cdcae5f1e9d4c16b6ed50 (diff)
Merge remote-tracking branch 'MyIgel/translations'
Diffstat (limited to 'includes/view/ShiftEntry_view.php')
-rw-r--r--includes/view/ShiftEntry_view.php56
1 files changed, 28 insertions, 28 deletions
diff --git a/includes/view/ShiftEntry_view.php b/includes/view/ShiftEntry_view.php
index 1b646557..7884e404 100644
--- a/includes/view/ShiftEntry_view.php
+++ b/includes/view/ShiftEntry_view.php
@@ -14,7 +14,7 @@ function ShiftEntry_delete_view_admin($shiftEntry, $shift, $angeltype, $signoff_
{
return page_with_title(ShiftEntry_delete_title(), [
info(sprintf(
- _('Do you want to sign off %s from shift %s from %s to %s as %s?'),
+ __('Do you want to sign off %s from shift %s from %s to %s as %s?'),
User_Nick_render($signoff_user),
$shift['name'],
date('Y-m-d H:i', $shift['start']),
@@ -22,10 +22,10 @@ function ShiftEntry_delete_view_admin($shiftEntry, $shift, $angeltype, $signoff_
$angeltype['name']
), true),
buttons([
- button(user_link($signoff_user), glyph('remove') . _('cancel')),
+ button(user_link($signoff_user), glyph('remove') . __('cancel')),
button(shift_entry_delete_link($shiftEntry, [
'continue' => 1
- ]), glyph('ok') . _('delete'), 'btn-danger')
+ ]), glyph('ok') . __('delete'), 'btn-danger')
])
]);
}
@@ -44,17 +44,17 @@ function ShiftEntry_delete_view($shiftEntry, $shift, $angeltype, $signoff_user)
{
return page_with_title(ShiftEntry_delete_title(), [
info(sprintf(
- _('Do you want to sign off from your shift %s from %s to %s as %s?'),
+ __('Do you want to sign off from your shift %s from %s to %s as %s?'),
$shift['name'],
date('Y-m-d H:i', $shift['start']),
date('Y-m-d H:i', $shift['end']),
$angeltype['name']
), true),
buttons([
- button(user_link($signoff_user), glyph('remove') . _('cancel')),
+ button(user_link($signoff_user), glyph('remove') . __('cancel')),
button(shift_entry_delete_link($shiftEntry, [
'continue' => 1
- ]), glyph('ok') . _('delete'), 'btn-danger')
+ ]), glyph('ok') . __('delete'), 'btn-danger')
])
]);
}
@@ -64,7 +64,7 @@ function ShiftEntry_delete_view($shiftEntry, $shift, $angeltype, $signoff_user)
*/
function ShiftEntry_delete_title()
{
- return _('Shift sign off');
+ return __('Shift sign off');
}
/**
@@ -85,11 +85,11 @@ function ShiftEntry_create_view_admin($shift, $room, $angeltype, $angeltypes_sel
. ' <small class="moment-countdown" data-timestamp="' . $shift['start'] . '">%c</small>',
[
Shift_view_header($shift, $room),
- info(_('Do you want to sign up the following user for this shift?'), true),
+ info(__('Do you want to sign up the following user for this shift?'), true),
form([
- form_select('angeltype_id', _('Angeltype'), $angeltypes_select, $angeltype['id']),
- form_select('user_id', _('User'), $users_select, $signup_user['UID']),
- form_submit('submit', glyph('ok') . _('Save'))
+ form_select('angeltype_id', __('Angeltype'), $angeltypes_select, $angeltype['id']),
+ form_select('user_id', __('User'), $users_select, $signup_user['UID']),
+ form_submit('submit', glyph('ok') . __('Save'))
])
]);
}
@@ -110,11 +110,11 @@ function ShiftEntry_create_view_supporter($shift, $room, $angeltype, $signup_use
. ' <small class="moment-countdown" data-timestamp="' . $shift['start'] . '">%c</small>',
[
Shift_view_header($shift, $room),
- info(sprintf(_('Do you want to sign up the following user for this shift as %s?'),
+ info(sprintf(__('Do you want to sign up the following user for this shift as %s?'),
AngelType_name_render($angeltype)), true),
form([
- form_select('user_id', _('User'), $users_select, $signup_user['UID']),
- form_submit('submit', glyph('ok') . _('Save'))
+ form_select('user_id', __('User'), $users_select, $signup_user['UID']),
+ form_submit('submit', glyph('ok') . __('Save'))
])
]);
}
@@ -134,10 +134,10 @@ function ShiftEntry_create_view_user($shift, $room, $angeltype, $comment)
. ' <small class="moment-countdown" data-timestamp="' . $shift['start'] . '">%c</small>',
[
Shift_view_header($shift, $room),
- info(sprintf(_('Do you want to sign up for this shift as %s?'), AngelType_name_render($angeltype)), true),
+ info(sprintf(__('Do you want to sign up for this shift as %s?'), AngelType_name_render($angeltype)), true),
form([
- form_textarea('comment', _('Comment (for your eyes only):'), $comment),
- form_submit('submit', glyph('ok') . _('Save'))
+ form_textarea('comment', __('Comment (for your eyes only):'), $comment),
+ form_submit('submit', glyph('ok') . __('Save'))
])
]);
}
@@ -147,7 +147,7 @@ function ShiftEntry_create_view_user($shift, $room, $angeltype, $comment)
*/
function ShiftEntry_create_title()
{
- return _('Shift signup');
+ return __('Shift signup');
}
/**
@@ -178,25 +178,25 @@ function ShiftEntry_edit_view(
$freeload_form = [];
if ($user_admin_shifts) {
$freeload_form = [
- form_checkbox('freeloaded', _('Freeloaded'), $freeloaded),
+ form_checkbox('freeloaded', __('Freeloaded'), $freeloaded),
form_textarea(
'freeload_comment',
- _('Freeload comment (Only for shift coordination):'),
+ __('Freeload comment (Only for shift coordination):'),
$freeload_comment
)
];
}
- return page_with_title(_('Edit shift entry'), [
+ return page_with_title(__('Edit shift entry'), [
msg(),
form([
- form_info(_('Angel:'), $angel),
- form_info(_('Date, Duration:'), $date),
- form_info(_('Location:'), $location),
- form_info(_('Title:'), $title),
- form_info(_('Type:'), $type),
- form_textarea('comment', _('Comment (for your eyes only):'), $comment),
+ form_info(__('Angel:'), $angel),
+ form_info(__('Date, Duration:'), $date),
+ form_info(__('Location:'), $location),
+ form_info(__('Title:'), $title),
+ form_info(__('Type:'), $type),
+ form_textarea('comment', __('Comment (for your eyes only):'), $comment),
join('', $freeload_form),
- form_submit('submit', _('Save'))
+ form_submit('submit', __('Save'))
])
]);
}