We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08d5447 commit 8ca05a5Copy full SHA for 8ca05a5
featherbb/routes.php
@@ -193,7 +193,7 @@
193
// Override the default Not Found Handler
194
Container::set('notFoundHandler', function ($c) {
195
return function ($request, $response) use ($c) {
196
- throw new Error('Page not found', 404); // TODO : translation
+ throw new Error(__('Bad request'), 404);
197
};
198
});
199
@@ -208,7 +208,7 @@
208
209
// Hide internal mechanism
210
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
+ $error['message'] = __('Error');
212
}
213
214
if (method_exists($e, 'hasBacklink')) {
0 commit comments