• Closed
  • Lukasz
    Spectator
    May 21, 2015 at 11:05 am #17681

    Hi,

    I’m using plugin Child Theme Configurator. I try to change two line in file woo-config.php but it’s not work. If I changed it in orginal file it work, but in Child Them file not.

    I try to change line with translations:
    <p class="form-row form-row-first">
    <label for="password_1"><?php _e( 'Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
    <input type="password" class="input-text" name="password_1" id="password_1" />
    </p>
    <p class="form-row form-row-last">
    <label for="password_2"><?php _e( 'Confirm new password', 'woocommerce' ); ?></label>
    <input type="password" class="input-text" name="password_2" id="password_2" />
    </p>

    by

    <p class="form-row form-row-first">
    <label for="password_1"><?php _e( 'Password (leave blank to leave unchanged)', 'alora' ); ?></label>
    <input type="password" class="input-text" name="password_1" id="password_1" />
    </p>
    <p class="form-row form-row-last">
    <label for="password_2"><?php _e( 'Confirm new password', 'alora' ); ?></label>
    <input type="password" class="input-text" name="password_2" id="password_2" />
    </p>

    Roman
    Spectator
    Posts: 3147
    May 21, 2015 at 4:22 pm #17697

    in the child theme you should use the ‘woocommerce’ text domain as well

    Lukasz
    Spectator
    Posts: 45
    May 22, 2015 at 5:27 am #17716

    It is very complicated, because in the first version in both files (woo-config.php and PL.po) was “woocommerce”. Of course in “.po” file, this two sentences was translated, but it doesn’t work. I decided to change it. When I replaced woocommerce by alora in both files, it started work, but when I tried do the same in Child Theme “woo-config.php” file, it turned out that it not work.

    Why?

    Roman
    Spectator
    Posts: 3147
    May 25, 2015 at 2:42 pm #17744

    probably the child theme will need to include the translation files with the updated text domain

    Lukasz
    Spectator
    Posts: 45
    May 26, 2015 at 5:40 am #17763

    Ok, but how to do this? Copy folder “languages” from alora to alora-child folder?

    Roman
    Spectator
    Posts: 3147
    May 26, 2015 at 9:59 am #17767

    you could try it…I never test it 🙂