Skip to content

Conversation

mr-vara
Copy link
Contributor

@mr-vara mr-vara commented Feb 14, 2025

Proposed changes

Important: I am currently working on adding translations to the modules as part of this EPIC: https://jira.newfold.com/browse/PRESS11-144. My primary focus is on integrating translations and setting up the automation workflow.
As part of this effort, I am adding the essential components required to load text domains and register translation paths for both PHP strings and JS scripts.
Please feel free to build upon this work, particularly in terms of fully handling the loading of translations within the module.

This pull request adds translation and localization support to the WordPress Patterns module. All user-facing text strings have been updated to use WordPress internationalization (i18n) functions, enabling the module to be translated into multiple languages. This enhancement makes the Patterns module more accessible to users across the globe, in line with WordPress localization standards.

Key changes include:

  • Integrated WordPress i18n functions (__(), _e(), etc.) for all user-facing text.
  • Added a .pot file to manage translation strings.
  • Updated relevant plugin files to ensure smooth localization support.

This update improves the module's usability for non-English speaking users by allowing them to access the content in their preferred language.

wpscholar
wpscholar previously approved these changes Feb 14, 2025
circlecube
circlecube previously approved these changes Feb 14, 2025
@mr-vara mr-vara dismissed stale reviews from circlecube and wpscholar via 216a91e February 17, 2025 16:37
Copy link
Member

@wpscholar wpscholar left a comment

Choose a reason for hiding this comment

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

Let's also add a workflow for our linting

@mr-vara mr-vara requested a review from wpscholar February 21, 2025 09:44
@fralicandro fralicandro self-requested a review February 25, 2025 10:57
fralicandro
fralicandro previously approved these changes Feb 25, 2025
wpscholar
wpscholar previously approved these changes Feb 25, 2025
@mr-vara mr-vara requested a review from circlecube February 26, 2025 16:35
@circlecube circlecube merged commit 3ccc4ea into main Feb 26, 2025
4 checks passed
@circlecube circlecube deleted the press11-171 branch February 26, 2025 18:04
@circlecube circlecube mentioned this pull request Mar 3, 2025
14 tasks
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.

4 participants