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

Buy Me a Coffee at ko-fi.com

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

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

poedit2

  1. 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

  1. 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

  1. 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.

  2. 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.


Rituraj Ratan

I'm Rituraj, a Developer @Nagarro. Founder of Maddyzone .