Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1181036
    PomS
    Participant

    Hi there,

    I have a weird problem with the .mo file.

    I use the method you recommend here:https://community.theme.co/kb/translation/

    I use a child theme and I have created a folder called languages in the child theme where I uploaded the .mo file. And then I have put the following code in the functions.php of my child theme:

    add_action( 'after_setup_theme', 'load_child_language' );
    	function load_child_language() {
    		load_child_theme_textdomain( '__x__', get_stylesheet_directory() . '/languages' );
    }

    I try this method on a first site and it worked like a charm. Now I am trying it on a second one that will replace the first one but it doesn’t work. I don’t know why since I have done exactly the same things 🙁

    Anyone could help me please?

    #1181043
    Paul R
    Moderator

    Hi,

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #1181085
    PomS
    Participant
    This reply has been marked as private.
    #1181118
    Christian
    Moderator

    Hey there,

    Sorry but I couldn’t login with the given FTP credentials. Please check.

    Thanks.

    #1181131
    PomS
    Participant
    This reply has been marked as private.
    #1181186
    Christian
    Moderator

    Hey there,

    I see you don’t have a .po file. Please see or review our translation guide at https://community.theme.co/kb/translation/

    Thanks.

    #1181199
    PomS
    Participant

    Hi,

    Well the .po file is just for edition no ? Anyway I have added it and it’s still not functional.

    #1181248
    Christian
    Moderator

    Hey there,

    I see the strings in your site are translated. Can you give us a page where strings are still in English?

    Thanks.

    #1181344
    PomS
    Participant
    This reply has been marked as private.
    #1181374
    Christian
    Moderator

    Please try editing your shop title and subtitle in Appearance > Customize > Integrity > Shop Options

    Thanks.

    #1181393
    PomS
    Participant

    Oh I see… It was functional exacpt that haha. So sorry, was thinking it was the general theme traduction and not a customization.

    Thank you sir, you solved the problem ! Have a good day 🙂

    #1181413
    Christian
    Moderator

    You’re welcome. Glad we could help. 🙂

  • <script> jQuery(function($){ $("#no-reply-1181036 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>