Skip to content

Commit

Permalink
Copy over some of the makepot assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Feb 22, 2018
1 parent 93d378a commit a738aaa
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,14 @@ Feature: Generate a POT file of a WordPress plugin
/* translators: Translators 1! */
_e( 'hello world', 'foo-plugin' );
/* translators: Translators 2! */
/* Translators: Translators 2! */
$foo = __( 'foo', 'foo-plugin' );
/* translators: localized date and time format, see https://secure.php.net/date */
__( 'F j, Y g:i a', 'foo-plugin' );
// translators: let your ears fly!
__( 'on', 'foo-plugin' );
"""

When I run `wp i18n make-pot foo-plugin`
Expand All @@ -420,5 +426,17 @@ Feature: Generate a POT file of a WordPress plugin
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
#. translators: Translators 2!
#. Translators: Translators 2!
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
msgid "F j, Y g:i a"
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
#. translators: localized date and time format, see https://secure.php.net/date
"""
And the foo-plugin/foo-plugin.pot file should contain:
"""
#. translators: let your ears fly!
"""

0 comments on commit a738aaa

Please sign in to comment.