Warnings when checking native plugin templates with "Theme Check" plugin

Home Forums Welcome! Pre-Sales Questions Warnings when checking native plugin templates with "Theme Check" plugin

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1109173
    WP User
    Guest

    Hi,

    After checking native plugin files with “Theme Check” plugin (
    https://wordpress.org/plugins/theme-check/) I got:

    1) First warning:

    WARNING: Found a translation function that is missing a text-domain. Function _e, with the arguments ‘the-events-calendar’

    related to modules/meta/venus.php
    and modules/meta/organizer.php

    <?php esc_html_e( tribe_get_venue_label_singular(), ‘the-events-calendar’ ) ?>

    2) Second warning:

    WARNING: Found a translation function that has an incorrect number of arguments. Function _n, with the arguments ‘View 1 %1$s’, ‘View All %2$s %3$s’, total_events, ‘the-events-calendar’

    related to month/single-day.php

    $view_all_label = sprintf(_n('View %1$s %2$s', 'View All %1$s %2$s', $day['total_events'], 'the-events-calendar'), $day['total_events'], $events_label);

    Could you please write the most recommended way to fix it?
    The fixes are necessary to pass the theme check and upload the theme public on wordpress.org.

    Thanks!

    #1109210
    Brian
    Member

    Hi,

    Thanks for using the Events Calendar.

    Here on the pre-sales forum, I’m afraid we do not provide support.

    I see you have posted on WordPress.org and we will respond there and I am closing this thread.

    https://wordpress.org/support/topic/warnings-when-checking-native-plugin-templates-with-theme-check-plugin

    Thanks again!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Warnings when checking native plugin templates with "Theme Check" plugin’ is closed to new replies.