xgettext: No such file or directory
问题 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: