I'm Rituraj, a Developer @Sapient. founder of Maddyzone. JavaScript, Angular, Node.

Translating wordpress plugin in your languages

1 . Download poedit from  here

  1. Install poedit on your local computer. after sucessful insallation open your poeditor.

poedit1 3. Go to file menu click on “New Catalog”. then a other popup window will be opened.

poedit2 4. Insert project and charset utf-8 and click on path tab and click new item and fill “../” for plugin folder i.e( if your folder name rakesh and all the php files is in then give path “../”).

poedit3 5. and after that click on keywords wordpress translate only two function( _e , __ )keywords for every language. if your code is in those two functions then it will be taransable code. and then click on “ok” Note:- Click ok when you finished all three step.

poedit4 6. After that save your default.po in the folder then it’s search code for translate and then transable code will be appear in the poedit.

  1. For translate code click on line by line in original string block and write your code in last section. then after write all code. click on file menu save as file like(yourpluginname-fr_FR)for franch.

For transalate plugin your code must be like this:- __(“your msg”, ‘your unique name’) _e(“your msg”, ‘your unique name’) then poedit process for translate code. that’s it …. you finished your work.

Maddyzone

Rituraj ratan

I'm Rituraj, a Developer @Sapient. founder of Maddyzone. JavaScript, Angular, Node.