My Yii 2 application (based on app-basic scheme) still display English titles for exceptions like for example NotFoundHttpException, when user switches site language to non-English. Any other page element is correctly translated. Where titles of exceptions are stored? How can I fix this problem?
I tried searching through exception classes (NotFoundHttpException > HttpException > UserException > Exception) and found nothing. I browsed based translation files and found that /vendor/yiisoft/yii2/messages/ files have only The requested view "{name}" was not found. and Page not found. string for translations. There is no Not Found or Not Found ( strings to make correct translation of NotFoundHttpException (and others) exception's title in non-English languages.
Related readings: