Skip to content

Sync Health Tests: make messages easier to translate#15396

Merged
jeherve merged 2 commits intomasterfrom
fix/i18n-sync-health-tests
Apr 14, 2020
Merged

Sync Health Tests: make messages easier to translate#15396
jeherve merged 2 commits intomasterfrom
fix/i18n-sync-health-tests

Conversation

@jeherve
Copy link
Copy Markdown
Member

@jeherve jeherve commented Apr 9, 2020

Fixes #15379

Changes proposed in this Pull Request:

This should make messages in the Site Health screen easier to translate, as per the feedback in #15379.

I've also taken the opportunity to make the message with a number translatable differently depending on the number.

Testing instructions:

  • Enable Jetpack and Sync Module
  • Go to the SIte Health Admin Page /wp-admin/site-health.php
  • Under Passed Tests you should not see any Jetpack Sync warnings in critical or recommended
  • Update the Sync Health to Out of Sync Sync_Health::update_status( Sync_Health::STATUS_OUT_OF_SYNC ) dropped into the wp.config.php or the functions theme file or etc.
  • Refresh the Site Health Admin Page
  • Verify that under critical issues the Jetpack Sync info displays and aligns with the designs p6TEKc-3uv-p2

image

  • Reset the Sync Health to In Sync Sync_Health::update_status( Sync_Health::STATUS_IN_SYNC )
  • Point your Jetpack Connection to a bad address define( 'JETPACK__SANDBOX_DOMAIN', 'badbadbad23434.example.com' );
  • Update or Create a new Post.
  • Verify sync health is not displayed in recommendations
  • Wait 5-10 minutes.
  • Refresh the Site Health Admin Page
  • Verify that under recommended issues the Jetpack Sync delayed test displays and aligns with the designs p6TEKc-3uv-p2. Check that the X minutes updates as time goes on.

image

  • Remove the Jetpack Connection sandbox
  • refresh the admin a few times (clear the queue )
  • Refresh the Site Health Admin Page
  • Verify sync health is not displayed in recommendations

Proposed changelog entry for your changes:

  • Site Health Tools: improve messaging to make translations easier.

Fixes #15379

I've also taken the opportunity to make the message with a number translatable differently depending on the number.
@jeherve jeherve added Bug When a feature is broken and / or not performing as intended [Status] In Progress [Focus] i18n Internationalization / i18n, adaptation to different languages [Package] Sync [Status] Needs Changelog [Status] Needs Cherry-Pick labels Apr 9, 2020
@jeherve jeherve added this to the 8.4.2 milestone Apr 9, 2020
@jeherve jeherve requested review from a team and mdbitz April 9, 2020 16:16
@jeherve jeherve self-assigned this Apr 9, 2020
@jetpackbot
Copy link
Copy Markdown
Collaborator

jetpackbot commented Apr 9, 2020

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: May 5, 2020.
Scheduled code freeze: April 28, 2020

Generated by 🚫 dangerJS against b055808

@jeherve jeherve added [Status] Needs Review This PR is ready for review. and removed [Status] In Progress labels Apr 9, 2020
@jeherve jeherve requested a review from akirk April 9, 2020 17:21
jeherve added a commit that referenced this pull request Apr 9, 2020
mdbitz
mdbitz previously approved these changes Apr 10, 2020
Copy link
Copy Markdown
Contributor

@mdbitz mdbitz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of wpkses and also _n for pluralization of minute(s)

Tested locally and screens display / function the same.

@mdbitz mdbitz removed the [Status] Needs Review This PR is ready for review. label Apr 10, 2020
akirk
akirk previously approved these changes Apr 10, 2020
Copy link
Copy Markdown
Member

@akirk akirk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much better, thank you!

dereksmart
dereksmart previously approved these changes Apr 13, 2020
Co-Authored-By: Kim Brown <50059399+kbrown9@users.noreply.github.com>
@jeherve jeherve dismissed stale reviews from dereksmart, akirk, and mdbitz via b055808 April 14, 2020 11:14
@jeherve jeherve merged commit 8612d7e into master Apr 14, 2020
@jeherve jeherve deleted the fix/i18n-sync-health-tests branch April 14, 2020 12:17
jeherve added a commit that referenced this pull request Apr 14, 2020
…15396)

* Sync Health Tests: make messages easier to translate

Fixes #15379

I've also taken the opportunity to make the message with a number translatable differently depending on the number.

* Add missing period

Co-Authored-By: Kim Brown <50059399+kbrown9@users.noreply.github.com>

Co-authored-by: Kim Brown <50059399+kbrown9@users.noreply.github.com>
@jeherve
Copy link
Copy Markdown
Member Author

jeherve commented Apr 14, 2020

Cherry-picked to branch-8.4 in 5c31681

jeherve added a commit that referenced this pull request Apr 14, 2020
* 8.4.2 changelog: add #15365

* [not verified] Changelog: add #15372

* Changelog: add #15368

* Changelog: add #15395

* Changelog: add #15396

* Changelog: add #15406
jeherve added a commit that referenced this pull request Apr 14, 2020
* 8.4.2 changelog: add #15365

* [not verified] Changelog: add #15372

* Changelog: add #15368

* Changelog: add #15395

* Changelog: add #15396

* Changelog: add #15406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Focus] i18n Internationalization / i18n, adaptation to different languages [Package] Sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sync Health UI: Fix translations

8 participants