I'm trying to translate a WordPress template. I went to language files, there were already 3 languages so I copied one of it (es_ES.po in my case), then opened that copy with Poedit and started translating to my language (Arabic). After finishing the translation, I changed the WordPress language from the dashboard, but the language didn't change in the template, it kept being English. Any idea why this happens?
These are the language instructions from functions.php:
load_theme_textdomain( 'mundothemes', get_template_directory() . '/idiomas' ); $locale = get_locale(); $locale_file = get_template_directory() . "/idiomas/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file );
and here is a screenshot of the language folder: