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

["BUG"] Internationalization: Text domain does not match plugin slug. #87

Closed
MaferMazu opened this issue Aug 14, 2024 · 1 comment · Fixed by #89
Closed

["BUG"] Internationalization: Text domain does not match plugin slug. #87

MaferMazu opened this issue Aug 14, 2024 · 1 comment · Fixed by #89
Assignees
Labels
bug Report of or fix for something that isn't working as intended help wanted Ready to be picked up by anyone in the community

Comments

@MaferMazu
Copy link
Contributor

Describe the bug
Comes from the WordPress Plugin Directory.

In order to make a string translatable in your plugin you are using a set of special functions. These functions collectively are known as "gettext".

These functions have a parameter called "text domain", which is a unique identifier for retrieving translated strings.

This "text domain" must be the same as your plugin slug so that the plugin can be translated by the community using the tools provided by the directory. As for example, if this plugin slug is penfold-macrame the Internationalization functions should look like:
esc_html__('Hello', 'penfold-macrame');

From your plugin, you have set your text domain as follows:

This plugin is using the domain "woocommerce" for 8 element(s).

However, the current plugin slug is this:

openedx-commerce

@MaferMazu MaferMazu added bug Report of or fix for something that isn't working as intended help wanted Ready to be picked up by anyone in the community labels Aug 14, 2024
@MaferMazu
Copy link
Contributor Author

@MaferMazu MaferMazu linked a pull request Aug 22, 2024 that will close this issue
3 tasks
@MaferMazu MaferMazu self-assigned this Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Report of or fix for something that isn't working as intended help wanted Ready to be picked up by anyone in the community
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant