Translating wordpress plugin in your languages
1 . Download poedit from here
- Install poedit on your local computer. after sucessful insallation open your poeditor.
- Go to file menu click on “New Catalog”. then a other popup window will be opened.
- 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 “../”).
- 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.
-
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.
-
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.