-
Notifications
You must be signed in to change notification settings - Fork 279
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
Do not update POT-Creation-Date header if nothing else changes #757
Comments
That's some strong language 😳 The It is not obvious which behavior is better. On one hand, (1) VCS noise is annoying. On the other, (2) the "this PO file is current as of this date" information has value for translators and maintainers too. It is not immediately obvious to me that (1) is more important than (2) [to be explicit: this is not saying that it isn't, just that it isn't obvious to me and need to think about it]. For completeness' sake, it's worth mentioning that in non-automated contexts, the fix for (1) is as simple as either not running update from source or discarding the trivial diff when you review your changes before committing them. But that changes if you e.g. do it through the manager to many PO files at once, of course. Anyway, I'm happy to consider any patches on the subject. Some relevant GNU gettext issues: |
I am not a native English carrier, and always forget the difference between must and should. Sorry, if it was offensive for you. Obvious, that if the content wasn't updated - update date shouldn't ( not |
Not at all, I'm just saying that "must" is a strong statement. The bigger point is that even "should" may be, because it isn't 100% obvious . |
So, what is the decision? |
If you want a quick resolution, submit a PR. I explicitly told you that I am unsure what to do, so please don't bug me to hurry. |
This comment was marked as off-topic.
This comment was marked as off-topic.
One could argue that updating .po files in an automated fashion and committing the result in it self generates VCS noise – so should it be done in the first place? Even when there is something to update, the update is not inherently related to a particular translation, and so the VCS history of a .po is polluted with automatic changes not made by a human. And those are indeed changes that make no difference when actually using the translation. |
@lanurmi Sorry for being thick, but is your argument for or against doing what the OP suggests?
I was going to say that presumably the header would be the only change, otherwise git wouldn't include the file, hence this issue, but that's not actually true - typically, there would be significant changes in file references as line numbers in code change during development. |
More against it, though I understand OP's point of view too.
My main point was, if some automatic changes are polluting git log, maybe it's worth taking a step back and rethinking if such automated commits are the right thing to do in the first place for OP. Or whether the problem can be solved by a trivial shell script one-liner instead of changing Poedit. And since this is Poedit we are talking about; if OP is manually updating from POT and manually committing everything regardless of the output, I doubt that's the best way to use git in general. |
Is it possible to not update
POT-Creation-Date
header on everyupdate from source
if no updates were made?This is mark file as modified for git and pollute repository with the same content versions.
POT-Creation-Date
header must be updated only when content was really updated, not just re-scanned.The text was updated successfully, but these errors were encountered: