HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Here is how to Internationalize the Peregrine Badges Plugin. (change definitions).
create a file if it doesn't exist called config/locale.php or just add the definitions to your config/locale.php if it exists.
cut and paste the following in it.
<?php if (!defined('APPLICATION')) exit(); $Definition['My Badges'] ='My Badges'; $Definition['Total Points: '] ='Total Points: '; $Definition['Anniversary Number %s'] ='Anniversary Number %s'; $Definition['Comment %s'] = 'Comment %s'; $Definition['Thanks %s'] = 'Thanks %s'; $Definition['Likes %s'] = 'Likes %s';
so if you want to change the way hovering and titles display you would do something like this, by changing the right hand side of the equation.
$Definition['My Badges'] ='All My Badges'; $Definition['Total Points: '] ='My Total Points: '; $Definition['Anniversary Number %s'] ='The Anniversary Number %s'; $Definition['Comment %s'] = 'The Comment %s'; $Definition['Thanks %s'] = 'The Thanks %s'; $Definition['Likes %s'] = 'The Likes %s';
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
3
Comments
Are these the only features of the badge? I am trying to know what features the badge has.
Yes and No.
Peregrine Badges was the only thing available at one time.
Now there are several other add-ons with more features.
Please read the description in the plugin a few times and you will be able to answer your own question
and try a different add-on if you want alot more features.
If you are using vanilla 2.0.18.x - upgrade to vanilla 2.1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
thanks @peregrine i will do just that.