mirror of
https://github.com/flarum/core.git
synced 2025-07-28 04:00:40 +02:00
Add third tier to key namespacing
- Changes all `app.trans` calls to `app.translator.trans` calls. - Changes existing keys to [three-tier namespace structure](https://github.com/flarum/english/pull/12). - Extracts additional strings for `lib:` namespace. - Extracts two previously missed strings for EditGroupModal.js.
This commit is contained in:
@@ -255,16 +255,16 @@ export default class App {
|
||||
|
||||
case 401:
|
||||
case 403:
|
||||
children = 'You do not have permission to do that.';
|
||||
children = app.translator.trans('core.lib.error.permission_denied_message');
|
||||
break;
|
||||
|
||||
case 404:
|
||||
case 410:
|
||||
children = 'The requested resource was not found.';
|
||||
children = app.translator.trans('core.lib.error.not_found_message');
|
||||
break;
|
||||
|
||||
default:
|
||||
children = 'Oops! Something went wrong. Please reload the page and try again.';
|
||||
children = app.translator.trans('core.lib.error.generic_message');
|
||||
}
|
||||
|
||||
error.alert = new Alert({
|
||||
|
Reference in New Issue
Block a user