This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Can’t translate my site

Resolved 5 replies premiumthemetheme-vantage
11 years ago · Last reply by Andrew Misplon 11 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff 11 years, 5 months ago

    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. animind 11 years, 5 months ago

    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. Andrew Misplon Staff 11 years, 5 months ago

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

    How have you progressed on this challenge?

  4. animind 11 years, 5 months ago

    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. Andrew Misplon Staff 11 years, 5 months ago

    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.

Have a different question or issue?

Start New Thread