In the previous episode, you learned about the character sets, encoding, and that PHP has string instructions that count bytes and others that count characters. We are stepping back now to see if this also applies to strpos for checking if a substring exists in a string. Let’s add a word in both Russian and German to the content. Then let’s see if strpos gives us the right starting position for each word. Additional Resources mb_strpos strpos
Labs
Labs are hands-on coding projects that you build along with Tonya as she explains the code, concepts, and thought processes behind it. You can use the labs to further your code knowledge or to use right in your projects. Each lab ties into the Docx to ensure you have the information you need.
Each lab is designed to further your understanding and mastery of code. You learn more about how to think about its construction, quality, maintainability, programmatic and logical thought, and problem-solving. While you may be building a specific thing, Tonya presents the why of it to make it adaptable far beyond that specific implementation, thereby giving you the means to make it your own, in any context.
Internationalizing the Collapsible Content Plugin – Part 5
You built a custom WordPress plugin. You used the internationalization functionality from WordPress. But now you want to go to the next step to prepare your plugin for the market. It’s time dive deep into translations and internationalization. In this lab, you will translate the Collapsible Content Plugin using Poedit, generate the files, and then validate.
Configure Labels
You are going to want to configure all the unique labels in the back-end for your client. Listen to me. It’s your job to make it consistent and easy for the user (your client) to use and manage their content. Labels that say “Post” will confuse them. It will confuse you six months from now when you come back to this project. Take the time to configure the labels. It just takes a couple of minutes. In this episode, you will learn about the different label options. You’ll also learn about internationalization with __() and _x(). Since we are building […]