Skip to content

Commit

Permalink
Improve translators comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Nov 27, 2023
1 parent a480390 commit 2828b70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export default function Editor( { listViewToggleElement, isLoading } ) {
let title;
if ( hasLoadedPost ) {
title = sprintf(
// translators: A breadcrumb trail in browser tab. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
// translators: A breadcrumb trail for the Admin document title. %1$s: title of template being edited, %2$s: type of template (Template or Template Part).
__( '%1$s ‹ %2$s' ),
getTitle(),
POST_TYPE_LABELS[ editedPostType ] ??
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/routes/use-title.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function useTitle( title ) {
if ( title && siteTitle ) {
// @see https://github.com/WordPress/wordpress-develop/blob/94849898192d271d533e09756007e176feb80697/src/wp-admin/admin-header.php#L67-L68
const formattedTitle = sprintf(
/* translators: Admin screen title. 1: Admin screen name, 2: Network or site name. */
/* translators: Admin document title. 1: Admin screen name, 2: Network or site name. */
__( '%1$s ‹ %2$s ‹ Editor — WordPress' ),
decodeEntities( title ),
decodeEntities( siteTitle )
Expand Down

0 comments on commit 2828b70

Please sign in to comment.