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:
Continue Reading Ian Grieve’s Article on their blog
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
- #Dyn365GP2019.10.21Translating a ClassicPress plugin with Poedit: What is Poedit?
- #Dyn365GP2019.10.21MDGP “October 2019” Release Feature of the Day: GL Journal Entry Inquiry Enhancements
- #Dyn365GP2019.10.20Translating a ClassicPress plugin with Poedit: Series Index
- #Dyn365GP2019.10.19Translating a ClassicPress plugin: How to do it