Skip to content

Remove bundled translation file in favour of wp.org distributed file.#279

Merged
dkotter merged 3 commits into
developfrom
fix/255-remove-pot-file
May 12, 2026
Merged

Remove bundled translation file in favour of wp.org distributed file.#279
dkotter merged 3 commits into
developfrom
fix/255-remove-pot-file

Conversation

@peterwilsoncc
Copy link
Copy Markdown
Contributor

@peterwilsoncc peterwilsoncc commented May 11, 2026

Description of the Change

Removes the bundled translation file, localization/simple-page-ordering.pot, in favour of using the version distributed by WordPress.org.

Since WordPress 4.6, plugins hosted on the WordPress Plugin Repository no longer need to include pot files as Core will automatically download the files from the translation repository, see this make/core post.

As a result of this, plugins can remove bundled .pot files.

Closes #255

How to test the Change

  1. Checkout this branch
  2. Run npm ci; npm run build
  3. Delete the localization directory in the plugin folder, if required
  4. Go to Settings > Genneral
  5. Set the language to Français
  6. Go to the updates page, /wp-admin/update-core.php
  7. If the Traductions section contains a button, click it to update your translations from WP.org
  8. Navigate to the pages screen, /wp-admin/edit.php?post_type=page
  9. In the top navigation ensure that Sort by Order is displayed as Trier par ordre
  10. Return to the General settings page and return the site to your default language to avoid confusion later.

Changelog Entry

Changed - Translation .pot file removed in favor of version generated by the WordPress plugin repository.

Credits

Props @peterwilsoncc

Checklist:

@github-actions github-actions Bot added this to the 2.8.0 milestone May 11, 2026
@peterwilsoncc peterwilsoncc marked this pull request as ready for review May 11, 2026 23:55
@github-actions github-actions Bot added the needs:code-review This requires code review. label May 11, 2026
@dkotter dkotter merged commit b957128 into develop May 12, 2026
16 checks passed
@dkotter dkotter deleted the fix/255-remove-pot-file branch May 12, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:code-review This requires code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n: Remove pot file from plugin in favour of wp.org systems

2 participants