WordPress.org

Ready to get started?Download WordPress

Forums

Help with support of multiple languages (via Ploygot) (3 posts)

  1. Paul Menard
    Member
    Posted 8 years ago #

    Greeting all,

    I have a client that wants to offer his site in 7 different languages. The backend WP admin section will remain in English. He wants the user to be able to select the global site language.

    I've downloaded the xx.mo files for these languages and they now reside in the /wp-includes/languages/ folder. I've downloaded the polygot plugin. I've followed the instructions on this page http://fredfred.net/skriker/index.php/polyglot. I've setup a clean development install of WP 2.0.2 and am using the 'default' themes which comes out of the box with WP (for now).

    Per the polygot instructions I've added the code to the sidebar.php file:
    if(function_exists('polyglot_list_langs')) polyglot_list_langs(true); ?>

    This seems to display the flags which is what I desire. So far so good.

    When I select a language the page refreshes. Some of the sidebar content is translated like the monthly archive listing, the months are displayed in the selected language. Cool. But the content displayed is never translated.

    I've not worked in a multi-language WP project. Just looking for some guidance or suggestions.

    Paul

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    It doesn't magically translate everything for you. For the polyglot plugin, you can make one post contain multiple translations of the same text. That's what the bit where he talks about <lang_en> and such is all about. Then what gets displayed is based on what language the viewer is actually using.

    If they want the posts to be in 7 languages, they have to make the posts in 7 languages. Or you'll have to do some kind of machine translation on the backend.

    Localization (which is what the mo files and such do) is all about picking the correct text to display, not about translating it for you. The reason you get all the months in the various languages is because the mo files contain all that text in those languages, pre-translated.

  3. ovib
    Member
    Posted 7 years ago #

    Hello, I wish translate and the various cathegory for the links but i can't fit this work.

    So, how ?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic