How to add translation files to child theme

This topic has 4 replies, 2 voices, and was last updated 3 months, 3 weeks ago ago by Rose Tyler

  • Avatar: DEVELOWEB
    DEVELOWEB
    Participant
    January 18, 2024 at 10:55

    Hello,
    after the theme has been updated to version 9.2.6, I realize that I have lost the translations that were at the path /wp-content/themes/xstore/languages/
    the 2 files are no longer present: “it_IT.po” and “it_IT.mo”.

    Can you activate these translations to the child theme, so that after the updates, the translations will always remain?
    if yes, to which path do I insert the files? and do I have to add a string to invoke the translations in the function.php file (in the child theme)?

    many thanks

    3 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 18, 2024 at 11:14

    Hello, DEVELOWEB,

    Thank you for contacting us and for using XStore.

    Translation files of the theme should be placed in /wp-content/languages/themes/ folder,
    plugins, like Core plugin, in /wp-content/languages/plugins folder, with correct names, for example, for XStore theme: xstore-it_IT.po, and xstore-core-it_IT.po for XStore Core plugin, then you will not lose translation after the update.
    https://xstore.helpscoutdocs.com/article/30-base-theme-translation

    We would recommend doing a backup of all the files before any update.
    Some hosting providers do regular backups for customers.

    Kind Regards,
    8theme team

    Avatar: DEVELOWEB
    DEVELOWEB
    Participant
    January 18, 2024 at 11:59

    Unfortunately the solution does not work properly.
    I attach a video that shows this :

    https://develow27.sg-host.com/wp-content/uploads/2024/01/transl-error.mp4

    many thanks

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 18, 2024 at 12:18

    Hello, DEVELOWEB,

    We appreciate your prompt response.

    Translation files of the theme should be placed in /wp-content/languages/themes/ folder, not in https://prnt.sc/LAiScE4Sh8d6

    Kind Regards,
    8theme team

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

You must be logged in to reply to this topic.Log in/Sign up

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