Skip to content

Commit b6f98d8

Browse files
author
Soare Robert-Daniel
committed
chore: update labels
1 parent edc0c39 commit b6f98d8

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

classes/Visualizer/Module/Admin.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,13 +1348,21 @@ public function add_black_friday_data( $configs ) {
13481348
$is_expired = 'expired' === $status || 'active-expired' === $status;
13491349

13501350
if ( $is_pro ) {
1351+
// translators: %s is the discount percentage.
1352+
$config['plugin_meta_message'] = sprintf( __( 'Black Friday Sale - up to %s off', 'visualizer' ), '30%' );
13511353
// translators: %1$s - discount, %2$s - discount.
13521354
$message = sprintf( __( 'Upgrade your Visualizer Pro plan: %1$s off this week. Already on the plan you need? Renew early and save up to %2$s.', 'visualizer' ), '30%', '20%' );
13531355
$cta_label = __( 'See your options', 'visualizer' );
13541356
} elseif ( $is_expired ) {
1357+
// translators: %s is the discount percentage.
1358+
$config['upgrade_menu_text'] = sprintf( __( 'BF Sale - %s off', 'visualizer' ), '50%' );
1359+
// translators: %s is the discount percentage.
1360+
$config['plugin_meta_message'] = sprintf( __( 'Black Friday Sale - %s off', 'visualizer' ), '50%' );
13551361
$message = __( 'Your Visualizer Pro features are still here, just locked. Renew at a reduced rate this week.', 'visualizer' );
13561362
$cta_label = __( 'Reactivate now', 'visualizer' );
13571363
} else {
1364+
// translators: %s is the discount percentage.
1365+
$config['plugin_meta_message'] = sprintf( __( 'Black Friday Sale - %s off', 'visualizer' ), '60%' );
13581366
$config['title'] = __( 'Visualizer Pro: 60% off this week', 'visualizer' );
13591367
// translators: %s is the discount percentage.
13601368
$config['upgrade_menu_text'] = sprintf( __( 'BF Sale - %s off', 'visualizer' ), '60%' );
@@ -1367,12 +1375,7 @@ public function add_black_friday_data( $configs ) {
13671375
);
13681376

13691377
if ( ( $is_pro || $is_expired ) && ! empty( $pro_product_slug ) ) {
1370-
// translators: %s is the discount percentage.
1371-
$config['plugin_meta_message'] = sprintf( __( 'Black Friday Sale - up to %s off', 'visualizer' ), '30%' );
13721378
$config['plugin_meta_targets'] = array( $pro_product_slug );
1373-
} else {
1374-
// translators: %s is the discount percentage.
1375-
$config['plugin_meta_message'] = sprintf( __( 'Black Friday Sale - %s off', 'visualizer' ), '60%' );
13761379
}
13771380

13781381
$config['message'] = $message;

0 commit comments

Comments
 (0)