Home › Forums › Calendar Products › Events Calendar PRO › Category label not shown in single event view
- This topic has 5 replies, 3 voices, and was last updated 10 years, 7 months ago by
Support Droid.
-
AuthorPosts
-
August 22, 2015 at 2:16 pm #998208
Oliver
ParticipantHi,
in the latest version of TEC I might found a bug in the single event view.
The category label is not shown when there is more that one category selected.
Example:
A) Only one category (works):
https://www.dropbox.com/s/nvs7q0mc4n4p1sg/Screenshot%202015-08-22%2023.12.36.png?dl=0
https://www.dropbox.com/s/js1hxf6rgyhemd5/Screenshot%202015-08-22%2023.13.23.png?dl=0B) More than one category (don’t work):
https://www.dropbox.com/s/zb9bzz218xb3l3k/Screenshot%202015-08-22%2023.14.16.png?dl=0
https://www.dropbox.com/s/hucvmcocrpds36l/Screenshot%202015-08-22%2023.14.42.png?dl=0Do you have any idea how to fix this?
Best regards,
OliverAugust 24, 2015 at 7:15 am #998390Barry
MemberHi Oliver,
This seems to be a translation problem.
In this particular scenario, we try to pull in the translation of %s Categories with an _n() call (which lets us switch between singular and plural forms).
However, although we do have a translation in most languages – German included – for %s Categories it has not been setup in such a way that it can be used through _n(). I don’t see an obvious way to get around this on our translation site and it may be we need to reconfigure a couple of things on our end before we can make that happen.
Please bear with me and we’ll see what we can do to fix this 🙂
August 24, 2015 at 9:59 am #998476Barry
MemberHi Oliver,
A change to how we use that string within the code should be available in the next release – allowing it to be correctly translated. Until then, could you add this snippet to your theme’s functions.php file (or some other suitable location) and see if that helps?
function temp_fix_998208( $text ) { return str_replace( '<dt>:</dt>', '<dt>EVENT CATEGORIES:</dt>', $text ); } add_filter( 'tribe_get_event_categories', 'temp_fix_998208' );Of course, modify EVENT CATEGORIES to whatever makes sense here.
August 24, 2015 at 12:50 pm #998517Oliver
ParticipantHi Barry!
That works like a charm! Thanks for the quick bugfix!
Cheers,
OliverAugust 24, 2015 at 1:38 pm #998528Barry
MemberMy pleasure (and apologies for the inconvenience) 🙂
September 8, 2015 at 7:05 am #1002871Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Category label not shown in single event view’ is closed to new replies.
