• Resolved Denis Ryabov

    (@dryabov)


    Could you replace a bunch of codes like
    _e('Whats New in BPS Pro 12/12.1/12.2', 'bulletproof-security');
    in admin/core/core.php to something like
    printf( __('Whats New in BPS Pro %s', 'bulletproof-security'), '12/12.1/12.2' );
    to simplify translations of your plugin to other languages (it will be necessary to translate one string instead of 60+ times copy-paste the same text)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AITpro

    (@aitpro)

    Yep, no problem. Thanks for taking the time and trouble to do translations for BPS. ??

    The code will be changed to this in BPS .54.3:

    echo sprintf( __( '<a href="%2$s" target="_blank" title="Link Opens in New Browser Window">Whats New in BPS Pro %1$s</a>' ), '12.4/12.4.1', 'https://www.ait-pro.com/aitpro-blog/5287/bulletproof-security-pro/whats-new-in-bulletproof-security-pro-12-4/' );
    
    echo sprintf( __( '<a href="%2$s" target="_blank" title="Link Opens in New Browser Window">Whats New in BPS Pro %1$s</a>' ), '12/12.1/12.2', 'https://www.ait-pro.com/aitpro-blog/5265/bulletproof-security-pro/whats-new-in-bulletproof-security-pro-12/' );
    Plugin Author AITpro

    (@aitpro)

    Completed in BPS .54.3 released 1-25-2017

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Simplify translations’ is closed to new replies.