child theme and localization
-
Hi there,
I wrote a child theme of twentythirtheen, and everything is working good except custom strings that I cannot get translated.
Here what I’ve done so far:
– defined default language in wp-config
– created it_IT.po and translated, generated .mo
– put both in languages folder of my child theme
– in my functions loaded text domain:function smarti_base_setup() { load_child_theme_textdomain('smarti-base', get_stylesheet_directory_uri() . '/languages'); } add_action('after_setup_theme', 'smarti_base_setup');
– in my template used the _e and __ functions to translate.
I still see everything in english, am I missing something?
Thanks a lot
Andrea[Moderator Note: No bumping. If it’s that urgent, consider hiring someone.]
- The topic ‘child theme and localization’ is closed to new replies.