Skip to content

Commit

Permalink
Forgot translation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Apr 25, 2024
1 parent 3be746a commit 32fa2d8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ private function process_directives_args( string $html, array &$context_stack, a
if ( 'SVG' === $tag_name || 'MATH' === $tag_name ) {
if ( $p->get_attribute_names_with_prefix( 'data-wp-' ) ) {
/* translators: %s: SVG or MATH HTML tag. */
$message = sprintf( '%s tags are currently incompatible with the directives processing. Please refrain from adding directives to them.', $tag_name );
$message = sprintf( __( '%s tags are currently incompatible with the directives processing. Please refrain from adding directives to them.' ), $tag_name );
_doing_it_wrong( __METHOD__, $message, '6.6' );
}
$p->skip_to_tag_closer();
Expand All @@ -284,7 +284,7 @@ private function process_directives_args( string $html, array &$context_stack, a
*/
$unbalanced = true;
/* translators: %s: Tag that caused the error, could by any HTML tag. */
$message = sprintf( 'Due to an unbalanced %s tag in the processed HTML, the directives will not be server side processed, JS runtime still work, but there will be a layout shift.', $tag_name );
$message = sprintf( __( 'Due to an unbalanced %s tag in the processed HTML, the directives will not be server side processed, JS runtime still work, but there will be a layout shift.' ), $tag_name );
_doing_it_wrong( __METHOD__, $message, '6.6' );
break;
} else {
Expand Down

0 comments on commit 32fa2d8

Please sign in to comment.