Comments (10)
Interesting. I've run into that issue on other projects, but haven't experienced that while working on this one. Your config looks good.
Do you know what version of Grunt you have installed? Also what version of this package are you running? Oh, one more version, too: Which version of Node are you running?
from grunt-wp-i18n.
"grunt": "~0.4.1" and "grunt-wp-i18n": "~0.2.0"
from grunt-wp-i18n.
Sorry, I made a quick edit to see what version of node you're running: node -v
should do it.
from grunt-wp-i18n.
v0.10.18
from grunt-wp-i18n.
Can you upgrade to the latest versions of node and Grunt and give it a shot? I'm running the latest on Windows, but will give it a go on OSX as well to see if I can replicate this.
from grunt-wp-i18n.
I am on Windows 8.
from grunt-wp-i18n.
Actually, that's my fault. The readme has the wrong instructions. Try this config instead (notice the options object within the target):
makepot: {
target: {
options: {
domainPath: '/languages', // Where to save the POT file.
mainFile: 'flowplayer.php', // Main project file.
potFilename: 'flowplayer5.pot', // Name of the POT file.
type: 'wp-plugin' // Type of project (wp-plugin or wp-theme).
}
}
}
from grunt-wp-i18n.
Great it works 😄 Do you also get PHP strict errors?
from grunt-wp-i18n.
Great! Sorry about that and thanks for bringing it to my attention.
The PHP strict errors are from the WordPress i18n tools. I could probably clean them up, but it would make maintaining the fork a little more difficult whenever changes are made upstream. In the meantime, I just disabled strict errors in the php.ini I use for the CLI.
from grunt-wp-i18n.
Ok, I created a version that fixes most of errors. https://github.com/grappler/i18n
I tested it and it works
from grunt-wp-i18n.
Related Issues (20)
- Ignore certain domain (e.g. via an options.dontUpdateDomains) HOT 12
- Warning: Cannot read property 'split' of undefined HOT 6
- Exclude page templates HOT 3
- "updateTimestamp: false" is not working properly HOT 3
- Exclude doesn't included in .pot file HOT 2
- Send modified files to build path only HOT 2
- Not Working on Windows ver > 8
- Good way to eliminate duplicates in pot file HOT 8
- Running "makepot" task keeps running forever HOT 4
- update node-wp-i18n to v1.0.5 HOT 1
- updateTimestamp: false not working HOT 8
- Detecting msgid stored in variable HOT 1
- Warning: Cannot read property 'pot-creation-date' of undefined Use --force to continue. HOT 1
- POT File by text domain HOT 2
- Switch to using `wp i18n make-pot` HOT 6
- Makepot supports for monorepo plugins HOT 1
- Addtextdomain throws error HOT 1
- Better output when makepot fails due to missing PHP cli
- Warnings when running on PHP 8 HOT 2
- Duplicate text domains added where text domain already exists HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-wp-i18n.