This topic has 9 replies, 3 voices, and was last updated 5 years, 5 months ago ago by Olga Barlow
Hi!
First of all, thank you for your fine Woocommerce theme. I love how fast loading times it has and how versitile it is.
I have a problem with translating plugins and actually all the other parts than Xstore theme.
Xstore theme gets trasnlated fine without any issues. So that means Loco plugin works. I coded translatable strings for Xstore’s child theme. Even though I translated these strings in Loco, it didn’t display the translated strings on the front end. Same thing is with plugins. I’ve tried to translate one plugin (N-Media WooCommerce PPOM), but the front end always displays the plugin in English. I’ve managed to translate this same plugin with different theme, so it’s not plugin relatable issue.
I’ve spend couple days trying to figure out where the problem could be, but I’m pretty helpless. Here’s what I’ve already checked:
– The website’s language has been set correctly
– I’ve double checked that translatable strings have set correctly
– I’ve tried to include this code to functions.php:
function text_domain_load_function() {
load_plugin_textdomain('ppom', false, 'https://amperlathermo.fi/wp-content/languages/loco/plugins/');
}
add_action('plugins_loaded','text_domain_load_function');
– Translation files have read permissions
– Deleted the Loco translation file and created the translation template again
Is there a possibility that Xstore theme blocks some translations? Can you help me to figure out what I’m missing? Where to start troubleshooting?
Hello,
XStore theme should not block translation strings from other plugins if they are not overwritten by theme or XStore core plugin files. What strings are missing? Provide the list, please.
Could you also, please, provide me temporary Dashboard and FTP access to your site to check the problem in more details?
Regards
Hi!
For now the missing strings are the ones that N-Media WooCommerce PPOM (product add-ons) plugin generates. For example in the page:
https://amperlathermo.fi/tuote/levy-musta-valkoinen/
You can see before the ‘Add to cart’ (‘Lisää ostoskoriin’ in Finnish) a table, where you can see texts:
‘Product price’
‘Total’
These are one of the strings that I’ve translated with Loco but for some reason it doesn’t obey the translations.
The login infos are in the private content.
Hello,
We can’t connect to FTP and get the following error – https://prnt.sc/njdst4 Please check access.
Do you have any limits for the connections from the other countries, any white/blacklist?
Regards
Hi!
Sorry for the delayed reply. I accidentally provided you the wrong user name. Here’s the correct credetianls to log in to ftp.
Hello,
I’ve synchronized translation of the plugin, but do not see changes on the frontend. Do you have a server cache?
Please clear all cache and check mentioned strings on the frontend. Also, check how it works with a default theme and provide screenshots.
You can use such screenshot maker as Lightshot https://prnt.sc/
Regards
It took a while, but I managed to solve this and I wanted to share the solution here, if someone else is having the same problem.
I guess this wasn’t a theme related problem. When I switched to Twentynineteen theme, the problem still existed. After doing some research and experimentals, I found this solution.
For some reason other than xtheme text domains isn’t being loaded. So I had to tell WordPress to load them manually. This can be done with adding the next code to child themes function.php:
add_action ( 'wp', 'load_translations' );
function load_translations() {
load_theme_textdomain( 'your-child-themes-text-domain' );
}
Hello,
Look, if plugin translation does not work even with the default theme you need to contact the plugin author and ask him to check and help you. Maybe something was made wrong while creating plugin translation.
Regards
Hello,
Actually, you did not translate these strings in plugin settings http://prntscr.com/nvuiv2
So, be attentive and if you have issues related to third-party plugins contact plugins support. You’ll get the answer faster because the author knows the options of his product.
Regards
You must be logged in to reply to this topic.Log in/Sign up