Home › Forums › Plugin Support › AffiliateWP Performance Bonuses › Translate & Loading Bar

-
-
November 18, 2019 at 10:15 pm #11067
Hey,
is there any way to translate the text in the plugin?
Also, how could you change the frontend looks of the loading bar, talking about the colour?
Thank youRegards
-
November 19, 2019 at 2:24 pm #11076
Regarding the Bonus Progress Bar, here’s the CSS code you need to add to your theme to change the colors:
/* HTML 5 Progress Bar */ .affwp-pb-bonus-progress progress[value]{ /* For IE10 */ color: #bbb; } /* HTML 5 Progress Bar Container */ .affwp-pb-bonus-progress progress[value]::-webkit-progress-bar {background-color: #eee;} /* HTML 5 Progress Bar Value */ .affwp-pb-bonus-progress progress[value]::-webkit-progress-value {background-color: #bbb;}
So, all you have to do is change the color codes above to your liking.
Regarding the translation, the current version of Performance Bonuses does not have full translation capabilities yet. We are working on adding translation files to it now, but we don’t have an estimate for when this will be completed at the moment.
However, you can use a plugin such as Loco Translate or WPML to translate it, since the plugin was coded with translatable strings (text).
-
November 19, 2019 at 4:41 pm #11077
Hi there,
thanks for your input regarding the code. I’m not the big coder but I realized your solution deos not work for mozilla firefox. I did some research and just added this/* For Firefox*/ .affwp-pb-bonus-progress progress[value]::-moz-progress-bar { background-color:#red;}
Thought I’d share it so anyone having the same problems can save some time.
Regarding the loco translate plugin;
The strings on the front end are not included in the translation data.
This was my problem.Regards
-
November 20, 2019 at 3:04 am #11080
Thanks, I’ll make the adjustment.
Did Loco Translate detect any of the translated strings in Performance Bonuses?
Or are there specific strings in the Bonuses tab of the Affiliate Area, that you wish to translate?
-
November 20, 2019 at 3:33 am #11081
Hi,
Yes Loco Translate did detect the strings but not all of them. PEr Example, the sentence on the front end (To earn this bonus, you must Refer 25 Sales) couldn’t be found by loco translate.
-
November 22, 2019 at 1:28 am #11094
Alright, I’ll make those strings translatable and send you the update.
I’ll follow up with you on this soon.
-
November 22, 2019 at 2:34 am #11095
Thanks for helping!
-
November 26, 2019 at 12:45 am #11120
Hello again,
I’ve updated Performance Bonuses to 1.0.6 to include those translated strings. This is an early release, so keep in mind that I will be adding other features and adjustments before it’s released. I sent you the download link via private message.
Please download it before the link expires, and let me know how it works on your site.
Thanks
-
-
AuthorPosts
- You must be logged in to reply to this topic.