In the admin side just call the custom variable like so and it works and the variable has been translated.
%STR_TOTAL_VOTERS%'
Maybe it would be better that all the parts would be php-templates but that would need a lot of refactoring. This is maybe the easiest workaround for the translations for now. These filters could be used of course for anything else but are handy also for the translations.
Noticed that translations can't be done with this plugin without modifying the plugin.
I added some filters for the plugin like so.
After this you can register translations in the php side. Here is an example for that. Filter in theme
In the admin side just call the custom variable like so and it works and the variable has been translated.
Maybe it would be better that all the parts would be php-templates but that would need a lot of refactoring. This is maybe the easiest workaround for the translations for now. These filters could be used of course for anything else but are handy also for the translations.
I hope this helps you too. 👍