summaryrefslogtreecommitdiff
path: root/includes/pages/user_messages.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/pages/user_messages.php')
-rw-r--r--includes/pages/user_messages.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/includes/pages/user_messages.php b/includes/pages/user_messages.php
index 06ae7e75..0738f433 100644
--- a/includes/pages/user_messages.php
+++ b/includes/pages/user_messages.php
@@ -7,7 +7,7 @@ use Engelsystem\Database\DB;
*/
function messages_title()
{
- return _('Messages');
+ return __('Messages');
}
/**
@@ -44,7 +44,7 @@ function user_messages()
);
$to_select_data = [
- '' => _('Select recipient...')
+ '' => __('Select recipient...')
];
foreach ($users as $u) {
@@ -73,7 +73,7 @@ function user_messages()
'from' => User_Nick_render($user),
'to' => $to_select,
'text' => form_textarea('text', '', ''),
- 'actions' => form_submit('submit', _('Save'))
+ 'actions' => form_submit('submit', __('Save'))
]
];
@@ -93,14 +93,14 @@ function user_messages()
if ($message['isRead'] == 'N') {
$messages_table_entry['actions'] = button(
page_link_to('user_messages', ['action' => 'read', 'id' => $message['id']]),
- _('mark as read'),
+ __('mark as read'),
'btn-xs'
);
}
} else {
$messages_table_entry['actions'] = button(
page_link_to('user_messages', ['action' => 'delete', 'id' => $message['id']]),
- _('delete message'),
+ __('delete message'),
'btn-xs'
);
}
@@ -109,14 +109,14 @@ function user_messages()
return page_with_title(messages_title(), [
msg(),
- sprintf(_('Hello %s, here can you leave messages for other angels'), User_Nick_render($user)),
+ sprintf(__('Hello %s, here can you leave messages for other angels'), User_Nick_render($user)),
form([
table([
- 'new' => _('New'),
- 'timestamp' => _('Date'),
- 'from' => _('Transmitted'),
- 'to' => _('Recipient'),
- 'text' => _('Message'),
+ 'new' => __('New'),
+ 'timestamp' => __('Date'),
+ 'from' => __('Transmitted'),
+ 'to' => __('Recipient'),
+ 'text' => __('Message'),
'actions' => ''
], $messages_table)
], page_link_to('user_messages', ['action' => 'send']))
@@ -127,7 +127,7 @@ function user_messages()
if ($request->has('id') && preg_match('/^\d{1,11}$/', $request->input('id'))) {
$message_id = $request->input('id');
} else {
- return error(_('Incomplete call, missing Message ID.'), true);
+ return error(__('Incomplete call, missing Message ID.'), true);
}
$message = DB::selectOne(
@@ -141,7 +141,7 @@ function user_messages()
);
redirect(page_link_to('user_messages'));
} else {
- return error(_('No Message found.'), true);
+ return error(__('No Message found.'), true);
}
break;
@@ -149,7 +149,7 @@ function user_messages()
if ($request->has('id') && preg_match('/^\d{1,11}$/', $request->input('id'))) {
$message_id = $request->input('id');
} else {
- return error(_('Incomplete call, missing Message ID.'), true);
+ return error(__('Incomplete call, missing Message ID.'), true);
}
$message = DB::selectOne(
@@ -160,7 +160,7 @@ function user_messages()
DB::delete('DELETE FROM `Messages` WHERE `id`=? LIMIT 1', [$message_id]);
redirect(page_link_to('user_messages'));
} else {
- return error(_('No Message found.'), true);
+ return error(__('No Message found.'), true);
}
break;
@@ -169,12 +169,12 @@ function user_messages()
if (Message_send($request->input('to'), $request->input('text'))) {
redirect(page_link_to('user_messages'));
} else {
- return error(_('Transmitting was terminated with an Error.'), true);
+ return error(__('Transmitting was terminated with an Error.'), true);
}
break;
default:
- return error(_('Wrong action.'), true);
+ return error(__('Wrong action.'), true);
}
}