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
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.
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 […]