* @see */ public static function loadTextDomain() { // language file with localization exists if (self::load(apply_filters('plugin_locale', get_locale(), ''))) { // added 3rd (empty) parameter to prevent "Fatal error: Uncaught ArgumentCountError: Too few arguments […]" // 2020-10-26T1609+0100 return; } // fallback to english self::load("en_GB"); } /** * Loads a specific text domain. * * @author Stefan Herndler * @since 1.5.1 * @param string $p_str_LanguageCode Language Code to load a specific text domain. * @return bool * * Edited for: * 2.1.6 conform to WordPress plugin language file name scheme by using load_plugin_textdomain() * @see wp-includes/l10n.php:857 * “The .mo file should be named based on the text domain with a dash, and then the locale exactly.” */ private static function load($p_str_LanguageCode) { return load_plugin_textdomain( MCI_Footnotes_Config::C_STR_PLUGIN_NAME, false, // This argument only fills the gap left by a deprecated argument (since WP2.7). MCI_Footnotes_Config::C_STR_PLUGIN_NAME . '/languages' // The plugin basedir is provided. ); } }