- Posts: 25
- Thank you received: 0
All questions about EDocman extension
Show Number of Documents Language Suggestion
- Aaron Pressel
- Topic Author
- Offline
- Junior Member
Less
More
4 years 11 months ago #124959
by Aaron Pressel
Show Number of Documents Language Suggestion was created by Aaron Pressel
Hi All,
Love the extension and all of the updates!
I have "Show Number od Documents" clicked to yes in the "Category View" area of the "Themes" tab in configuration.
When there is 1 document is displays "1 Document" when there are multiple documents it displays "2 Documents, 3 Documents, etc". When there are 0 documents it displays "0 Document" where the more natural way to express that in English would be "0 Documents"
Is there a way for me to change that and if so how. If there is not a way then I would like to suggest that for a future update.
Thanks again for the awesome work!
Aaron
Love the extension and all of the updates!
I have "Show Number od Documents" clicked to yes in the "Category View" area of the "Themes" tab in configuration.
When there is 1 document is displays "1 Document" when there are multiple documents it displays "2 Documents, 3 Documents, etc". When there are 0 documents it displays "0 Document" where the more natural way to express that in English would be "0 Documents"
Is there a way for me to change that and if so how. If there is not a way then I would like to suggest that for a future update.
Thanks again for the awesome work!
Aaron
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12548
- Thank you received: 1625
4 years 11 months ago #124983
by Mr. Dam
Replied by Mr. Dam on topic Show Number of Documents Language Suggestion
Hi,
You can solve this small issue by following below solution
1. Open file: root -> components -> com_edocman -> view -> common -> categories.php
2. Find code
and change to
Thanks
Dam
You can solve this small issue by following below solution
1. Open file: root -> components -> com_edocman -> view -> common -> categories.php
2. Find code
Code:
<small>( <?php echo $category->total_documents ;?> <?php echo $category->total_documents > 1 ? JText::_('EDOCMAN_DOCUMENTS') : JText::_('EDOCMAN_DOCUMENT') ; ?> )</small>
and change to
Code:
<small>( <?php echo $category->total_documents ;?> <?php echo $category->total_documents != 1 ? JText::_('EDOCMAN_DOCUMENTS') : JText::_('EDOCMAN_DOCUMENT') ; ?> )</small>
Thanks
Dam
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam
Support
Documentation
Information
Copyright © 2024 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.