Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #146495

    Oliver V
    Participant

    Hi Support! In my case it has finally worked doing the following:

    – Add your suggested code.
    – Having the line load_theme_textdomain( ‘framework’, TEMPLATEPATH.’/lang’ ); in my functions child theme makes no difference. Translations works with or without having the line. I have deleted them. Let me know if I should keep it! Thanks.
    – Change the name default.po and default.mo to es_ES.po and es_ES.mo.

    And now it works!

    Thanks!!

    #146566

    Rubin
    Keymaster

    Thanks for sharing this with us! It will be useful for people that are running into the same issue in the future.

    #188970

    cblaser
    Participant
    This reply has been marked as private.
    #189497

    Rubin
    Keymaster

    Hey cblaser: Oliver can’t view your post since he can’t read private replies, you might want to send him a non privat message here instead and ask him for his contact information so you guys can speak privately since our forum is public.

    #615069

    Strikkeglad
    Participant

    Hi
    I created .po and .mo files and placed them in lang folder of the X theme, and it works.
    However I moved the files to the child theme folder (/themes/x-child/framework/lang/) and added the code above to functions.php in the child theme.
    When I save, the code is changed to:

    add_action( after_setup_theme, my_child_theme_setup );
    function my_child_theme_setup() {
    }

    and the translation does not show.

    Can you help?

    #615247

    Jade
    Moderator

    Hi there,

    Thanks for updating. That sounds pretty odd. If you copied the code in response #146225, it should not be altered as you save it.

    Have you also tried the suggestion here? If you are still having troubles, would you mind providing us with your admin access as well as the FTP details so we could check on your setup further? Thank you.