Home Forums Plugin Support AffiliateWP Performance Bonuses Translate & Loading Bar

7 replies, 2 voices Last updated by  Christian Freeman 4 months, 1 week ago
  • jaeggiburger
    Participant
    @jaeggiburger
    #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 you

    Regards

  • Christian Freeman
    Participant
    @christianf
    #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).

  • jaeggiburger
    Participant
    @jaeggiburger
    #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

  • Christian Freeman
    Participant
    @christianf
    #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?

  • jaeggiburger
    Participant
    @jaeggiburger
    #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.

  • Christian Freeman
    Participant
    @christianf
    #11094

    Alright, I’ll make those strings translatable and send you the update.

    I’ll follow up with you on this soon.

  • jaeggiburger
    Participant
    @jaeggiburger
    #11095

    Thanks for helping!

  • Christian Freeman
    Participant
    @christianf
    #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

You must be logged in to reply to this topic.