New Landing How can we help? Themeforest Theme Support Uplift Translating child theme (something is missing)

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Uplift
  • #310832
    Adrenaline22
    Member
    Post count: 183

    1. Quick overview:

    – using child theme
    – created /languages/ folder inside child theme
    – copied uplift.pot, it_IT.po and it_IT.mo compiled with poEdit (just a few test strings)
    – copied this code in uplift-child/functions.php

    add_action( 'after_setup_theme', 'sf_child_theme_setup' );
    function sf_child_theme_setup() {
        load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );
    }

    But the translations are not showing.

    2. How would I proceed to translate plugins with the child theme?

    Thanks.

    #310834
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    try just this line inside the functions.php of the child theme

    load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/languages' );

    also confirm if the languages directory name is correct.

    -Rui

    #310879
    Adrenaline22
    Member
    Post count: 183

    Rui,

    Tried your code snippet, no changes.

    The url of the translations is uplift-child/languages (yes plural, because of Loco translate).

    I’ve got 2 days of support left. I’d like to solve the matter before it expires.

    Thanks for your understanding.

    #310903
    David Martin – Support
    Moderator
    Post count: 20834

    Can you add your FTP details and add a WP login.

    Thanks.

    #310907
    Adrenaline22
    Member
    Post count: 183
    This reply has been marked as private.
    #310977
    Adrenaline22
    Member
    Post count: 183

    Any news?

    #311028
    David Martin – Support
    Moderator
    Post count: 20834

    The connection is timing out for me:

    Can you double check those?

    #311049
    Adrenaline22
    Member
    Post count: 183
    This reply has been marked as private.
    #311168
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Why did you placed parent-theme-slug instead swiftframework?

    Instead this line:

    load_child_theme_textdomain( ‘parent-theme-slug’, get_stylesheet_directory() . ‘/languages’ );

    Try this one:

    load_child_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/languages’ );

    -Rui

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register