I am using xgettext
with standard input because the input is not available in a file. However, I'd like it to output a filename I specify as a comment above each string.
Current behaviour
#: Standardinput:13
msgid "User"
msgstr ""
#: Standardinput:13
msgid "Invite"
msgstr ""
#: Standardinput:14
msgid "Group"
msgstr ""
Expected behaviour
If I could set a filename to path/to/file.txt
, it should output this instead:
#: path/to/file.txt:13
msgid "User"
msgstr ""
#: path/to/file.txt:13
msgid "Invite"
msgstr ""
#: path/to/file.txt:14
msgid "Group"
msgstr ""
I read every option that I can set in the docs and found nothing about it.