If I want to use Loco Translate to translate some words from XStore, which file should I translate? XStore Child or XStore?
I am using XStore Child if I am right.
Thank youSite URL: hidden Theme version: Child 5.2
You need to translate parent xstore theme, you don’t need to translate child theme. I think you did not make changes in the child theme that have child theme text domain.
Please read this article https://xstore.helpscoutdocs.com/article/30-base-theme-translation
Feel free to ask, if you have any other questions.
Since I am using XStore Child now, if the theme is updated later, will I lose my translation?
Also, the Po. files (https://ibb.co/TbfT86h) were created by me just an hour ago, I did not make any change in these 2 files. Since I selected the wrong location (Languge/loco/theme/xstore) when I was creating it, can I just delete them and recreate a new one? Will that causes any negative effect?
1) You need child theme translation files only in case you added custom code in child theme that includes localization functions, for example
echo _n( '%s star', '%s stars', 1 ); etc.
If you don’t include in child theme any strings that require translation you don’t need translation files for the child theme.
2) You can use one of the directories:
either /wp-content/languages/themes/ or /wp-content/languages/loco/themes/ It’s ok. But don’t use /wp-content/themes/languages becasue you’ll loose translation after theme update.
Also, after any theme update, we would recommend you to Sync translations http://prntscr.com/npu8x3
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.
The message was successfully sent
Seems you did not register purchase code for XStore WordPress Support Forum to be able to create a topic on this forum.