grunt-pot icon indicating copy to clipboard operation
grunt-pot copied to clipboard

Third parameter as context not supported?

Open danielpataki opened this issue 7 years ago • 0 comments

I'm creating a grunt task for extracting strings from WordPress and it has been working fine so far, thanks so much! The issue I bumped into was the _nx() function in WordPress. The first parameter is the singular, the second is the plural, the third is the context.

My keywords are set up as below:

 keywords: ["_ex:1,2c", "_x:1,2c", "_nx:1,2,3c"],

In this case the functions are not parsed at all. When I use _nx:1,2 it works fine but doesn't parse the context. If it would be possible to implement this easily that would be awesome. Once I get some breathing room from the project I'll try and submit a pull request if it remains unresolved.

Thanks so much for the grunt task :)

danielpataki avatar Nov 08 '17 09:11 danielpataki