From 749e16fc3c967c45383dc2af1b74952130e21015 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 3 Jun 2020 11:41:27 +0200 Subject: [PATCH] Update msg context --- features/makepot.feature | 4 ++-- src/BlockExtractor.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 ); } }