Bug? Singular and Plural expression not correct

  • Patrick
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 7 months ago - 9 years 7 months ago #86433 by Patrick
Hello

If I list the event categories, EB shows the number of events each category like this:
Event-Name (10 event).

I noticed, that EB seems not to use the plural. If there is more than one event, the word events should be used, not "event".

It looks like in categories.php this code is not working:
Code:
<small>( <?php echo $category->total_events ;?> <?php echo $category->total_events == 1 ? JText::_('EB_EVENTS') : JText::_('EB_EVENT') ; ?> )</small>

Maybe these two should be switched:
Code:
JText::_('EB_EVENTS') : JText::_('EB_EVENT')

???

In the file de-DE.com_eventbooking.ini I have:
EB_EVENT="Termin" (this is correct for singular = 1 event)
EB_EVENTS="Termine" (this is correct for plural, 2 ore more events).

But in the frontend it looks like this:



Both times it should read "Termine"

Regards
Patrick

EB 2.10.0
Joomla 3.6.2
Last edit: 9 years 7 months ago by Patrick.

Please Log in or Create an account to join the conversation.

More
9 years 7 months ago #86473 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Bug? Singular and Plural expression not correct
Hi Patrick

Actually, it is a bug in the extension. I will update the download package with this fix shortly. For now, please get this file, unzip it, upload to components/com_eventbooking/view/common/tmpl folder and the issue will be sorted

Regards,

Tuan
The following user(s) said Thank You: Patrick

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc