failed to open stream: Permission denied warning while load_textdomain

If you want to use load_textdomain you must also specify the file name:

function my_custom_locale() 
{
    load_textdomain('my-name', get_stylesheet_directory().'/languages/my-name-
    '.get_locale().'.mo');
}
add_action('after_setup_theme', 'my_custom_locale');

In my example I added custom translations used in additional template files placed inside the theme-child folder, where I also added the languages files folder (es. my-name-it_IT.mo, my-name-en_GB.mo).

I added the code in the function.php file of the child-theme.

tech