Problem with translation of the theme

Hi there,

I'm trying to translate the "Social" theme in French and I have 2 questions :

1. Is a French version already existing somewhere (couldn't find a repository with languages files)

2. If not, how should I do to translate it myself, or at least some bit ?

Here's what I did :

a. copy-pasted the en_EN.po & .mo file to my harddrive and change it's name to fr_FR.po

b. Open the file with Notepad++, located the text I wanted to change.

c. Added the translation in the "msgstr" location, saved.

d. Uploaded the fr_FR.po & .mo to : wp-content/themes/bp-social/languages

e. Made sure my wp-config.php file had the language set to fr_FR

f. Refreshed the page, but nothing happened.

Hope you can help, thanks a lot,

Dushan

  • Jack Kitterhing

    Hi there @DJExp

    I hope you are well today and thank you for your question.

    Unfortunately no French version is currently available.

    1. First you'll need to download and install Poedit. You can get it here: http://www.poedit.net/

    2. Download Social and unzip the file. Take a look in the languages folder. You'll see a *.po file. This is the language template file provided by the plugin developer to allow it to be translated by Wordpress

    3. Run Poedit, and open up that .pot file. You will see the list of every text that is included with the plugin.

    4. Go through the list, and for each time you wish to change something, first click it in the list. You will see the "Source text" box update. Now just enter what you wish to be included instead of that text in the translation box.

    It's a long list, so to quickly find instances of "Welcome" be sure to use the "find" function (cmd+F on Mac, and ctrl+F on PC)

    5. When you're done translating, click "Validate" to make sure there aren't any errors.

    6. Now save the file. This will automatically create a .mo file. This is the compiled version of your translation that Wordpress can read faster than the full text version.

    7. Rename the .mo file to include the country code with whatever language code you need. You can find references to the codes here: http://codex.wordpress.org/WordPress_in_Your_Language

    8. Upload to your site and place in the languages folder of appointments+ (wp-content/themes/bp-social/languages)

    9. Tell Wordpress to look for translations. This can be done by placing the following line in your wp-config.php file:

    define('WPLANG', 'en_US');

    As you did before when renaming the file, replace the en_US part with whatever language code you need. You can find references to the codes here: http://codex.wordpress.org/WordPress_in_Your_Language

    Thank you!

    Kind Regards
    Jack.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.