Skip to content
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 bugs in historical mode banner translations #3287

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

unoduetre
Copy link
Contributor

@unoduetre unoduetre commented Jul 30, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

Follow these steps if you are doing a Rails upgrade.

What

There are rendering anomalies in history mode notification banners for some foreign language pages. Placeholder text is not replaced and some strings are rendered out of the expected order. Examples:

https://www.gov.uk/government/news/uk-and-us-sanction-key-houthi-figures-to-protect-maritime-security-in-the-red-sea.ar

https://www.gov.uk/government/news/his-majesty-the-king-honours-mr-makoto-uchida-president-and-chief-executive-officer-nissan-motor-corporation.ja

This PR fixes the second issue and a similar issue in a different language, but not the first issue as it would require a completely new functionality to be added to whitehall publisher.

The same Japanese page after the change

Why

Trello ticket

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3287 July 30, 2024 12:35 Inactive
@unoduetre unoduetre marked this pull request as ready for review July 30, 2024 12:41
@unoduetre unoduetre force-pushed the 2732-history-mode-banners-in-foreign-languages branch from 2c8e92d to 2825561 Compare July 30, 2024 13:21
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3287 July 30, 2024 13:21 Inactive
@hannako
Copy link
Contributor

hannako commented Jul 30, 2024

Do these need updating too 🤔

@unoduetre
Copy link
Contributor Author

Do these need updating too 🤔

Yes, should I do it as a part of this PR?

@unoduetre unoduetre force-pushed the 2732-history-mode-banners-in-foreign-languages branch from 2825561 to 2080a9e Compare July 31, 2024 09:31
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3287 July 31, 2024 09:31 Inactive
@unoduetre
Copy link
Contributor Author

unoduetre commented Jul 31, 2024

Do these need updating too 🤔

Yes, should I do it as a part of this PR?

@hannako I've fixed the locale files.

@unoduetre unoduetre force-pushed the 2732-history-mode-banners-in-foreign-languages branch from 2080a9e to 2b2a42d Compare July 31, 2024 09:36
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3287 July 31, 2024 09:36 Inactive
@unoduetre unoduetre merged commit f1053f6 into main Jul 31, 2024
11 checks passed
@unoduetre unoduetre deleted the 2732-history-mode-banners-in-foreign-languages branch July 31, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants