• Resolved vencedor

    (@vencedor)


    It will be very helpful if themecheck can show in which file it found the issue.

    For example, the dev team should update textdomain.php
    at this point:

    $this->error[] = '<span class="tc-lead tc-warning">' . __( 'WARNING', 'theme-check' ) . '</span>: '
    . sprintf (
    __( 'Found a translation function that is missing a text-domain. Function %1$s, with the arguments %2$s in %3$s', 'theme-check' ),
    '<strong>' . $func . '</strong>',
    '<strong>' . implode(', ',$args) . '</strong>',
    '<strong>' . htmlentities(var_export($php_key,true).var_export($token,true),ENT_COMPAT,'UTF-8'). '</strong>');

    Now it will show in which file it found the issue with text domains.
    The same logic can be used everywhere.

    • This topic was modified 8 years ago by vencedor.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Text Domain :: Helpful feature’ is closed to new replies.