This post is part of the sub-series on Internationalizing a ClassicPress plugin which is part of the Internationalizing a ClassicPress plugin series.
Over the previous posts I've discussed adding text domains and which functions are available to use, it's time to look at a practical application.
To return a translated string we'd use the
esc_html__ function with the string which can be localized as the first parameter and the text domain as the second:
$str = esc_html__('This is the string to translate', 'plugin-text-domain');
If we wanted to echo the translated string rather than return it, we'd use the
esc_html_e('This is the string to translate', 'plugin-text-domain');
The Inside Microsoft Dynamics GP blog has started a series Feature of the Day posts for Microsoft Dynamics GP "October 2019" Release on which I am following and adding commentary. The index for this series of posts is here.
The second Feature of the Day is another new User Security Workflow to complement the one covered in the previous post of this series.
In User Security, you can make changes to the access for a user, what security role they are assigned or what modified reports they can access. With User Security Approval workflow, you can require that these changes be submitted for review and approval. This workflow is available in Workflow Maintenance (
Continue reading "MDGP October 2019 Release Feature of the Day: User Security Workflow"