In the development of the WordPress theme, when checking the theme check plugin, such an error is displayed

Warning: More than one text-domain is being used in this theme. WordPress.org language packs. The domains found are irfas, wp-bootstrap-navwalker

Warning: this topic uses several text domains. This means that the theme will not be compatible with the WordPress.org language packs.

Maybe someone knows where and how to find and delete this text domain wp-bootstrap-navwalker? I looked at wp-bootstrap-navwalker.php but found nothing there.

    1 answer 1

    For all .php theme files, you need to search on 'wp-bootstrap-navwalker' . Such a text string should contain a gettext function of type __() , esc_html__() , etc. Example:

     $next = __( 'Next', 'wp-bootstrap-navwalker' ); 

    You need to replace the wp-bootstrap-navwalker with irfas . Then update the .po file from the source code, translate the new lines picked up from the wp-bootstrap-navwalker text domain, compile it into .mo. To work with files .po and .mo there is an editor poedit.

    • I haven’t worked with the .mo and .po files yet, I don’t know what is there and how, but I searched for strings of this type $ next = __ ('Next', 'wp-bootstrap-navwalker'); and replaced in the files nav-menus.php and class-wp-bootstrap-walker.php all the values ​​of 'wp-bootstrap-navwalker' with 'irfas'. The problem is gone and now it became INFO: Only one text-domain is being used in this theme. WordPress.org language packs. The domain found is irfas - Dinara Davydova
    • $ fallback_output. = '<li> <a href="'. esc_url( admin_url(' irfas')).'" title="'. esc_attr__( 'Add a menu',' irfas').'"> '. esc_html __ ('Add a menu', 'irfas'). '</a> </ li>'; $ fallback_output. = '</ ul>'; - Dinara Davydova
    • The theme folder should be called irfas, then there will be no such message - KAGG Design
    • it is called that. And yes, I forgot that I called her irfas.loc - Dinara Davydova