This post is part of the sub-series on Internationalizing a ClassicPress plugin which is part of the Internationalizing a ClassicPress plugin series.
When internationalizing a plugin, you should avoid including a URL in the translatable string.
While for ease it may be tempting to do this:
esc_html_e('Please visit <a href="https://development.azurecurve.co.uk/">azurecurve Development</a> for more details.','your-text-domain');
You should instead paramaterize it by doing this:
printf(esc_html__('Please visit %s for more details.', 'your-text-domain'), '<a href="'.esc_url('https://development.azurecurve.co.uk/').'">azurecurve Development</a>');
If you have a URL where you want the anchor text to be translated, you can do this:
printf(esc_html__('Please %sLogin or Register%s to leave a comment.', 'your-text-domain'), '<a href="'.esc_url('https://development.azurecurve.co.uk/login.php').'">', '</a>');
sprintf function will allow you to paramaterize the URL and prevent a translator from substituting your domain for a different one.
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 sixth Feature of the Day is Copy Report Options. This feature allows you use an existing report option with all the report settings and copy it to a new report option for the same report.
When you select the copy action, it will copy all of the settings from the selected report including destination and e-mail options to the new report option being created:
This is one of the features requested by the community. It will allow you to easily create variations of a report option without needing to do it manually; for myself, this could be quite useful to test changes while dealing with an issue for a client.