Translation files are usually located in a folder called “language”, inside the folder where your theme is located. Then go to app > public, or “public/public-html” (the name of the folder depends on your host), then to wp-content > themes, and finally click on the name of your theme. To learn how to install a WordPress site locally, see our article. The location of your WordPress site files with Local by Flywheel If you would like to contribute to make React an even better theme, please send us your translated. ThemeCatcher invites you to share your translations with others. Once this step has been done, the theme should be translated inside WordPress. At the option Site Language choose your language. Go to Settings → General on the WordPress menu. If you haven’t done so already, you should set up WordPress to use your locale. Therefore you should have two files that will be in the react-child/languages/ folder: Poedit should create another file ending in. Once you’ve completed the translating or want to save your progress, go to File, then Save, browse to the child theme react-child/languages/ folder and save the file with the name of the WordPress Locale code you obtained above. You may be able to figure it out from there. This will open the file and show where the string appears in the code. If you need to find out the context of a string so that you can accurately translate it, you can right-click it and under References, click one of the filenames. Finding more information or context of a string Furthermore, double quotes will have a backslash before them \" and they should remain this way in your translation. These are formatting placeholders and they should remain inside the translated string, in exactly the same position if possible. If you have never done a translation before, you may notice some odd looking character combinations, such as %s \n \t %1$s. Unusual characters combinations (formatting placeholders) If the translation is the same in both languages, you can right-click the string and select Copy original to translation field.Ĭontinue this process until the translation is complete. You can use the shortcut key Ctrl Down Arrow to jump to the next translation. In the empty box, enter your translation. If you look at the bottom, you should see 2 boxes, one containing the text to be translated and an empty box below it. When the file loads, you should see the list of text strings which need to be translated. On the Poedit menu, go to File, then New from POT/PO file… and open the file react/languages/react.potĪfter opening the file you will be prompted to choose a language, select the language you want to translate to. Once you’ve installed Poedit, run the program. Click here to go to the Poedit download page. For German the WordPress Locale code is de_DEĭownload and install Poedit or a similar translation tool.For Spanish the WordPress Locale code is es_ES.For Polish the WordPress Locale code is pl_PL. Find the row for your language, you’ll find the code in the “WordPress Locale” column. Your WordPress Locale code which you can find on this page at the time of writing.The theme and translation file which you can find at react/languages/react.pot inside the theme files.You can open this file with translating software such as Poedit to translate the theme, please follow the instructions below. pot file which can be used to translate all text in the theme. mo file from the page and place it into the child theme react-child/languages/ folder to start using your translations immediately. Your translations will be included in the next version of the theme, though please email us to let us know you have updated the translations. If your language is not shown on the list please email us at and we’ll add it as soon as possible so you can get started. You can use the same login details as the support forums. We have an online translation management site at you can use the site to translate all theme text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |