The same translation principle applies to WordPress Plugins as well.In addition to information on Translate Wordpress With Poedit, on our site you can find a lot of interesting and useful information on related topics. This skill is valuable if you want to adapt your website to your local language. Now you know how to translate your WordPress theme using Poedit translations editor. Open up wp-config.php file (it is located in your WordPress installation) and add the following line:ĭefine ('WPLANG', 'ZZZ'), where ZZZ is the name of the file you have used to save your translation ( lt_LT in this example): Refer to this tutorial on how to upload files to your account. The directory should look similar to public_html/wp-content/themes/THEMEXXX/lang, where THEMEXXX is the name of your WordPress theme. mo file ( lt_LT.mo was generated automatically by Poedit) to the corresponding directory on your hosting account. po file you have saved in step 2 ( lt_LT.po in this example) and. Pro Poedit Pro can use community-contributed translation memory and share yours to improve future translations, so you won't ever need to do your work twice. Step 3 - Changing Your WordPress Website Language Translation strings you finalise are stored locally and used to help you with translating similar strings in the future, by showing up as suggestions. Once you have translated your theme, save the file ( lt_LT in this example) in the same directory as the original template: In the Translation section enter a desired translation of the source string: Highlight any string you want to translate: You are ready to translate your theme now. Next, from a dropdown menu select a language you want to translate your theme to: A Theme’s default translation template is located in THEMEXXX/lang/YYY.po, where THEMEXXX is the name of your theme and YYY – default language of the theme ( twentysixteen/lang/en_EN.po in this example): Open Poedit and select Create new translation:Ī new window will pop up, select WordPress theme you want to translate. Step 1 - Opening Your Theme’s Default Language Template
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |