- Posts: 238
- Thank you received: 4
Bug? Singular and Plural expression not correct
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
9 years 7 months ago - 9 years 7 months ago #86433
by Patrick
Bug? Singular and Plural expression not correct was created 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:
Maybe these two should be switched:
???
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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
Support
Documentation
Information
Copyright © 2026 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.