Theme check error tgmpa

, 'tgmpa' I have replaced it using sublime text Artificial Intelligence→

tgmpa

But I am still getting this warning →

Warning: More than one text-domain is being used in this theme. This means the theme will not be compatible with WordPress.org language packs.
The domains found are charito, tgmpa

Looks like you missed few

1 Like

Yes, but what to do browsing whole code looks like impossible, and doing so will also not guarantee that I see the left ones.

Search as tgmpa

1 Like

Could this be an issue →

public function load_textdomain() {
  469: 			if ( is_textdomain_loaded( 'tgmpa' ) ) {
  470  				return;
  471  			}
  ...
  474  				// Plugin, we'll need to adjust the file name.
  475  				add_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10, 2 );
  476: 				load_theme_textdomain( 'tgmpa', dirname( __FILE__ ) . '/languages' );
  477  				remove_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10 );
  478  			} else {
  479: 				load_theme_textdomain( 'tgmpa', dirname( __FILE__ ) . '/languages' );
  480  			}
  481  		}

Yes also check others

1 Like

For Future users →

Fixing these lines in class-tgm-plugin-activation.php will fix the errors →

133  		/**
  ...
  343  					'This theme requires the following plugin: %1$s.',
  344  					'This theme requires the following plugins: %1$s.',
  345: 					'tgmpa'
  346  				),
  347  				'notice_can_install_recommended'  => _n_noop(
  ...
  349  					'This theme recommends the following plugin: %1$s.',
  350  					'This theme recommends the following plugins: %1$s.',
  351: 					'tgmpa'
  352  				),
  353  				'notice_ask_to_update'            => _n_noop(
  ...
  355  					'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.',
  356  					'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.',
  357: 					'tgmpa'
  358  				),
  359  				'notice_ask_to_update_maybe'      => _n_noop(
  ...
  361  					'There is an update available for: %1$s.',
  362  					'There are updates available for the following plugins: %1$s.',
  363: 					'tgmpa'
  364  				),
  365  				'notice_can_activate_required'    => _n_noop(
  ...
  367  					'The following required plugin is currently inactive: %1$s.',
  368  					'The following required plugins are currently inactive: %1$s.',
  369: 					'tgmpa'
  370  				),
  371  				'notice_can_activate_recommended' => _n_noop(
  ...
  373  					'The following recommended plugin is currently inactive: %1$s.',
  374  					'The following recommended plugins are currently inactive: %1$s.',
  375: 					'tgmpa'
  376  				),
  377  				'install_link'                    => _n_noop(
  378  					'Begin installing plugin',
  379  					'Begin installing plugins',
  380: 					'tgmpa'
  381  				),
  382  				'update_link'                     => _n_noop(
  383  					'Begin updating plugin',
  384  					'Begin updating plugins',
  385: 					'tgmpa'
  386  				),
  387  				'activate_link'                   => _n_noop(
  388  					'Begin activating plugin',
  389  					'Begin activating plugins',
  390: 					'tgmpa'
  391  				),
  392  				'return'                          => __( 'Return to Required Plugins Installer', 'blewspaper' ),
  ...
  467  		 */
  468  		public function load_textdomain() {
  469: 			if ( is_textdomain_loaded( 'tgmpa' ) ) {
  470  				return;
  471  			}
  ...
  474  				// Plugin, we'll need to adjust the file name.
  475  				add_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10, 2 );
  476: 				load_theme_textdomain( 'tgmpa', dirname( __FILE__ ) . '/languages' );
  477  				remove_action( 'load_textdomain_mofile', array( $this, 'correct_plugin_mofile' ), 10 );
  478  			} else {
  479: 				load_theme_textdomain( 'tgmpa', dirname( __FILE__ ) . '/languages' );
  480  			}
  481  		}
  ...
  497  		public function correct_plugin_mofile( $mofile, $domain ) {
  498  			// Exit early if not our domain (just in case).
  499: 			if ( 'tgmpa' !== $domain ) {
  500  				return $mofile;
  501  			}
  ...
  524  		public function overload_textdomain_mofile( $mofile, $domain ) {
  525  			// Exit early if not our domain, not a WP_LANG_DIR load or if the file exists and is readable.
  526: 			if ( 'tgmpa' !== $domain || false === strpos( $mofile, WP_LANG_DIR ) || @is_readable( $mofile ) ) {
  527  				return $mofile;
  528  			}
  ...

remove 'tgmpa' with your text-domain.