-
Notifications
You must be signed in to change notification settings - Fork 80
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
Remove line numbers from pot and po files? #289
Comments
And it would be also great to sort the message ids like
can do. TL;DRDiffing po files annoyed me a lot in the past. The solution I am adopting is to add the following lines in ~/.gitconfig:
and those lines in the project
This produces an output like:
that sorts the lines and strips the comments. It was inspired by: http://stackoverflow.com/questions/2006351/gettext-po-files-under-version-control/11291001#11291001 Unluckily this requires the developer some manual configuration (if you do not have msgcat installed it will break). The advantage of this configuration is that I can really diff and review po files, without being discouraged by the amount of noise we usually see in the PRs. If
|
Yes, I'm in favor of an i18ndude option to remove the line number in the comment. 👍 |
I have opened an issue for not adding line numbers. I don't know when I will get to that. @ale-rt I think the messages are sorted already. In
So only one msgid/msgstr is sorted differently, and that is because it is a strange one. |
IMHO line numbers are useful: being a long time translator of several different packages, being able to quickly go to the source of the message is a definitely a plus, to better understand the context. |
I have released The default is still to add the line numbers. This might change in the future. For people who want to keep the line numbers, I have added option |
Do we still want the line numbers in the comments? So for example this:
The line numbers often change, and this gives long diffs, like in this PR. The PR is about updated translations for
plone.app.discussion
, which is a big diff, but the biggest part of the diff is updated line numbers in totally different places.I thought this was an option in
i18ndude
, but apparently not. I don't know how hard it would be. This is one of the lines that adds the line number.Default would be the current behaviour, but for
plone.app.locales
we could change the command that we call.Would that be useful? Or should we not bother?
The text was updated successfully, but these errors were encountered: