WordPress.org

Make WordPress Core

#51498 closed enhancement (fixed)

Use wp.i18n for translatable strings in wp-admin/js/dashboard.js

Reported by: ocean90 Owned by: ocean90
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: I18N Keywords: has-patch
Focuses: Cc:

Description

We can replace the use of wp_localize_script() with the proper JavaScript i18n functions introduced in WordPress 5.0, see #20491 and #45103. This ticket is for wp-admin/js/dashboard.js.

Related tickets:

#50235
Use wp.i18n for translatable strings in wp-admin/js/updates.js
#50525
Use wp.i18n for translatable strings in wp-includes/js/wp-pointer.js
#50526
Use wp.i18n for translatable strings in wp-admin/js/common.js
#50527
Use wp.i18n for translatable strings in wp-admin/js/user-profile.js
#50535
Use wp.i18n for translatable strings in wp-admin/js/privacy-tools.js
#50553
Use wp.i18n for translatable strings in wp-includes/js/wp-auth-check.js
#50576
Use wp.i18n for translatable strings in wp-admin/js/theme-plugin-editor.js
#50577
Use wp.i18n for translatable strings in wp-admin/js/tags.js
#50578
Use wp.i18n for translatable strings in wp-admin/js/edit-comments.js
#50579
Use wp.i18n for translatable strings in wp-admin/js/tags-box.js and wp-admin/js/tags-suggest.js
#50596
Use wp.i18n for translatable strings in wp-admin/js/color-picker.js
#50597
Use wp.i18n for translatable strings in wp-admin/js/media.js
#50599
Use wp.i18n for translatable strings in wp-admin/js/post.js
#50600
Use wp.i18n for translatable strings in wp-admin/js/widgets.js
#50601
Use wp.i18n for translatable strings in wp-admin/js/inline-edit-post.js and wp-admin/js/inline-edit-tax.js
#50602
Use wp.i18n for translatable strings in wp-admin/js/plugin-install.js
#50603
Use wp.i18n for translatable strings in wp-admin/js/nav-menu.js
#50604
Use wp.i18n for translatable strings in wp-admin/js/comment.js
#50605
Use wp.i18n for translatable strings in wp-admin/js/set-post-thumbnail.js
#51498
Use wp.i18n for translatable strings in wp-admin/js/dashboard.js


Attachments (2)

51498.patch (14.1 KB) - added by ocean90 14 months ago.
51498.2.patch (14.2 KB) - added by ocean90 14 months ago.

Download all attachments as: .zip

Change History (3)

@ocean90
14 months ago

@ocean90
14 months ago

#1 @ocean90
14 months ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 49151:

I18N: Use wp.i18n for translatable strings in wp-admin/js/dashboard.js.

  • Deprecate the l10n property on communityEventsData.
  • Introduce version parameter for deprecateL10nObject and backfill the version for deprecated objects in 5.5.0.
  • Add a noop version of deprecateL10nObject for QUnit testing.

Fixes #51498.

Note: See TracTickets for help on using tickets.