nsadive.blogg.se

Translate wordpress plugin poedit
Translate wordpress plugin poedit









translate wordpress plugin poedit

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. Step 3 - Changing Your WordPress Website Language 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.

translate wordpress plugin poedit

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 WordPress Theme files on your computer.Poedit is available on OS X and Windows and can be downloaded from here. Poedit software installed on your computer.What you’ll needīefore you begin this guide you’ll need the following: This tutorial shows you how to translate any WordPress theme to your local language of choice. po files and we will add it to the plugin.Most of the WordPress themes come with one and only language – English. Or you can set your Poedit to always compile a MO file when saving changes by clicking File -> Preferences and on the Editor tab check the Automatically compile. When you are finished translating, go to File -> Save as again to generate the MO file. Go to File -> Save as to save your translations in a PO file.Ĩ. Select each translatable text and add the translation in the box that says “Translation”ħ.

translate wordpress plugin poedit

(Click the open link in the software then browse to the POT file location and select that file)ĥ. Run Poedit software (if it is not running already)Ĥ. You can find this file inside the “languages” folder of this plugin.ģ. Get the plugins POT file (wordpress-simple-paypal- shopping-cart.pot).

translate wordpress plugin poedit

Here is a step by step guide on how you can translate the WordPress Simple Shopping Cart plugin in your language.Ģ. Link below:Īlternatively, You can use the PO File editor to do the translation.











Translate wordpress plugin poedit