问题
I'm using this command line:
xgettext -kT._ -kT._n:1,2 -kT._p:1c,2 -kT._pn:1c,2,3
-LC# --omit-header --from-code=UTF-8 -o messages.pot
-c -n -p PO ./TransClassOne.cs
Nevertheless, I'm getting this message from xgettext:
xgettext.exe: error while opening "._" for reading: No such file or directory
Any ideas?
回答1:
Using MacOS:
- Install gettext tool
- If already installed, you might want to reinstall -
brew reinstall gettext
If using some bash profile (oh-my-zsh e.g.), export
gettext
and update it:nano ~/.zshrc
at the end of file add
export PATH="/usr/local/opt/gettext/bin:$PATH"
and save itupdate profile with
. ~/.zshrc
; pay attention to not forget the dot beforezshrc
restart your terminal (optional)
Run your command again.
来源:https://stackoverflow.com/questions/41870164/xgettext-no-such-file-or-directory