![]() ![]() Note: Make sure you refresh your browser and delete your cache if you have a cache plugin installed in your site. /wp-content/plugins/plugins-name/languages/./wp-content/themes/theme-name/languages/.The following is an example of a plugin and theme directory path. When you upload or install a plugin or theme with a language directory, it uploads the language files in the /languages/ folder. The other location is the plugin and theme directory path. Note: A better way to protect your themes customizations including the language files is by using a child theme. Which can also serve as a way to protect your customize translation whenever you update your theme. This is the default path to upload your mo and po files for themes that are translated in. Nowadays the mo and po files can also be uploaded to the following directory path in WordPress. Once you have completed all your changes and saved your file, you need to upload the new files to your server using FTP. The es_ES.mo file is generated automatically by Poedit when you save the changes made to your po file. You should see two files with updated entries. Step 8 ) After saving your changes, go back to the location where you opened the file to edit. In this example the following new strings were found. Now all you need to do is translate the new strings found. These strings need to be added to the po file. Step 7-a ) The following image illustrates the new strings found in the POT file. In this case, go to Catalog -> Update from POT file. This usually happens when the theme has been updated a few times but the language po file has not. Step 7 ) There are times that you might have to update the po files because it has not been updated for a while. Your new po and mo files will be updated and ready for uploading to your server. Step 6 ) Once you have completed all the changes, click on Save button as illustrated in the following image. Using a program like Poedit allows you to make your translations more personal for your site. Step 5 ) In the following image you can see the new edited string Centro. The current Spanish translation word used is Centrar. Step 4 ) In the following image the source text selected is Center. Note: In your case you might be translating a different language. The translated strings will be edited under Translation: field. In this tutorial the language is Spanish (Spain). Each string you select for translation will show up in the field Source text. The string selected can be translated into your language. Step 3 ) Once you have opened the es_ES.po file you will see many strings for translation. If it doesn’t, it means you need to select poedit as the default program to open up po files. Poedit should run and open the file for you. Note: You can also double click using your left mouse button the po file. In this example I am going to edit es_ES.po from Suffusion theme. Search for the po file in your computer or laptop. Click on Open button as illustrated in the image below. Step 2 ) Open Poedit in your computer or laptop. Please check the following documentation Install WordPress In Your Own Language to learn more. Step 1 ) Before you begin check to make sure you have set up your WordPress site with the correct language. (Optional but highly recommended)Ĭreate a WordPress plugin or theme translation using poedit Loco Translate is becoming very popular.Poedit to edit or create new po and mo files.And ftp program like filezilla which is free or cPanel File Manager.Note: Nowadays plugins and themes can be translated online at /. Note: Remember there are many different Spanish locales, so make sure you are using the correct locale for your Spanish language. all-in-one-wp-security-and-firewall-es_ES.po.all-in-one-wp-security-and-firewall-es_ES.mo.The following is an examples of properly named po and mo files for a theme and a plugin. For example: Don’t use the following names classipress_es_ES.po or classipress_es-ES.po because they will not work. Important: Make sure your file name is named correctly or else it will not work. However the po and mo file name in a plugin or theme will have the name of the plugin and theme added to the locale. ![]() When you create and save the Spanish files in Poedit it creates two files es_ES.po and es_ES.mo. The language file used for editing in this tutorial is Spanish (Spain). Create a WordPress plugin or theme translation using poedit shows you how to create or edit a language file for themes and plugins. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |