How can I setup Multilanguage on Child Theme?

This topic has 4 replies, 2 voices, and was last updated 1 years, 5 months ago ago by Rose Tyler

  • Avatar: Jaime
    Jaime
    Participant
    June 28, 2023 at 17:11

    Hi,

    I want to setup Multilanguage on a Child Theme, but the main language should be Portuguese and not English.

    I completed the Loco tutorial on the main theme and it had no effect on the child theme.

    After that, how can I setup multilanguage? Just English and Portuguese.

    Thanks you,
    Jaime

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2023 at 07:24

    Hello, Jaime,

    Thank you for contacting us and for using XStore.

    The translation should be done for the parent theme, and it will be automatically inherited by the child theme.
    The child theme should be translated only in case you added custom code in child theme that includes localization functions.

    Main language you can select in Dashboard > Settings > Site language.

    If you want to create a multilanguage site you need a special plugin for these purposes https://colorlib.com/wp/wordpress-multilingual-plugins/ Support of the plugin should guide you. The plugin will give a language switcher widget also.

    Kind Regards,
    8theme team

    Avatar: Jaime
    Jaime
    Participant
    June 29, 2023 at 20:54

    I installed it and it still didn’t translate the entire theme.

    Can you check what might be wrong? I think when I changed the website language it didn’t assume the installed language.

    Also, I installed the Gtranslate plugin and I want to insert it in the header, but you guys only allow HTML and no Shortcode. What can I do?

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 30, 2023 at 08:23

    Hello, Jaime,

    Thank you for your response.

    1/ You selected the site language Português, so the translation of the theme should be xstore-pt_PT.po, but you have only an incorrectly named file – https://prnt.sc/4Hn67ImfBRSa , the same for XStore Core plugin.

    Please read and watch videos – https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/

    2/ We would recommend you contact support of the Gtranslate plugin first.
    As we can see, GTranslate widget can be added in a widget area via Appearance > Widgets, then you can select that area by adding a Widget element into the Header Builder – https://prnt.sc/f6g3-s4IBvTQ

    If you have any additional questions or concerns, please do not hesitate to reach out to us. Our support team is always available to assist you.

    Kind Regards,
    8theme team

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘How can I setup Multilanguage on Child Theme?’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.