New Landing How can we help? Atelier Wrong translation after update

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #202054
    JaySchulz
    Member
    Post count: 122

    Hey there,

    after updating the theme and the swift framework I have again the wrong translation for at least one string.

    Everything is correctly translated in woo commerce / german market / and atelier de_DE.po/mo files
    It was working correctly till yesterday before the update was done.

    For some other translations (For example the second checkbox on the cart page: I’ve read the terms and conditions…..) I needed to edit the .po file again these ones are working correctly now.

    But the following is still not working:

    On Cart Hover:
    Totals incl. tax

    |- SHOULD BE -|

    Gesamt inkl. 19% MwSt.

    thanks for your help in advance

    J

    Attachments:
    You must be logged in to view attached files.
    #202056
    JaySchulz
    Member
    Post count: 122

    have fixed it.

    for some reason the child theme language file was not used.
    So I looked at the main theme .po file and there was the translation missing again.

    would it be possible to get an guide of how to include .po files for an child theme?!

    I have added a “language” folder within my child theme folder

    and i have done this in my functions.php within the child theme folder

    /* LOAD THEME LANGUAGE
    	================================================== */
    	/*
    	*	You can uncomment the line below to include your own translations
    	*	into your child theme, simply create a "language" folder and add your po/mo files
    	*/
    	
    	 load_theme_textdomain('swiftframework', get_stylesheet_directory_uri().'/language');

    thanks in advance

    J

    #202309
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    If you have created your language/ folder and added your updated files which are correctly named like de_DE.mo then the below should work.

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

    Let me know how you get on.

    – David.

    #203827
    JaySchulz
    Member
    Post count: 122

    Sorry for my late response.
    That worked perfect.

    thanks a lot.

    cheers

    J

    #203831
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Great. Thanks David.
    -Rui

    #204039
    David Martin – Support
    Moderator
    Post count: 20834

    No problem, happy to help you out!

    – David.

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