Skip to content

Commit

Permalink
use placeholder for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbenedetto committed Jan 25, 2024
1 parent 6a5971c commit 18f9963
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/experimental/fonts/font-library/class-wp-font-collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,16 @@ public static function is_config_valid( $config ) {
( empty( $config['src'] ) && empty( $config['font_families'] ) ) ||
( ! empty( $config['src'] ) && ! empty( $config['font_families'] ) )
) {
_doing_it_wrong( __METHOD__, __( 'Font Collection config "src" option OR "font_families" option are required.', 'gutenberg' ), '6.5.0' );
_doing_it_wrong(
__METHOD__,
sprintf(
/* translators: %1$s: src, %2$s: font_families */
__( 'Font Collection config "%1$s" option OR "%2$s" option are required.', 'gutenberg' ),
'src',
'font_families'
),
'6.5.0'
);
return false;
}

Expand Down

0 comments on commit 18f9963

Please sign in to comment.