theme-sniffer icon indicating copy to clipboard operation
theme-sniffer copied to clipboard

WARNING: Found a translation function that is missing a text-domain in the file

Open akbet opened this issue 2 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

The Plugin incorrect check "text-domain"

To Reproduce Steps to reproduce the behavior:

1 Download Gormet theme from here: https://ordasvit.com/index.php?option=com_os_cck&task=fileDownload&fid=128&field=239&eiid=540

  1. Run check Plugin for it
  2. First error will:

WARNING: Found a translation function that is missing a text-domain in the file inc/class-tgm-plugin-activation.php. Function _n_noop, with the arguments 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'.

row in file look like: 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', $this->domain ),

  1. $this->domain - there "theme name" -> gourmet 5 If I replace $this->domain to "gourmet" - the error same

exactly all other errors

akbet avatar Aug 09 '23 15:08 akbet