diff --git a/features/makepot.feature b/features/makepot.feature index 0f1b17bc..92390399 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -2538,7 +2538,7 @@ Feature: Generate a POT file of a WordPress project """ And the foo-plugin/foo-plugin.pot file should contain: """ - msgctxt "block style" + msgctxt "block style label" """ And the foo-plugin/foo-plugin.pot file should contain: """ @@ -2546,7 +2546,7 @@ Feature: Generate a POT file of a WordPress project """ And the foo-plugin/foo-plugin.pot file should contain: """ - msgctxt "block style" + msgctxt "block style label" """ And the foo-plugin/foo-plugin.pot file should contain: """ diff --git a/src/BlockExtractor.php b/src/BlockExtractor.php index 8a06f224..92b58d6b 100644 --- a/src/BlockExtractor.php +++ b/src/BlockExtractor.php @@ -63,7 +63,7 @@ public static function fromString( $string, Translations $translations, array $o } foreach ( $original as $msg ) { - $translation = $translations->insert( 'block style style', $msg['label'] ); + $translation = $translations->insert( 'block style label', $msg['label'] ); $translation->addReference( $file ); } }