Skip to content

Commit 8ca05a5

Browse files
committed
Add missing translations in routes.php
1 parent 08d5447 commit 8ca05a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

featherbb/routes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
// Override the default Not Found Handler
194194
Container::set('notFoundHandler', function ($c) {
195195
return function ($request, $response) use ($c) {
196-
throw new Error('Page not found', 404); // TODO : translation
196+
throw new Error(__('Bad request'), 404);
197197
};
198198
});
199199

@@ -208,7 +208,7 @@
208208

209209
// Hide internal mechanism
210210
if (!in_array(get_class($e), array('FeatherBB\Core\Error')) && ForumEnv::get('FEATHER_DEBUG') != 'all') {
211-
$error['message'] = 'There was an internal error'; // TODO : translation
211+
$error['message'] = __('Error');
212212
}
213213

214214
if (method_exists($e, 'hasBacklink')) {

0 commit comments

Comments
 (0)