-
Notifications
You must be signed in to change notification settings - Fork 95
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
Added Symfony translation component #1466
Conversation
CI tests are failing due to minor PHP code style violations. You should correct these, e.g. by running php-cs-fixer. See here for details: https://github.com/NatLibFi/Skosmos/blob/skosmos-3/CONTRIBUTING.md#code-style |
Now that the Skosmos/.github/workflows/ci.yml Line 51 in f74bc3c
Skosmos/.github/workflows/ci.yml Line 60 in f74bc3c
This should ensure that there are no more remaining uses of |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## skosmos-3 #1466 +/- ##
===============================================
+ Coverage 63.89% 70.05% +6.16%
- Complexity 1634 1641 +7
===============================================
Files 32 32
Lines 4290 4301 +11
===============================================
+ Hits 2741 3013 +272
+ Misses 1549 1288 -261
☔ View full report in Codecov by Sentry. |
Environment variables LANGUAGE and LC_ALL are no longer used, but are still set in dockerfile. Setting locale and languages were removed (the lines below) from tests and did not cause tests to fail:
|
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 in general. I gave a few comments:
- I don't think the Controller should have its own translator, it should use the one in the Model instead
- Some tests were marked as skipped in this PR and others have been skipped earlier because gettext translations didn't work. Those skips should now be removed if possible.
- A few minor style issues (mainly commented out lines that should be removed instead)
SonarCloud Quality Gate failed. 0 Bugs No Coverage information Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
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.
I fixed a fragile test in a commit. Now I think this is good enough for merging!
There are still many strings in Twig templates that need to be translated using the new syntax, but I think those are best done in follow-up PRs.
Thank you for review @osma |
Reasons for creating this PR
Link to relevant issue(s), if any
Description of the changes in this PR
Known problems or uncertainties in this PR
Checklist
.sr-only
class, color contrast)