Skip to content

Commit

Permalink
Remove toLowerCase from postLabel because while this fixes the capita…
Browse files Browse the repository at this point in the history
…lization in english, it would be incorrect in other languages. Will have to explore if this exists somewhere already that would work for all languages.
  • Loading branch information
brentswisher committed Aug 24, 2019
1 parent 58d3e29 commit 03b2bfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class PostPublishModalPostpublish extends Component {
{
sprintf(
/* translators: %s: post type singular name */
__( 'Great Work! You\'ve just published your first %s. You can review it here to check for any mistakes, or start on a new %s.' ), postLabel.toLowerCase(), postLabel.toLowerCase()
__( 'Great Work! You\'ve just published your first %s. You can review it here to check for any mistakes, or start on a new %s.' ), postLabel, postLabel
)
}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function PostPublishModalPrepublish( {
} else {
prePublishBodyText = sprintf(
/* translators: %s: post type singular name */
__( 'Double-check your settings, then publish your %s.' ), postLabel.toLowerCase()
__( 'Double-check your settings, then publish your %s.' ), postLabel
);
}

Expand Down

0 comments on commit 03b2bfb

Please sign in to comment.