Translatable Child-theme: same or different textdomain (3 posts)

  1. bitbusters
    Posted 3 years ago #

    for a website in Polish language, to customise the templates and allow for updates of the base theme, i decided to create a child theme.
    I was seeking for any complete howto or article concerning the strategy: I am using poedit to create translation files, and Codestyling localization to keep them up to date, but I cannot get those texts to display on the site internationalised with Polylang.

    I am trying to create a textdomain separate from base theme (brunelleschi), but the Codestyling Localization still displays the 'brunelleschi' textdomain.

    Here the code of functions.php of my child theme, "Andrea Brunelleschi", where I'm overriding the function brunelleschi_setup() of main theme.
    Any hints are welcome.

    [Code moderated as per the Forum Rules. Please use the pastebin]

    And some template file:

    <h1 class="page-title"><?php
    				printf( __( '%s offered by MyCompany', 'andreabrunelleschi' ), '<span>' . single_cat_title( '', false ) . '</span>' );

    Thanks in advance.

  2. bitbusters
    Posted 3 years ago #

    Hi, sorry for misuse. This is the file one more:

  3. kittrick
    Posted 3 years ago #

    Make sure this part is linking to the directory holding your languages:
    $locale_file = TEMPLATEPATH . "/languages/$locale.php";

Topic Closed

This topic has been closed to new replies.