Skip to content

fix: wrap string for translation#6

Open
richard015ar wants to merge 1 commit into
devfrom
fix/i18n-wrapper
Open

fix: wrap string for translation#6
richard015ar wants to merge 1 commit into
devfrom
fix/i18n-wrapper

Conversation

@richard015ar
Copy link
Copy Markdown
Contributor

Issue: https://github.com/pressbooks/private/issues/2455

This pull request updates the way exclusion messages for interactive elements are handled in the pressbooks-shortcode-handler.php file. The main improvement is that these messages are now wrapped in a translation function, making them translatable for internationalization.

Internationalization improvements:

  • Updated the exclusion message in the videopickerShortcodeHandler to use esc_html__() for translation support.
  • Updated the exclusion message in the choosedatasetShortcodeHandler to use esc_html__() for translation support.
  • Updated the exclusion message in the ohmQuestionShortcodeHandler to use esc_html__() for translation support.

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.

1 participant