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

Plugins update manager: Add translation #88300

Merged
merged 13 commits into from
Mar 11, 2024
Merged

Conversation

bogiii
Copy link
Contributor

@bogiii bogiii commented Mar 7, 2024

Related to #87896

Proposed Changes

  • Module translation

Testing Instructions

  • Go to /plugins/scheduled-updates/{ATOMIC_SITE}
  • Check if everything works fine as before
Screenshot 2024-03-07 at 17 57 32 Screenshot 2024-03-07 at 17 56 48 Screenshot 2024-03-07 at 17 57 41 Screenshot 2024-03-07 at 17 58 53

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • https://wpcalypso.wordpress.com/devdocs/docs/testing/index.md for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@matticbot
Copy link
Contributor

matticbot commented Mar 7, 2024

@matticbot
Copy link
Contributor

matticbot commented Mar 7, 2024

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

Sections (~90 bytes added 📈 [gzipped])

name                             parsed_size           gzip_size
plugins                               +399 B  (+0.0%)      +90 B  (+0.0%)
jetpack-cloud-plugin-management       +399 B  (+0.0%)      +90 B  (+0.0%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

Legend

What is parsed and gzip size?

Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@bogiii bogiii requested a review from a team March 7, 2024 16:59
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 7, 2024
@bogiii bogiii self-assigned this Mar 7, 2024
@bogiii bogiii marked this pull request as ready for review March 7, 2024 16:59
Copy link
Member

@obenland obenland left a comment

Choose a reason for hiding this comment

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

@JanaMW27 When you get a chance, could you review my copy suggestions?

client/blocks/plugins-update-manager/index.tsx Outdated Show resolved Hide resolved
title="Plugin updates manager"
subtitle="Effortlessly schedule plugin auto-updates with built-in rollback logic."
title={ translate( 'Plugin updates manager' ) }
subtitle={ translate( 'Schedule automatic plugin updates' ) }
Copy link
Member

Choose a reason for hiding this comment

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

Set up automated schedules so plugins update when you want them to.

Copy link

Choose a reason for hiding this comment

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

This copy was reviewed and approved by the copywriting team. Why it needs to be changed?

Copy link
Member

Choose a reason for hiding this comment

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

I think there's an opportunity to be more descriptive in some of these places

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I also think that there is a space to be more specific, but I would leave it for the next PRs since I'm going to deploy this one.

Copy link
Member

Choose a reason for hiding this comment

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

@bogiii Could I ask you to hold off if we plan to make changes to translation strings? We should avoid sending strings to translation (and pay for those translations) when there's a good chance they'll get changed again

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ouch. I've deployed it.
I wanted to avoid resolving future conflicts and deployed it.

client/blocks/plugins-update-manager/schedule-list.tsx Outdated Show resolved Hide resolved
@@ -68,7 +70,7 @@ export const PluginsUpdateManager = ( props: Props ) => {
onClick={ onCreateNewSchedule }
disabled={ ! canCreateSchedules }
>
Create a new schedule
{ translate( 'Set up a new schedule' ) }
Copy link
Member

Choose a reason for hiding this comment

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

Can we simplify this to "Create new schedule"? Or "Add new schedule" to align it with "Add new post"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It used to be "Create a new schedule", but the copy was reviewed and changed to be "Set up a new schedule".

@JanaMW27, what do you think?

Copy link

Choose a reason for hiding this comment

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

Both copies sound good to me. Maybe "set up" is more aligned with the user action? I dunno, both work for me.

client/blocks/plugins-update-manager/schedule-create.tsx Outdated Show resolved Hide resolved
@zaerl zaerl self-requested a review March 8, 2024 10:22
@bogiii bogiii force-pushed the add/plugin-updates-manager-8 branch from f692c06 to d11b19c Compare March 8, 2024 10:41
Copy link
Contributor

@zaerl zaerl left a comment

Choose a reason for hiding this comment

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

LGTM. Great work. 🚢

@bogiii bogiii force-pushed the add/plugin-updates-manager-8 branch from c3c562d to 4d8f6f5 Compare March 11, 2024 13:10
@bogiii bogiii merged commit 6c52385 into trunk Mar 11, 2024
11 checks passed
@bogiii bogiii deleted the add/plugin-updates-manager-8 branch March 11, 2024 13:23
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Mar 11, 2024
bogiii added a commit that referenced this pull request Mar 11, 2024
bogiii added a commit that referenced this pull request Mar 11, 2024
bogiii added a commit that referenced this pull request Mar 11, 2024
obenland pushed a commit that referenced this pull request Mar 12, 2024
bogiii added a commit that referenced this pull request Mar 13, 2024
bogiii added a commit that referenced this pull request Mar 13, 2024
* Revert "Revert "Plugins update manager: Add translation (#88300)" (#88373)"

This reverts commit f070f10.

* Apply first batch of suggestions from code review

Props @provenself

* Update subtitle wording

* Add trailing period.

* Remove unnecessary info text. This is now covered in empty state.

* Fix curly quote

---------

Co-authored-by: Konstantin Obenland <[email protected]>
billrobbins pushed a commit that referenced this pull request Mar 20, 2024
* Translate PluginsUpdateManager component

* Translate ScheduleCreate component

* Translate ScheduleEdit component

* Update copy of PluginsUpdateManager

* Translate ScheduleList component

* Translate ScheduleListEmpty component

* Translate ScheduleListTable component

* Translate ScheduleListCards component

* Translate ScheduleForm component

* Translate ScheduleForm constants and helpers

* Remove unused validateName function

* Reuse the same translation

* Update copy
billrobbins pushed a commit that referenced this pull request Mar 20, 2024
billrobbins pushed a commit that referenced this pull request Mar 20, 2024
* Revert "Revert "Plugins update manager: Add translation (#88300)" (#88373)"

This reverts commit f070f10.

* Apply first batch of suggestions from code review

Props @provenself

* Update subtitle wording

* Add trailing period.

* Remove unnecessary info text. This is now covered in empty state.

* Fix curly quote

---------

Co-authored-by: Konstantin Obenland <[email protected]>
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.

6 participants