-
Notifications
You must be signed in to change notification settings - Fork 2k
Language: Make production error message translatable #6197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thank you for sending a PR. You must GPG-sign your work, certifying that you either wrote the work or otherwise have the right to pass it on to an open-source project. See Developer's Certificate of Origin. |
app/Views/errors/html/production.php
Outdated
| <meta name="robots" content="noindex"> | ||
|
|
||
| <title>Whoops!</title> | ||
| <title><?= lang('Errors.whoops')?></title> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <title><?= lang('Errors.whoops')?></title> | |
| <title><?= lang('Errors.whoops') ?></title> |
app/Views/errors/html/production.php
Outdated
| <div class="container text-center"> | ||
|
|
||
| <h1 class="headline">Whoops!</h1> | ||
| <h1 class="headline"><?= lang('Errors.whoops')?></h1> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <h1 class="headline"><?= lang('Errors.whoops')?></h1> | |
| <h1 class="headline"><?= lang('Errors.whoops') ?></h1> |
app/Views/errors/html/production.php
Outdated
| <h1 class="headline"><?= lang('Errors.whoops')?></h1> | ||
|
|
||
| <p class="lead">We seem to have hit a snag. Please try again later...</p> | ||
| <p class="lead"><?= lang('Errors.weHitASnag')?></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <p class="lead"><?= lang('Errors.weHitASnag')?></p> | |
| <p class="lead"><?= lang('Errors.weHitASnag') ?></p> |
|
Hi @kenjis |
No. You can do |
|
This should go to 4.3 branch. I'm fine with this change but just to note two things:
|
|
Agreed. It seems better to go to 4.3. |
Yes, of corse. But with |
I will have a look to the translations repo and try to update the necessary things (tests etc.) |
|
Thanks @sba. To clarify, this should work fine without the translations (it falls back to English), but any additions you can make to the translations repo to go along with it would be appreciated! |
|
With this PR, must include in : Sorry! Cannot seem to find the page you were looking for. can multilingual too |
[Rector] Apply Rector run on utils/ directory
Apply github workflow to run rector on utils/ directory
fix: Builder insert()/update() does not accept an object
docs: improve contributing Pull Request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go to 4.3 branch. Please change the base branch.
kenjis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
@sba You forgot to sign your commits. |
Yes, I know, sorry! It's a crap, I've wasted hours on it and signing still doesn't work...... I'll try again, sometime. |
MGatner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I like @ddevsr's suggestion to include the 404 error as well, but that could be a separate PR if you're done with this.
Done in the Github editor, should now be signed!
Done in the Github editor, should now be signed!
Revert Code Style
Code Style
kenjis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are many unrelated commits.
Please drop these.
|
@sba Thank you for GPG signing. But unfortunately this PR branch has many unrelated commits. I recommend you create a new branch from Or it is easier just to create another PR. |
With this pull request the error message in the file
app/Views/errors/html/production.phpcan be translated.I have named the file Errors.php because the translation of
app/Views/errors/html/error_exception.phpcould also be added later.