From e8f8fc7f5f5eba315290bc8d45348c3a4d4bee79 Mon Sep 17 00:00:00 2001 From: Bot Date: Wed, 29 Aug 2018 21:55:32 +0200 Subject: Replaced gettext translation `_()` with `__()` that uses the Translator class --- includes/pages/admin_news.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'includes/pages/admin_news.php') diff --git a/includes/pages/admin_news.php b/includes/pages/admin_news.php index 7f912773..8a3fe9c2 100644 --- a/includes/pages/admin_news.php +++ b/includes/pages/admin_news.php @@ -14,7 +14,7 @@ function admin_news() redirect(page_link_to('news')); } - $html = '

' . _('Edit news entry') . '

' . msg(); + $html = '

' . __('Edit news entry') . '

' . msg(); if ($request->has('id') && preg_match('/^\d{1,11}$/', $request->input('id'))) { $news_id = $request->input('id'); } else { @@ -34,19 +34,19 @@ function admin_news() && strip_tags($news['Text']) != $news['Text'] ) { $html .= warning( - _('This message contains HTML. After saving the post some formatting will be lost!'), + __('This message contains HTML. After saving the post some formatting will be lost!'), true ); } $html .= form( [ - form_info(_('Date'), date('Y-m-d H:i', $news['Datum'])), - form_info(_('Author'), User_Nick_render($user_source)), - form_text('eBetreff', _('Subject'), $news['Betreff']), - form_textarea('eText', _('Message'), $news['Text']), - form_checkbox('eTreffen', _('Meeting'), $news['Treffen'] == 1, 1), - form_submit('submit', _('Save')) + form_info(__('Date'), date('Y-m-d H:i', $news['Datum'])), + form_info(__('Author'), User_Nick_render($user_source)), + form_text('eBetreff', __('Subject'), $news['Betreff']), + form_textarea('eText', __('Message'), $news['Text']), + form_checkbox('eTreffen', __('Meeting'), $news['Treffen'] == 1, 1), + form_submit('submit', __('Save')) ], page_link_to('admin_news', ['action' => 'save', 'id' => $news_id]) ); @@ -54,7 +54,7 @@ function admin_news() $html .= '' - . ' ' . _('Delete') + . ' ' . __('Delete') . ''; break; @@ -84,14 +84,14 @@ function admin_news() ); engelsystem_log('News updated: ' . $request->postData('eBetreff')); - success(_('News entry updated.')); + success(__('News entry updated.')); redirect(page_link_to('news')); break; case 'delete': DB::delete('DELETE FROM `News` WHERE `ID`=? LIMIT 1', [$news_id]); engelsystem_log('News deleted: ' . $news['Betreff']); - success(_('News entry deleted.')); + success(__('News entry deleted.')); redirect(page_link_to('news')); break; default: -- cgit v1.2.3-70-g09d2