Skip to content

Commit

Permalink
Update msg context
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Jun 3, 2020
1 parent fca177f commit 749e16f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2538,15 +2538,15 @@ 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:
"""
msgid "Default"
"""
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:
"""
Expand Down
2 changes: 1 addition & 1 deletion src/BlockExtractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 749e16f

Please sign in to comment.