Skip to content

Commit

Permalink
Ensure we have translations to the readme files
Browse files Browse the repository at this point in the history
  • Loading branch information
bordoni committed Sep 22, 2023
1 parent bb320c2 commit 3fcb155
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions checks/readme.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function check_for_default_text() {
) {
return new Notice(
'default_readme_text',
'The readme.txt appears to contain default text.'
__( 'The readme.txt appears to contain default text.', 'plugin-check' )
);
}
}
Expand All @@ -80,7 +80,8 @@ function check_for_warnings() {
return new Warning(
'readme_parser_warnings',
sprintf(
'The following readme parser warnings were detected: %s',
/* translators: %1$s: list of warnings */
__( 'The following readme parser warnings were detected: %1$s', 'plugin-check' ),
esc_html( implode( ', ', array_keys( $this->readme->warnings ) ) )
)
);
Expand All @@ -98,7 +99,7 @@ public function check_stable_tag() {
if ( 'trunk' === $stable_tag ) {
return new Error(
'trunk_stable_tag',
"It's recommended not to use 'Stable Tag: trunk'."
__( "It's recommended not to use 'Stable Tag: trunk'.", 'plugin-check' )
);
}

Expand Down

0 comments on commit 3fcb155

Please sign in to comment.