This post is part of the sub-series on Internationalizing a ClassicPress plugin which is part of the Internationalizing a ClassicPress plugin series.
If you have a string containing a parameter, say for example someone making a statement about the number of lights, you can combine your esc_html__
function with sprintf
to switch out a placeholder with the number in a variable:
$str =...
Continue Reading Ian Grieve’s Article on their blog
Internationalizing a ClassicPress plugin: Localizing a string containing a parameter
This post is part of the sub-series on Internationalizing a ClassicPress plugin which is part of the Internationalizing a ClassicPress plugin series.
Blog Syndicated with Ian Grieve’s Permission
More About This Author
Array
- Dyn365GP23 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Delete a Company
- Dyn365GP22 April 2024Upcoming Microsoft Dynamics 365 Business Central Knowledge Hub Webinars (May-Jul 2024) from MADIC dynamics
- Dyn365GP22 April 2024In Microsoft Dynamics 365 Business Central (Administration), how do I… Rename an Environment
- Dyn365GP19 April 2024MADIC dynamics Knowledge Hub Webinars: Jet Reports & Business Central