Home › Forums › WoodMart support forum › traduction
traduction
- This topic has 8 replies, 2 voices, and was last updated 3 years, 8 months ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
April 29, 2021 at 7:52 am #287848
ghisleghisParticipanthello when we update the theme goes back to english. However, we use a child theme but translates the parent theme. We cannot translate the child theme with loco translate because the Po file appears empty.
April 29, 2021 at 11:02 am #287955
Aizaz Imtiaz AwanKeymasterHello,
Theme translations would be lost when you update the theme. That’s why we always Recommend to take a complete backup of the website before updating the theme.
Let me explain again. Let’s take an example you are using English for US language on your site, and the language files are en_US.po and en_US.mo, Now rename those files as woodmart-en_US.po and woodmart-en_US.mo and place those language files under wp-content/languages/themes It will not be overridden again when ever you will update the Theme same as for other languages you are using.
Best Regards
May 1, 2021 at 6:24 pm #288613
ghisleghisParticipanthello thank you for your feedback but it does not work. If we rename our files as you told us, the translation no longer works. Second question, should it be added to the languages child or parent languages diossier? We also tried both.
Thanks
May 1, 2021 at 6:26 pm #288614
ghisleghisParticipantfor info our files are named like this and our site is French in the settings
woodmart-fr_FR.po
woodmart-fr_FR.mo
May 3, 2021 at 7:12 am #289014
Aizaz Imtiaz AwanKeymasterHello,
Please provide the admin panel login details of the website to check it myself and help you out accordingly.
Regards.
Xtemos Studios.May 3, 2021 at 7:14 am #289015
ghisleghisParticipantHello
May 3, 2021 at 8:46 am #289048
Aizaz Imtiaz AwanKeymasterHello,
The language files are already named in the format as I suggested to you in my last reply.
Now the translations will not be lost after you update the theme. Please take a complete backup of the website and try to update the theme.
Regards.
Xtemos StudiosJuly 5, 2021 at 11:12 am #304547
ghisleghisParticipantShould they be put in the child folder to avoid overwriting? and the woodmart.Pot file is useless?
Thanks
July 5, 2021 at 12:25 pm #304568
Aizaz Imtiaz AwanKeymasterHello,
No, the translation file doesn’t need to be put in the child folder. And the .POT file is the main translation file,it’s not useless.
Regards.
Xtemos Studios -
AuthorPosts
- You must be logged in to create new topics. Login / Register