Skip to content

Commit c665286

Browse files
committed
Reformat numbers in translators note
1 parent 7a75758 commit c665286

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/create-theme/theme-token-processor.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ public function process_tokens() {
3333
if ( '#tag' === $token_type ) {
3434
$this->increment++;
3535
$this->text .= '%' . $this->increment . '$s';
36+
$token_label = $this->increment . '.';
3637

3738
if ( 1 !== $this->increment ) {
3839
$this->translators_note .= ', ';
3940
}
4041

4142
if ( $is_tag_closer ) {
4243
$this->tokens[] = "</{$token_name}>";
43-
$this->translators_note .= '%' . $this->increment . "\$s is the end of a '" . $token_name . "' HTML element";
44+
$this->translators_note .= $token_label . " is the end of a '" . $token_name . "' HTML element";
4445
} else {
4546
$token = '<' . $token_name;
4647
$attributes = $this->p->get_attribute_names_with_prefix( '' );
@@ -52,7 +53,7 @@ public function process_tokens() {
5253

5354
$token .= '>';
5455
$this->tokens[] = $token;
55-
$this->translators_note .= '%' . $this->increment . "\$s is the start of a '" . $token_name . "' HTML element";
56+
$this->translators_note .= $token_label . " is the start of a '" . $token_name . "' HTML element";
5657
}
5758
} else {
5859
// Escape text content.

0 commit comments

Comments
 (0)