WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Codestyling Localization] Parent Theme with two domains, Localization of Child Theme

[Resolved] [Plugin: Codestyling Localization] Parent Theme with two domains, Localization of Child Theme

  • Hello,
    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.

    http://wordpress.org/extend/plugins/codestyling-localization/

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

    Plugin Author codestyling

    @codestyling

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Codestyling Localization] Parent Theme with two domains, Localization of Child Theme’ is closed to new replies.