Codestyling Localization
[resolved] Parent Theme with two domains, Localization of Child Theme (3 posts)

  1. jdold
    Posted 3 years ago #

    I have a parent theme with two textdomains: parent_backend_domain, parent_frontend_domain. Now I do have a childtheme with its own textdomain: child_domain. I somehow cannot get it to work, that the localization of all three domains are used with the child theme. Can someone please help me what to put in my functions.php? I tried

    load_child_theme_textdomain( 'child_domain', get_stylesheet_directory() . '/include/languages/' );

    and also

    load_child_theme_textdomain( 'parent_backend_domain', get_stylesheet_directory() . '/include/languages/' );

    However, somehow it always gets mixed up and not all the translations are used. Thanks a lot.


  2. jdold
    Posted 3 years ago #

    I found out, that the mo file for the parent theme only contains either the strings from parent_backend_domain or parent_frontend_domain, depending which domain is selected when I hit the create button. How can both domains be included in the mo file, or how can two mo-files be loaded automatically?

  3. codestyling
    Plugin Author

    Posted 3 years ago #

    First of all, your parent theme should be able to load both because it seems to provide both.
    If you afterwards derive a child theme, then use the same parent_frontend_domains for your derivative work, thats all.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic