Skip to content
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

Can I disable/remove paths comments? #240

Closed
mattialerda opened this issue Mar 2, 2021 · 4 comments · Fixed by #264
Closed

Can I disable/remove paths comments? #240

mattialerda opened this issue Mar 2, 2021 · 4 comments · Fixed by #264

Comments

@mattialerda
Copy link

There's a way to disable/remove paths commets from the .pot file?? I didn't found a parameter or an issue about that.

#: admin/class-cnta-admin-page.php:11 <-- I want remove these 2 comments
#: includes/class-cnta-row-actions.php:135
msgid "Are you sure you want to do this?"
msgstr ""
@swissspidy
Copy link
Member

There currently is no way to do that. Could you perhaps elaborate on why you‘d want to remove this standard and expected comment?

@mattialerda
Copy link
Author

Because I think these comments are annoying when I look to git diff, without it I can clearly see what strings are added or removed. This is my opinion, I was just curious if there was a way to do it.

@swissspidy
Copy link
Member

I see. Well, looks like xgettext has a --no-location param for that, so we could add such a param here too.

Note that using this option makes it harder for technically skilled translators to understand each message’s context.

@mattialerda
Copy link
Author

Good! In my case remove this comments is not a problem, we have not enormous projects with many people at work.
Hope this parameter can be added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants