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_questions.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'includes/pages/admin_questions.php') diff --git a/includes/pages/admin_questions.php b/includes/pages/admin_questions.php index 2d058b0d..b4a956d5 100644 --- a/includes/pages/admin_questions.php +++ b/includes/pages/admin_questions.php @@ -7,7 +7,7 @@ use Engelsystem\Database\DB; */ function admin_questions_title() { - return _('Answer questions'); + return __('Answer questions'); } /** @@ -25,7 +25,7 @@ function admin_new_questions() if ($new_messages > 0) { return '' - . _('There are unanswered questions!') + . __('There are unanswered questions!') . ''; } } @@ -53,11 +53,11 @@ function admin_questions() 'question' => str_replace("\n", '
', $question['Question']), 'answer' => form([ form_textarea('answer', '', ''), - form_submit('submit', _('Save')) + form_submit('submit', __('Save')) ], page_link_to('admin_questions', ['action' => 'answer', 'id' => $question['QID']])), 'actions' => button( page_link_to('admin_questions', ['action' => 'delete', 'id' => $question['QID']]), - _('delete'), + __('delete'), 'btn-xs' ) ]; @@ -75,26 +75,26 @@ function admin_questions() 'answer' => str_replace("\n", '
', $question['Answer']), 'actions' => button( page_link_to('admin_questions', ['action' => 'delete', 'id' => $question['QID']]), - _('delete'), + __('delete'), 'btn-xs' ) ]; } return page_with_title(admin_questions_title(), [ - '

' . _('Unanswered questions') . '

', + '

' . __('Unanswered questions') . '

', table([ - 'from' => _('From'), - 'question' => _('Question'), - 'answer' => _('Answer'), + 'from' => __('From'), + 'question' => __('Question'), + 'answer' => __('Answer'), 'actions' => '' ], $unanswered_questions_table), - '

' . _('Answered questions') . '

', + '

' . __('Answered questions') . '

', table([ - 'from' => _('From'), - 'question' => _('Question'), - 'answered_by' => _('Answered by'), - 'answer' => _('Answer'), + 'from' => __('From'), + 'question' => __('Question'), + 'answered_by' => __('Answered by'), + 'answer' => __('Answer'), 'actions' => '' ], $answered_questions_table) ]); -- cgit v1.2.3-54-g00ecf