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

    Ruben
    Participant
    This reply has been marked as private.
    #349701

    Zeshan
    Member

    Hi Ruben,

    Thanks for the logins!

    It looks like you haven’t yet selected Netherlands as your site language under Settings > General (see: http://prntscr.com/80qnbd). It is important to select your site language so that WordPress can use the appropriate language files stored in /wp-content/languages directory.

    Thanks!

    #349768

    Ruben
    Participant

    Thanks a million, it works!

    Diving into the more advanced features made me forget the super-obvious.

    #349839

    Zeshan
    Member

    Glad to hear it worked! 🙂 Have a nice day!

    #352088

    Ruben
    Participant

    Dear support,

    While working on my translation I’ve noticed the theme loads the file from the x-theme directory.
    I really want it to load from the x-child-theme directory and I’ve performed all necessary steps (well, I think I did 😉 ) but it doesn’t work. This is what I was working on before contacting you the first time.

    Could you please help me out?

    Edit: Below you’ll find the new login information.

    #352090

    Ruben
    Participant
    This reply has been marked as private.
    #352380

    Rad
    Moderator

    Hi Ruben,

    Have you tried moving your files to /wp-content/languages/ as suggested here https://community.theme.co//forums/topic/translating-wordpress-theme-not-working/#post-209001 ?

    If not, you may add this code at your child theme’s functions.php them move your translation files at /lang/ folder.

    add_action( 'after_setup_theme', 'x_load_language_files' );
    function x_load_language_files() {
        load_child_theme_textdomain( '__x__', get_stylesheet_directory() . '/lang' );
    }
    

    Thanks.