Skip to content

Add option to extract strings with any text domain#38

Merged
schlessera merged 1 commit intomasterfrom
ignore-domain
Jul 10, 2018
Merged

Add option to extract strings with any text domain#38
schlessera merged 1 commit intomasterfrom
ignore-domain

Conversation

@swissspidy
Copy link
Copy Markdown
Member

This even allows extracting strings without any domain, which wasn't possible before.

That would be useful for projects like core (see #36) and private projects that aren't on WordPress.org.

Fixes #35.

@swissspidy swissspidy requested a review from a team July 6, 2018 13:16
}

list( $original, $domain ) = $args;
list( $original, $domain ) = array_pad( $args, 2, null );
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, padding with null to avoid PHP errors when you're short on arguments. Nice one!

@schlessera schlessera added the command:i18n-make-pot Related to 'i18n make-pot' command label Jul 10, 2018
@schlessera schlessera added this to the 0.1.0 milestone Jul 10, 2018
@schlessera schlessera merged commit 347fd22 into master Jul 10, 2018
@schlessera schlessera deleted the ignore-domain branch July 10, 2018 11:09
schlessera added a commit that referenced this pull request Jan 6, 2022
Add option to extract strings with any text domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:i18n-make-pot Related to 'i18n make-pot' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants