• Resolved SjorsHijgenaar

    (@sjorshijgenaar)


    Hi all,

    I order to implement required functionality I implemented a child theme for Zerif-Lite (v. 1.8.2.2). However, ever since I activated the child theme, my translation using Polylang (v. 1.7.8) isn’t working.

    In functions.php I found the following and figured it had something to do with my problem:

    /*
    
         * Make theme available for translation.
    
         * Translations can be filed in the /languages/ directory.
    
         * If you're building a theme based on zerif, use a find and replace
    
         * to change 'zerif-lite' to the name of your theme in all the template files
    
         */

    Can anybody help me?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter SjorsHijgenaar

    (@sjorshijgenaar)

    You can check out the website here. As you can see only the Our Focus (“Algemeen”) has some translated parts. The relevant strings do appear in my Polylang String Translator screen.

    MariusG

    (@marius_codeinwp)

    Hello,

    Sorry for the late answer, I am looking at your website right now and it seems you have translated Our Focus section successfully. Can you share what worked and what didn’t?

    Best regards,
    Marius

    Thread Starter SjorsHijgenaar

    (@sjorshijgenaar)

    Hi Marius,

    Thank you for your reply.

    I probably figured out what was going wrong. The translation wasn’t working in the child theme (so I turned it back to normal Zerif Lite) due to the permissions and ownership of the created directories and files. With some chgrp, chown and chmod that can be fixed and probably the translation will work as well.

    Same problem here. Child theme does not get parent translataions made with polylang. I think there is something wrong in the theme (zerif lite) because child-theme also broke stylesheets order.

    Unfortunatly for me going back to original theme is not an option.

    MariusG

    (@marius_codeinwp)

    Can you give us more details about what broke when using child themes and what version of Zerif Lite are you using so we can debug this?

    Regards,
    Marius

    @marius: If zerif lite is used as childtheme as described in WordPress docs, the child style.css is added way too early before parent and other css.

    A workaround/bugfix like this is required to get the child style.css to the correct place.

    Other issues/bad coding style prevent the correct use of child theme includes etc.

    The theme is really nice but was not developed with child themes in mind as it seems…

    MariusG

    (@marius_codeinwp)

    Hello Ov3rfly,

    Thanks for your tips, we’ll take them into consideration and try to make the necessary changes on our next update.
    Child Themes are pretty important to us, so we expect this to be solved pretty soon.

    Best regards,
    Marius

    I’m using the latest version. I had done some work to support child themes.

    * I’ve used the workaround pointed by Ov3rfly for csses
    * I’ve replaced all the “include get_tempalte_directory” with “get_template_part” (removing trailing slash and php extension) in frontpage.php
    * I had to remove the wpml-config.xml from the original theme and put in the child one to have working translations

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Child Theme and translation’ is closed to new replies.