Theme translations don't work?

Community Forums Forums Internationalization and Translations Theme translations don't work?

This topic is: not resolved

This topic contains 5 replies, has 4 voices, and was last updated by  Grégoire Noyelle 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #87451

    Arom77
    Member
    Post count: 2

    Hi,

    I tried to translate Executive Pro and Beautiful Pro in a multisite network.
    For example, widget titles in the admin widget area are in english and I want them in french.
    I read this http://www.studiopress.com/tips/translating-studiopress-theme.htm and ended up with .po and .mo files
    For Executive Pro I named my file as following: used executive-fr_FR.mo
    For Beautifl Pro I named my file as following: executive-fr_FR.mo
    But translations don’t work.

    Is the name not correct?

    Or maybe it’s related to the fact I’m using Genesis translations plugin? If so, how can I do?

    Best Regards

    http://monsitedentiste.com
    #87508

    AC
    Blocked
    Post count: 7712

    I sent a tweet out for assistance. Someone should respond shortly.

    #87511

    webfocusdesign
    Participant
    Post count: 5

    Hi Arome77,

    Did you use POEdit as that page you linked to instructed? It will name the .po and .mo files correctly on its own when you save. No need to rename them.

    Also, you say “widget titles in the admin widget area are in english and I want them in french”, do you mean the name of the widgets provided by WordPress (like Calendar, Custom Menu or Recent Comments) or the widget titles you enter yourself? For the latter, you’ll need to renter the titles in French. Theme translation won’t help with that as they are not related.

    #87512

    Arom77
    Member
    Post count: 2

    Hi @anitac

    Actually I found the answer ;-)
    The name was not correct. It’s just fr_FR.mo (and not themename-fr_FR.mo).

    Thanks!

    #87525

    AC
    Blocked
    Post count: 7712

    @arom77, also check out the dialogue going on over on my Twitter – https://twitter.com/TheCre8tiveDiva/status/428184955407966208. Some of them cannot make it to the forum right now, so read those tweets.

    #87526

    Grégoire Noyelle
    Participant
    Post count: 38

    Hello

    For Child theme two things to do:

    1- in functions.php add:


    load_child_theme_textdomain( ‘theme-name’, get_stylesheet_directory() . ‘/lib-gn/language-theme’ );
    `

    The language-theme is my folder for all po, mo files and the ‘theme-name’ is the localization name.

    2. for your mo and po files, just use this names for french:
    fr_FR.mo
    fr_FR.po

    That’s all
    Cheers

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.