I have a theme and I want to translate some test from english to spanish. After edit the .po and .mo files I did the following:
- Rename files to
newsgrid-es_ES.mo
andnewsgrid-es_ES.po
- Copied the files to directories
/wp-content/themes/newsgrid/languages
and/wp-content/languages
(just in case) - Add this code to my functions.php file:
$lang = TEMPLATE_PATH . '/languages'; load_theme_textdomain('newsgrid', $lang)
But text remains in english, what I did forget?
UPDATE
This is how translations look in my theme files:
<?php _e( 'This is somewhat embarrassing, isn’t it?', 'siiimple' ); ?>
<?php wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'siiimple') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>')); ?>
I changed files name in all places to siiimple-es_ES
but still not working