简体   繁体   中英

Poedit without location comments

I'd like to have .po-file without path-comments (location). Our team has because of them a lot of trouble during git-merge.

I can get the file without comment using command:

$ xgettext --no-location -o input.po output.po

BUT! It removes headlines in the file beginning as well. Without those headlines PoEdit does not work correctly.

How can i remove all path-comments but store headlines in *.po file?

You answered your own question: use --no-location .

--no-location does not remove the gettext header (which you probably mean by "headlines"). It would make no sense for it to do it and Poedit itself uses it for its own PO(T) file(s).

Your problem is in your command — read xgettext manpage, it is for extraction from source code, not manipulating existing PO files (that's what msgcat is for).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM