Translating download counts string at frontend not possible

Viewing 4 posts - 1 through 4 (of 4 total)
#193956

Juan Ascanio
Participant

Hi
At the frontend, beneath the “Download” button of an item view, there is this table with file details. Namely Download + (download count value), Creation date, File size, and so on.

The string Download which accompanies the downloads count value should be “Downloads”, otherwise is very confusing to users. See image below.

Because my site language is Spanish, I’ve used Loco Translate to translate it to “Descargas” (Spanish for “Downloads”). But the result is that I get both button text and “Download(s)” count string translated.

So I conclude that, at a code level, both items share the same string. The button should display the text “Download”, and the number of downloands string should be “Downloads”.

How can I make the string for download counts, currently displayed as “Download”, to be independent from that of the button so I can translate it into Spanish?

Thanks in advance for your reply.

Regards,
Juan

#193990

Tahasin
Moderator

Hello, Juan

I hope this message finds you in good health and thanks for contacting us.

Are you referring to this issue? Kindly check and let me know.

Regards

#193995

Juan Ascanio
Participant

Hi, Tahasin
Thanks for your reply.
Yes. That’s it.
Any way to solve it?

Regards,
Juan

#194000

Tahasin
Moderator

If you are using the Default Page Template, then go to /wp-content/plugins/download-manager/src/Package/views/page-templates/page-template-default.php and change Download to Downloads or what you want to use as per your requirement.

On line 16 you will find Download, you have to convert it to Downloads

<li class="list-group-item d-flex justify-content-between align-items-center [hide_empty:download_count]">
Downloads
<span class="badge">6973</span>
</li>

I hope this will help you to translate the Download Count.

Regards

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.