• Resolved mania1981

    (@mania1981)


    Hello,

    I have decided to switch to child theme since many additional modifications were needed. My page contains two languages and everything was working fine on parent theme, but after the switch to child theme non of the translation strings are not being included and page shows main language all the time.

    Do I need to set up something to make child plugin interpret properly translation strings?

    Thanks a lot for help

    Anna

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    In your code for each string you have to translate you have to use function like _e
    (https://developer.www.ads-software.com/reference/functions/_e/)

    _e(“mystring”,’yourtheme-child’);

    You have to generate a po file (yourtheme-child.pot) for your child theme. Save it in a languages directory under your child directory. And create a po file for each language in which you are going to translate your strings.

    Best regards.

    Catherine.

    Thread Starter mania1981

    (@mania1981)

    I have managed to get it done by copying wpml-config.xml from parent theme into child theme and modifying following line:
    <key name=’theme_mods_zerif-lite-child’>
    where zerif-lite-child is name of child theme

    Anna

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child theme does not take translation strings’ is closed to new replies.