Home>Support>Can’t translate my site

Can’t translate my site

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");

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 19 days ago Andrew Misplon
    Hi, I Work Here

    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?

  2. 10 years, 13 days ago animind

    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,

  3. 10 years, 13 days ago Andrew Misplon
    Hi, I Work Here

    I’ve removed your url. Let me know if that’s enough.

    How have you progressed on this challenge?

  4. 10 years, 13 days ago animind

    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,

  5. 10 years, 13 days ago Andrew Misplon
    Hi, I Work Here

    Super, thanks for putting in the work to diagnose that, glad to hear it paid off in the end.

    All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More