-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
fix: Update donation year to 2025 in banner #11259
base: main
Are you sure you want to change the base?
fix: Update donation year to 2025 in banner #11259
Conversation
The amount of files that need to be touched to update the year seems somewhat crazy to me... 🙈 Maybe there is a way to fill it in automatically? Are there different tests on the server? I have no idea why the tests failed.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11259 +/- ##
=======================================
Coverage 49.33% 49.33%
=======================================
Files 79 79
Lines 22510 22510
Branches 5387 5387
=======================================
Hits 11105 11105
Misses 10045 10045
Partials 1360 1360 ☔ View full report in Codecov by Sentry. |
In practice the only string that needs to change is this one:
In practice we do not need to change the msgctxt, it's just an id, it's not displayed. Usually, we only update common.pot and en.po, and the other translations come from crowdin. But yes, definitely, we should make the year a variable. Usually we define variables like this:
But it was not used in this string, it should definitely be changed. That way when we need to change the year, we only change it at one place, in the template, when we call the string. |
In the test output, you can search for "fail" to see the details:
|
Quality Gate passedIssues Measures |
@stephanegigandet where do you usually define these variables? |
This also updates the year in the banner.
Related issue(s) and discussion