Skip to content

Commit

Permalink
Fix code base after change
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Mar 11, 2020
1 parent c2e2606 commit 3ae191b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions packages/blocks/src/api/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export function getAccessibleBlockLabel(
if ( hasPosition && direction === 'vertical' ) {
if ( hasLabel ) {
return sprintf(
/* translators: accessibility text. %1: The block title, %2: The block row number, %3: The block label.. */
/* translators: accessibility text. 1: The block title. 2: The block row number. 3: The block label.. */
__( '%1$s Block. Row %2$d. %3$s' ),
title,
position,
Expand All @@ -193,15 +193,15 @@ export function getAccessibleBlockLabel(
}

return sprintf(
/* translators: accessibility text. %s: The block title, %d The block row number. */
__( '%s Block. Row %d' ),
/* translators: accessibility text. 1: The block title. 2: The block row number. */
__( '%1$s Block. Row %2$d' ),
title,
position
);
} else if ( hasPosition && direction === 'horizontal' ) {
if ( hasLabel ) {
return sprintf(
/* translators: accessibility text. %1: The block title, %2: The block column number, %3: The block label.. */
/* translators: accessibility text. 1: The block title. 2: The block column number. 3: The block label.. */
__( '%1$s Block. Column %2$d. %3$s' ),
title,
position,
Expand All @@ -210,8 +210,8 @@ export function getAccessibleBlockLabel(
}

return sprintf(
/* translators: accessibility text. %s: The block title, %d The block column number. */
__( '%s Block. Column %d' ),
/* translators: accessibility text. 1: The block title. 2: The block column number. */
__( '%1$s Block. Column %2$d' ),
title,
position
);
Expand Down
4 changes: 2 additions & 2 deletions packages/scripts/utils/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function buildWordPress( newInstall, fastInstall ) {

if ( env.npm_package_wp_env_welcome_build_command ) {
const nextStep = sprintf(
'\nRun %s to build the latest version of %s, then open %s to get started!\n',
'\nRun %1$s to build the latest version of %2$s, then open %3$s to get started!\n',
chalk.blue( env.npm_package_wp_env_welcome_build_command ),
chalk.green( env.npm_package_wp_env_plugin_name ),
chalk.blue( currentUrl )
Expand All @@ -191,7 +191,7 @@ function buildWordPress( newInstall, fastInstall ) {
);

const access = sprintf(
'Default username: %s, password: %s\n',
'Default username: %1$s, password: %2$s\n',
chalk.blue( 'admin' ),
chalk.blue( 'password' )
);
Expand Down

0 comments on commit 3ae191b

Please sign in to comment.