-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updateTimestamp: false not working #76
Comments
I haven't had time to look into this, but there is a passing test for this . If anyone can demonstrate this behavior with a failing test, that would be helpful. |
updateTimestamp: false regenerates the .pot file for me as well with only the changed timestamp
|
@av3nger I haven't been able to replicate this. If you could submit a failing test or step through the code to determine where the issue is, that would be helpful. |
@bradyvercher , I don't know if this helps, but it's failing at Pot.prototype.sameAs() |
Thanks, but that doesn't really give me any ideas. Is there a reason you know of that would cause the generated POT to be missing the The Grunt tasks adds that header to the options, then sends those along to the node package. The node package reads the existing POT file, generates a new one, then compares the original with the generated version to see if there have been any changes. The |
@bradyvercher, you can configure a separate test task, run it with grunt and compare pot.content and this.contents - they do not match. X-Generator is present in the headers of both outputs, but it's not there in msgstr section in one of the files |
This causes the test to fail due to the way headers are stored in the POT object after being parsed. See cedaro/grunt-wp-i18n#76
@av3nger Ah, thanks for sticking with me on that. I think I figured out what was going on and hopefully this commit should take care of it. |
I believe this should be good to go in 1.0.3. Feel free to reopen with more details if it still doesn't work. |
Still the date is updated without other changes, I'm using the latest version 1.0.2
By the way, do I need to add also '.svn' to exclude ?
The text was updated successfully, but these errors were encountered: