Skip to content

Commit 1db17e0

Browse files
committed
Translate doing it wrong messages
1 parent 0b5efd8 commit 1db17e0

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

src/wp-includes/html-api/class-wp-html-template.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,8 @@ private static function process( self $template, WP_HTML_Processor $processor ):
226226
_doing_it_wrong(
227227
__CLASS__ . '::render',
228228
sprintf(
229-
'Unused replacement key: %s',
229+
/* translators: %s: The unused replacement key name. */
230+
__( 'Unused replacement key: %s.' ),
230231
$key
231232
),
232233
'7.1.0'
@@ -278,7 +279,8 @@ private static function process_placeholder(
278279
_doing_it_wrong(
279280
__CLASS__ . '::render',
280281
sprintf(
281-
'Missing replacement for placeholder: %s',
282+
/* translators: %s: The placeholder name. */
283+
__( 'Missing replacement for placeholder: %s.' ),
282284
$placeholder
283285
),
284286
'7.1.0'
@@ -321,7 +323,8 @@ private static function process_placeholder(
321323
_doing_it_wrong(
322324
__CLASS__ . '::render',
323325
sprintf(
324-
'Invalid replacement type for text placeholder: %s',
326+
/* translators: %s: The placeholder name. */
327+
__( 'Invalid replacement type for text placeholder: %s.' ),
325328
$placeholder
326329
),
327330
'7.1.0'
@@ -511,7 +514,8 @@ private static function process_attribute_value(
511514
_doing_it_wrong(
512515
__CLASS__ . '::render',
513516
sprintf(
514-
'Missing replacement for placeholder: %s',
517+
/* translators: %s: The placeholder name. */
518+
__( 'Missing replacement for placeholder: %s.' ),
515519
$placeholder
516520
),
517521
'7.1.0'
@@ -527,7 +531,8 @@ private static function process_attribute_value(
527531
_doing_it_wrong(
528532
__CLASS__ . '::render',
529533
sprintf(
530-
'Template cannot be used in attribute context: %s',
534+
/* translators: %s: The placeholder name. */
535+
__( 'Template cannot be used in attribute context: %s.' ),
531536
$placeholder
532537
),
533538
'7.1.0'
@@ -557,7 +562,8 @@ private static function process_attribute_value(
557562
_doing_it_wrong(
558563
__CLASS__ . '::render',
559564
sprintf(
560-
'Invalid replacement type for attribute placeholder: %s',
565+
/* translators: %s: The placeholder name. */
566+
__( 'Invalid replacement type for attribute placeholder: %s.' ),
561567
$placeholder
562568
),
563569
'7.1.0'

0 commit comments

Comments
 (0)