qTranslate for Gujarati language in wordpress

894 views Asked by At

I'm using qTranslate plugin and want my site to work in two languages, English and Gujarati.

I want to post in these two languages from admin side and in front side one drop down will give option to select language. The post will be of selected language.

How to get the .mo file for Gujarati to install the language in qTranslate plugin?

1

There are 1 answers

0
Lenin On

In the steps below:

  1. You will have to create your theme localizable by using _(), __(), _e() etc functions as necessary.
  2. Then you run poEdit on your theme folder and create a .po file
  3. Save the different languages as separate .po files. Saving the .po files would automatically transform the strings into .mo file.
  4. In your template's fuctions.php you'll have to define the textdomain to load for the .mo file.

These are the basic steps if you need further assistance, comment below, I'll help.

PS> You seem to have a little confusion over .mo and qTranslate. qTranslate mainly transforms frontend and backend to enable multiple language. The .po/.mo generation has no direct relation with qTranslate.