I am using Yoast' method to build an HTML site map. But it needs to be translated.
It uses a page template page-sitemap.php that uses a template part
<?php get_template_part('/partials/sitemap'); ?>
In this template part I...
load_textdomain( 'site-map', TEMPLATEPATH.'/partials/languages' );
The path is right for I list the files of the folder TEMPLATEPATH.'/partials/languages' and it shows my language files.
As you see my domain name is 'site-map'. My .mo
file is site-map-fr_FR.mo
.
Why can't it be loaded?
Thanks for any clue, nicolas
load_textdomain
returns boolean value. Can you check what it returns in your case?