Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions features/makemo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Feature: Generate MO files from PO files
Scenario: Bail for destination being a file when source is a folder
Given an empty foo directory
And a foo/foo.po file:
"""
"""
"""
"""
When I try `wp i18n make-mo foo test.mo `
Then STDERR should contain:
"""
Expand Down Expand Up @@ -56,8 +56,8 @@ Feature: Generate MO files from PO files
And the foo-plugin/foo-plugin-de_DE.mo file should exist
Scenario: Uses the provided destination file name
Given a foo.po file:
"""
"""
"""
"""
When I run `wp i18n make-mo foo.po bar.mo`
Then STDOUT should contain:
"""
Expand All @@ -67,8 +67,8 @@ Feature: Generate MO files from PO files
And the bar.mo file should exist
Scenario: Uses the provided destination file name with no extension
Given a foo.po file:
"""
"""
"""
"""
When I run `wp i18n make-mo foo.po bar`
Then STDOUT should contain:
"""
Expand All @@ -78,8 +78,8 @@ Feature: Generate MO files from PO files
And the bar file should exist
Scenario: Preserves the provided source name with no destination
Given a foo.po file:
"""
"""
"""
"""
When I run `wp i18n make-mo foo.po`
Then STDOUT should contain:
"""
Expand Down
2 changes: 1 addition & 1 deletion features/makepot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3134,7 +3134,7 @@ Feature: Generate a POT file of a WordPress project
Success: POT file successfully generated.
"""
And the result.pot file should contain:
"""
"""
# Copyright (C) 2018 John Doe
# Powered by WP-CLI.
"""
Expand Down
6 changes: 3 additions & 3 deletions features/updatepo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,6 @@ Feature: Update existing PO files from a POT file
msgstr ""
"""
And the foo-plugin/foo-plugin-de_DE.po file should contain:
"""
"X-Domain: foo-plugin\n"
"""
"""
"X-Domain: foo-plugin\n"
"""