Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

We are creating a multi-lingual multi-site (on sub-domains/domain mapping) on Wordpress.

We recently bought WPML Wordpress plugin and installed it on the basic language (English) version. Now we are trying to work on Theme Localization.
Here we are following the steps as in this guide. Here we are being instructed to install a .mo file in Language locale settings. We are getting an error File not found (under MO file in wp-content/Languages).

This .mo file was downloaded from http://code.google.com/p/nextgen-gallery/downloads/detail?name=nggallery-zh_CN.mo.

Can anyone help? Is this .mo file the correct version? Is there any other source to get the correct .mo file? Are we using the right approach for theme localization?

share|improve this question

closed as off-topic by birgire, toscho Sep 23 at 15:46

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

A .mo file is the machine readable Version of a .po file, which in turn holds the translation of a .pot file.
Hence, the latter is what you want to have in the first place.
And if it is your theme you want to localize, you certainly do not need a random plugin's simplified Chinese .mo file...

Using either, poedit, any other gettext application or the Codestyling Localization Plugin, you analyze your theme's PHP, a .pot file is created automatically and it is then that you can start creating translation files, one .po and .mo per language.

Also, add a /languages/ folder to your theme (or plugin), rather than attempting to use wp-content/languages.

You might benefit from carefully reading the I18n for WordPress Developers codex article.

share|improve this answer
    
Thanks for your valuable inputs! –  Websavvy Apr 10 '13 at 3:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.