Translating download counts string at frontend not possible

in Download Manager Free

Viewing 4 posts - 1 through 4 (of 4 total)
Mar 14, 2024 at 5:48 pm
#193956
Participant
Juan Ascanio
OP

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

Mar 17, 2024 at 4:50 am
#193990
Moderator
Tahasin
Staff

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

Mar 17, 2024 at 12:47 pm
#193995
Participant
Juan Ascanio
OP

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

Regards,
Juan

Mar 18, 2024 at 4:45 am
#194000
Moderator
Tahasin
Staff

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)

The topic "Translating download counts string at frontend not possible" is closed to new replies.