New Landing How can we help? Cardinal Child theme transaltion with Loco Translate

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Cardinal
  • #249936
    Mar21
    Member
    Post count: 219

    Hi!

    I have some trouble for translating my child theme with Loco Translate. I have add

    
    load_theme_textdomain('swiftframework', get_stylesheet_directory().'/language');

    in the functions.php of the child theme and created a language file in my child theme. I have copied the fr_FR.po and fr_FR.mo from Cardinal in my Cardinal-Child language file, but when I look at Loco Translate, they are not listed. How can I do to be sure to keep my translation at each Cardinal theme update?

    #250224
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Remove that code and add this code:-

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

    Thanks
    Mohammad

    #294437
    Mar21
    Member
    Post count: 219

    Hi,

    after updating de Loco translate plugin, I have a new issue regarding the translation of the child theme. the stylesheeyt of the languages is missing. I have attached a screenshot of my loco settings. What shoudl I delete?

    thanks

    Attachments:
    You must be logged in to view attached files.
    #294459
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Looking at your screenshot I’m not understanding what is missing. can you explain further?

    -Rui

    #294478
    Mar21
    Member
    Post count: 219

    I have a message of broken theme (cf enclosed)

    Attachments:
    You must be logged in to view attached files.
    #294842
    David Martin – Support
    Moderator
    Post count: 20834

    Are you using the child theme supplied by us?

    – David.

    #295683
    Mar21
    Member
    Post count: 219

    yes!

    #295935
    David Martin – Support
    Moderator
    Post count: 20834

    I do not see where this is happening, can you provide a link to the admin page where you see this?

    – David.

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

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

License required for one of the following items
Login and Registration Log in · Register