Hi, I have followed this thread: https://siteorigin.com/thread/translate-posted-on-and-posted-in/ But I hadnt have succes:. this is my style.css:
/* Theme Name: Vantage Premium Author: SiteOrgin Template: vantage Version: 1.0.0 */ @import url("../vantage/style.css");
—
And this is my functions.php:
<? // Make the theme translatable function portal_child_set_text_domain(){ load_theme_textdomain( 'vantage', get_stylesheet_directory() . '/languages' ); } add_action('after_setup_theme', 'portal_child_set_text_domain', 15);
—
This is an extract of my wp-config file:
define('WPLANG', 'es_MX');
This is how my ftp looks:
http://screencast.com/t/6TGd6hRda
The result is that my page changes the main menu configuration , the footer dissapaears, the blog is displayed in a full width, and the most important of all it is not translated to spanish.
This is my site with the parent theme: t.com/t/sooD2fsr8Am
This is mys ite with the child theme: encast.com/t/83MW7Mse
This is how my theme module looks in WordPress: http://screencast.com/t/gUbco0opHhP
Wel I think thats all the information I have until now, hope it helps you to discover what is going on.
Thanks in advance for your support!
Have a nice day!
Francisco
Corrections:
This is my site with the child theme: http://screencast.com/t/83MW7Mse
It is also important to mention, that I have already accomplished to translate the site, not thru a child theme but by inserting directly the es_MX.po and es_MX.po directly in the language folder of the parent theme (right here: http://screencast.com/t/OxQT04NIy) , but today I updated to WordPress 4.0 and it seems it broke the translation that I have already made.
Hi wplanters,
A few small changes needed here. In your child theme the functions.php file should look as follows:
The function name shouldn’t matter but the functions file does require a complete opening PHP
Hi Andrew!
Thanks for your response! I have already changed my functions.php file but the translation does not work. When I activate the child theme it keeps displaying the theme information in english (take a look: http://screencast.com/t/iwnEc5zDlXQ) and it also modifies some elements like the main menu and footer (but I think that this is because WordPress treat the child theme as a completely new theme so I have to configure those element again, is that correct?)
It is also important to mention that I have translated some lines of code directly in the editor module (comments.php) http://screencast.com/t/HvVHgT7v6Pf6 but I am afraid that those changes will be override when I updatae the theme. I decided to do this becuase I didn’t find those lines in the vantage.pot file when I created the es_MX.po and es_MX.mo file in the POedit.
Thanks for your support!
Have a nice day!
That’s correct, when you activate a child them you do need to redo the Customizer and menu assignments.
Please could you send through your child theme, zipped, to [email protected] and I’ll take a look ASAP. Thanks.
Hi Andrew,
I have already sent my child theme zipped please let me know if you find any clue.
Thanks in advance.
Francisco
Thanks, I’ll grab that ASAP and take a look.