Viewing 4 posts - 16 through 19 (of 19 total)
  • Posted in: Dante
  • #157908
    mariatrier
    Member
    Post count: 163

    I auto updated from appearance > Themes and this went fine, however it did not help the initial translation problems and also deleted all of the translation I’ve done to the theme!

    When you auto update the theme how to make sure any translations made are not overwritten?

    #158087
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    In that case you should add your language files to the child theme.

    Inside your child theme functions.php file add the following code.

    add_action( ‘after_setup_theme’, ‘my_translation_child_theme_setup’ );

    function my_translation_child_theme_setup() {
    load_child_theme_textdomain( ‘swiftframework’, get_stylesheet_directory() . ‘/languages’ );
    }
    You should create a “languages” directory inside your child theme directory and place there your .po and .mo files.

    Hope it helps.

    -Rui

    #159153
    mariatrier
    Member
    Post count: 163

    It doesn’t. Translation to the ajax cart is still not working!

    #159961
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    I checked the file where the text is being outputted and it seems all fine.
    Also tried without the text load domain of the child theme an still the same.

    Can we activate the parent theme and deactivate the child theme?

    -Rui

Viewing 4 posts - 16 through 19 (of 19 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