All questions about EDocman extension

Show Number of Documents Language Suggestion

  • Aaron Pressel
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
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

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

More
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
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