Bad use of esc_html_e causes no translation
-
Look at this lines:
templates/emails/mainwp-site-health-monitoring-email.php:68
templates/emails/mainwp-site-health-monitoring-email.php:70
templates/emails/mainwp-site-health-monitoring-email.php:89
templates/emails/mainwp-site-health-monitoring-email.php:91This sentence is poorly constructed, cause concatenated before translation:
<?php esc_html_e( 'The site health check shows that your site ' . $site_name . ' (' . $site_url . ') health is ', 'mainwp' ); ?>
First you must translate and then concatenate, for example something like this:
<?php printf( esc_html__( 'The site health check shows that your site %1$s (%2$s) health is ', 'mainwp' ), $site_name, $site_url); ?>
- The topic ‘Bad use of esc_html_e causes no translation’ is closed to new replies.