![]() ![]() Note this will not change the WordPress backend language. Remember to change “fr_FR” to the name of your PO file. Simply open wp-config.php file (located in your main WordPress installation folder) with any code editor and add this line at the bottom of the file: define ('WPLANG', 'fr_FR') However, if your theme still appears in the default language it comes with (usually English) we can force applying the translation files using a quick trick. ![]() The translation files are applied automatically when you change your WordPress language if the theme has been already translated to that particular language. Now that your theme has been translated, you are ready to apply the translation! Applying your Translation mo files in the same folder where the POT file is placed. When you’ve finished translating, simply Save the file. You are free to translate all the strings or only a few of them. Please note that the free version of Poedit will only show you 10 suggestions which will reset each time you close Poedit.Įvery string you translate will be saved in a database and each time Poedit detects this string, it will show you your old translation as a suggestion. Poedit will try to help you and suggest human translations for the selected string. To translate this string, put the cursor inside the Translation field and type the translation. The Source text field will show the currently selected string. Poedit has a very intuitive and user-friendly interface. Now you can start translating your theme. Now a Translation Language box will pop up asking for the language of translation. Most developers place this file in a sub-folder named “lang” or “languages”. pot file should be available somewhere in your theme folder. When installed, open Poedit and click Create new translation and select your theme POT file. Poedit is a freemium and open-source program available for Windows, Mac OS X, and Linux that will make translating WordPress themes a piece of cake! If you choose to translate the theme yourself, I recommend using Poedit for the job. You can follow this guide on WPML website to learn how to do it. If you are using WPML to offer your site in multiple languages, you can easily translate your theme to multiple languages directly from WPML. Either by using a plugin like WPML or Polylang, or by generating the translation files yourself using software or an online tool. There are multiple ways to translate a WordPress theme. If you find that file, then your theme is ready to translate. Most developers put these files in a “language” or “lang” folder. The easiest way to check if a theme is a translation ready is to look for.
0 Comments
Leave a Reply. |