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

Split strings out from HTML to allow for proper translation. #52

Merged
merged 4 commits into from
Dec 19, 2023

Conversation

mbish
Copy link
Contributor

@mbish mbish commented Dec 18, 2023

Description

In order to make our plugin translatable we need to split out the human-facing strings from various
other code (HTML) and string identifiers (such as a menu slug). This is mostly done through printf.

Motivation and Context

Mostly for WordPress review. Even though internationalization is marked as "optional" we've already
gotten feedback for not being compatible with automatic translation standards so lets just get this
into the right format.

How Has This Been Tested?

Manually running the plugin and make sure things look right.

@mbish mbish marked this pull request as ready for review December 18, 2023 18:33
@mbish
Copy link
Contributor Author

mbish commented Dec 18, 2023

At the moment this breaks multisite. I'm working on fixing that.

@mbish mbish changed the title Split strings out from HTMl to allow for proper translation. Split strings out from HTML to allow for proper translation. Dec 19, 2023
@mbish mbish merged commit 1e866af into main Dec 19, 2023
1 check passed
@mbish mbish deleted the internationalization branch December 19, 2023 19:35
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.

2 participants