public function overrideLoadTextdomain( $override, $domain, $mofile ) {
		global $l10n;

		// Check if the domain is one of our framework domains.
		if ( 'hybrid-core' === $domain ) {

			// Get the theme's textdomain.
			$theme_textdomain = $this->parentTextdomain();

			// If the theme's textdomain is loaded, use its translations instead.
			if ( $theme_textdomain && isset( $l10n[ $theme_textdomain ] ) ) {

				$l10n[ $domain ] = $l10n[ $theme_textdomain ];
			}

			// Always override.  We only want the theme to handle translations.
			$override = true;
		}

		return $override;
	}
public function overrideLoadTextdomain( $override, $domain, $mofile ) {
		global $l10n;

		// Check if the domain is one of our framework domains.
		if ( 'hybrid-core' === $domain ) {

			// Get the theme's textdomain.
			$theme_textdomain = $this->parentTextdomain();

			// If the theme's textdomain is loaded, use its translations instead.
			if ( $theme_textdomain && isset( $l10n[ $theme_textdomain ] ) ) {

				$l10n[ $domain ] = $l10n[ $theme_textdomain ];
			}

			// Always override.  We only want the theme to handle translations.
			$override = true;
		}

		return $override;
	}
public function overrideLoadTextdomain ( $ override , $ domain , $ mofile ) { global $ l10n ; // Check if the domain is one of our framework domains. if ( 'hybrid-core' === $ domain ) { // Get the theme's textdomain. $ theme_textdomain = $ this -> parentTextdomain ( ) ; // If the theme's textdomain is loaded, use its translations instead. if ( $ theme_textdomain && isset ( $ l10n [ $ theme_textdomain ] ) ) { $ l10n [ $ domain ] = $ l10n [ $ theme_textdomain ] ; } // Always override.  We only want the theme to handle translations. $ override = true ; } return $ override ; }
Overrides the load textdomain functionality when `hybrid-core` is
the domain in use. The purpose of this is to allow theme translations
to handle the framework's strings.  What this function does is sets
the `hybrid-core` domain's translations to the theme's. That way,
we're not loading multiple of the same MO files.

@since  5.0.0
@access public
@global array   $l10n
@param  bool    $override
@param  string  $domain
@param  string  $mofile
@return bool
Overrides the load textdomain functionality when hybrid - core is the domain in use . The purpose of this is to allow theme translations to handle the framework s strings . What this function does is sets the hybrid - core domain s translations to the theme s . That way we re not loading multiple of the same MO files .