New Landing How can we help? Themeforest Theme Support Flexform Child theme translation

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Flexform
  • #223716
    webdeves
    Member
    Post count: 18

    Hi.

    I’m using the flexform-child theme and having no luck getting the translated file available in

    \flexform-child\language\

    to work.

    I’m adding the following to the flexform-child\functions.php file:

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

    and also trying with:

    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'flexform', get_stylesheet_directory() . '/language' );
    }

    as found on the web…

    Neither of these get the theme translated.

    Help would be appreciated, many thanks.

    #223781
    David Martin – Support
    Moderator
    Post count: 20834

    Please add a WP login so we can take a look at the child theme setup.

    – David.

    #223881
    webdeves
    Member
    Post count: 18
    This reply has been marked as private.
    #223987
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this code.

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

    Thanks
    Mohammad

    #224032
    webdeves
    Member
    Post count: 18

    Hi M.

    That did it! But changing /languages for /language instead.

    Many thanks indeed!!!!!!

    Kind regards.

    #224048
    webdeves
    Member
    Post count: 18

    Ok, hit a new wall!!!

    What about keeping a plugin translation safe from a plugin update? Can I do this under the child-theme somehow?

    I am specifically trying it for the Embed Any Document (ead) plugin.

    Thanks!

    #224066
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not sure about it. This article can help to you about plugin translations:- https://ulrich.pogson.ch/load-theme-plugin-translations.

    Thanks
    Mohammad

    #224778
    webdeves
    Member
    Post count: 18

    Will check it out, thank you very much.

    #224800
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. Glad 🙂 to help you.
    Thanks
    Mohammad

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 one of the following items
Login and Registration Log in · Register