diff --git a/lib/compat/wordpress-6.0/class-wp-webfonts.php b/lib/compat/wordpress-6.0/class-wp-webfonts.php index 2f57d0508598b..c33c27bfe9fff 100644 --- a/lib/compat/wordpress-6.0/class-wp-webfonts.php +++ b/lib/compat/wordpress-6.0/class-wp-webfonts.php @@ -130,7 +130,7 @@ public function enqueue_webfont( $font_family_name ) { if ( isset( $this->enqueued_webfonts[ $slug ] ) ) { trigger_error( sprintf( - /* translators: %s unique slug to identify the webfont */ + /* translators: %s unique slug to identify the font family of the webfont */ __( 'The "%s" font family is already enqueued.', 'gutenberg' ), $slug ) @@ -140,7 +140,8 @@ public function enqueue_webfont( $font_family_name ) { } if ( ! isset( $this->registered_webfonts[ $slug ] ) ) { - _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "%s" font family is not registered.' ), $slug ), '6.0.0' ); + /* translators: %s unique slug to identify the font family of the webfont */ + _doing_it_wrong( __FUNCTION__, sprintf( __( 'The "%s" font family is not registered.', 'gutenberg' ), $slug ), '6.0.0' ); return false; } @@ -161,7 +162,7 @@ public static function get_font_slug( $to_convert ) { } elseif ( isset( $to_convert['fontFamily'] ) ) { $to_convert = $to_convert['fontFamily']; } else { - _doing_it_wrong( __FUNCTION__, __( 'Could not determine the font family name.' ), '6.0.0' ); + _doing_it_wrong( __FUNCTION__, __( 'Could not determine the font family name.', 'gutenberg' ), '6.0.0' ); return false; } }