Hi,
After spending a few days trying to solve this myself, I ask you for help. I can’t translate my site to Spanish, I have uploaded, changed and deleted too many .mo .po files to be true. I’ve created a child theme, a new .css and functions.php… etc, but nothing seems to work, and I need to translate this theme and woocommerce store, I have all the files .mo, .po inside wp-content/languages and the wp-config.php set to WPLANG es_CL.
Please help!
wp-config.php:
/** * WordPress Localized Language, defaults to English. * * Change this to localize WordPress. A corresponding MO file for the chosen * language must be installed to wp-content/languages. For example, install * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German * language support. */ define( 'WPLANG', 'es_CL' ); /**
Functions.php:
<?php // Make the theme translatable function vantage_child_set_text_domain(){ load_theme_textdomain( 'vantage', get_stylesheet_directory() . '/languages' ); } add_action('after_setup_theme', 'vantage_child_set_text_domain', 15); ?>
Style.css
/* Theme Name: Vantage Premium Author: SiteOrgin Template: vantage */ @import url("../vantage/style.css");
Hi Ny
Thanks for running Vantage.
If you’re running the snippet above in your functions.php file then your language files need to be in a languages fodler in your child theme. Have you tried that?
Dear Andrew,
I would like to ask you to please delete this thread because I wouldn’t like this private information (my website url) to be public.
Kind Regards,
I’ve removed your url. Let me know if that’s enough.
How have you progressed on this challenge?
Hi Andrew,
Thanks again for your response. After trying everything I could find online I realised some of the WP files in my ftp were duplicated, so I deleted everything and started over again, installed WP and Vantage and now the translation works perfectly. I will assume it was an installation problem.
Kind Regards,
Super, thanks for putting in the work to diagnose that, glad to hear it paid off in the end.
All the best.