While there are plenty of articles about translating WordPress, very few of them go into specific details of how this is done and managed on a day-to-day basis. What happens when you change something in the code? What happens when you add new strings? What happens when you update a plugin to a new version? These are the types of questions I will answer in this article. I will show you, step-by-step, how to get this done for new plugins and updates so you will be able to translate any plugin into any language. Let’s get started! Creating a Plugin The first step you will need to take, of course, is to create a plugin. If you already have one, great, if not you can follow our detailed getting started with plugin development guide. If you need a quick example plugin, let’s create one now together. All we’ll be doing is adding some motivational text to the header. Think the Hello Dolly plugin with explicit, motivational text, not lyrics. First, create a folder in your plugins directory and name it wp-admin-motivation. Then, create a file within that folder named wp-admin-motivation.php. The code to paste within that file is below. The first function get_motivation_text() contains an array
Share This

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.