New Landing How can we help? Themeforest Theme Support Joyn Updating Joyn causes loss of translation through child theme

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Joyn
  • #183730
    froslev
    Member
    Post count: 21

    Hi swiftideas,

    I am using a child theme of Joyn translated to Danish, but everytime i update my theme, the translation disappears, and turns back to english as default.

    I have made a subfolder “joyn-child / language” with my danish mo. and po. files, and added:

    load_theme_textdomain(‘swift framework’, get_stylesheet_directory_uri().’/language’);

    to my child themes functions.php.

    I have to re-upload the translationsfile to the original theme file “joyn”, before my website turns back to danish.

    What am i doing wrong? I have attached some files showing strings in functions.php, and the subfolder.

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #183953
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code :-
    load_theme_textdomain('swift framework',get_stylesheet_directory_uri().'/language');

    Change with:-
    load_child_theme_textdomain( 'swiftframework', get_stylesheet_directory() . '/language' );

    Thanks
    Mohammad

Viewing 2 posts - 1 through 2 (of 2 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