Jump to content

Archived

This topic is now archived and is closed to further replies.

jane

Wordpress plugins that have been translated

Recommended Posts

jane    6
jane

Hi,

 

I've been searching for the answer but haven't been able to find it...hopefully someone can help?

 

I have wp-pagenavi on a bunch of my sites however although it comes with the mo and po French file, my sites don't automatically translate. Do I have to change the location of the file in order for it to work?

 

Any help would be great.

 

Thanks

Share this post


Link to post
Share on other sites
Simon    247
Simon

Really depends on the plugin. The plugin has to actually register the mo file with wordpress.

Share this post


Link to post
Share on other sites
HazelChris    1
HazelChris

Exactly! You’ll have to register the mo file with WordPress in order to provide automatic translation facility on your website. For this, you can use PoEdit, one of the most used cross-platform get-text catalogs.  

The first step is to understand the formats:

1. .mo is short for Machine Object. This is used by WordPress in the form of a complied export of your .po files.

2. .po is short for Portable Object. It is in the form of an editable text file having translation strings. You should use it for translations only.

3. .pot means Portable Object Template. It exists in the form of an editable text file. It is used to grasp the WordPress translation strings, themes and plugins. 

 

Here is the process:

1. Duplicate and rename the .pot file as plugin-basename-lang_COUNTRY.po.

2. Use the reference plugin cased as subscribe-reloaded-fr_gr.po (fr_gr refer to French and German languages).

3. Mention your preferred language instead of French and German

4. Set WPLANG to your preferred language in wp-config.php file

5. PoEdit will automatically generate a .mo file every when you save the .po file. You need to upload this file for WordPress to use.

Hope this will help you!       

 

  • Like 1

Share this post


Link to post
Share on other sites

×