The first one (Source Text) is a read-only box that shows the text of the phrase you just clicked on. Towards the bottom of the Poedit screen you will see two text boxes. TIP: In Poedit hit CTRL+F at any time to do a quick search for the phrase you want to translate. You can start to create theme translations for any phrase used in the theme into your own language! Simply click on a phrase from the list in the main window to get started. This means that you can use a custom translation file in a child theme and it won’t ever be overwritten during theme updates! If no language file (that matches the locale set in WP config) is found then it looks in the parent theme languages folder. If a child theme is active then the child theme languages folder will be checked FIRST. po file being located in the in the parent them languages folder OR the child theme languages folder. po file in the child theme languages folder (just create one if the folder doesn’t already exist).Īll our themes support the. Not to worry, you can easily protect against this by using a child theme and saving the. po file in the parent theme languages folder then that’s fine but you should be aware that it will be overwritten during a theme upgrade. Make sure that these two files are kept together. More on this later.įor now just go ahead and click Save to close the ‘Save as…’ dialog box. This is OK for now but you will need to change this later on to be more specific so WordPress knows which file to use for language translation. The default filename will be something like default.po. po file in the same directory as the theme POT file. po translation file, which is used to store all your theme translations. You will now be prompted to choose the location and filename for your. You don’t need to change any of these settings so just go ahead and click OK to close the dialog box. Next, you will see the ‘Catalog properties’ dialog box appear. Navigate to your themes languages folder and open the POT file. Then open it up, and select ‘File -> New catalog from POT file…’ from the menu. If you haven’t already done so, install Poedit now. The program we will be using to translate the theme is Poedit, which is available for all major operating systems including Windows, OS X, and Linux. The master theme translation file is a POT file, which can be found in the theme languages folder. They must contain the correct files, consult the theme author if you are unsure. Many WordPress themes can be translated, including our themes. Want to find out how easy it is to translate your WordPress theme into any language? Then read on…
0 Comments
Leave a Reply. |