File download counter in OJS 3

I am also using the default theme.

1. I have added this code in templates/frontend/objects/article_summary.tpl

   	{assign var=galleys value=$article->getGalleys()}
<img src="https://ojsdergi.com/ojsicons/gor.png"> <b>{translate key="makale.goruntuleme.sayisi"}:</b> {$article->getViews()}

{if $galleys}
    {foreach from=$galleys item=galley name=galleyList}
       / <img src="https://ojsdergi.com/ojsicons/pdf.png"> <b>{translate key="makale.indirme.sayisi"}:</b> {$galley->getViews()}
    {/foreach}
{/if}

image

2. I have added the following codes to the language file for translation.
locale/en_US/locale.po


msgid "makale.goruntuleme.sayisi"
msgstr "Abstract views"

msgid "makale.indirme.sayisi"
msgstr "PDF downloads"