Would it be possible to edit the counter with translation ?
I'm french and most of my visitors are french, I can translate the whole project in french but I dont know where I have to edit the translation, wich files ?
Or there is a translation patch for this module ?

Thanx, eRazor1974

Comments

erazor1974 created an issue.

RokSiEu’s picture

Module is already multilingual, you just need to make sure that the strings located in "modules\counter\src\Plugin\Block\CounterBlock.php" inside t() method are recognised by Drupal translation system.
In order for the translation system to add your translatable string, the t() function must run at least once in a non-standard language. To achieve that, you will need to switch the language of the site to one you are going to translate into and then visit the page that displays the string.

Then navigate to admin/config/regional/translate and search for string, ex: "Unpublished Nodes:", keep in mind that translation system is case sensitive and also don't forget to include colon at the end (if there is any).