not found message translation not working
-
For your information, I’m using your plugin (started with 3.6.1, updated 3.9.1) with list view ; my site is in French.
Upcoming events of a category page : when there’s no event, the message shows up in English. (bugs noticed since 3.6.1.)
=>No matching events listed under XXX. Please try viewing the full calendar for a complete list of events.
I checked the .po file, there is a translation for this string ; apparently __() is not working in this code below in tribe-template-factory.class.php (function nothing_found_notice) :
elseif ( ! empty( $tax_term ) && tribe_is_upcoming() ) { TribeEvents::setNotice( 'events-not-found', sprintf( __( 'No matching events listed under %s. Please try viewing the full calendar for a complete list of events.', 'tribe-events-calendar' ), $tax_term ) );
}
By the way, it’s the same notice text for elseif ( ! empty( $tax_term ) && tribe_is_upcoming() ) and elseif ( ! empty( $tax_term ) ).
I might be misunderstanding, but maybe it would be simpler to use only the latter ?Besides, I also get this :
Notice: Undefined variable: tribe in … /the-events-calendar/lib/tribe-template-factory.class.php on line 273
Notice: Trying to get property of non-object in …/the-events-calendar/lib/tribe-template-factory.class.php on line 273The variable $tribe is defined in this file under the function get_search_terms, and apparently is not global.
Thank you in advance.
- The topic ‘not found message translation not working’ is closed to new replies.